Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

Daphne install on ubuntu 18.04 x86_64



  • Hello
    i have made a update in the daphne.sh script
    it can now install the daphne emulator on a ubuntu 18.04 x86_64 machine
    just copy this to you /RetroPie-Setup/scriptmodules/emulators/daphne.sh script
    and run retropie_setup.sh ;)

    #!/usr/bin/env bash
    
    # This file is part of The RetroPie Project
    #
    # The RetroPie Project is the legal property of its developers, whose names are
    # too numerous to list here. Please refer to the COPYRIGHT.md file distributed with this source.
    #
    # See the LICENSE.md file at the top-level directory of this distribution and
    # at https://raw.githubusercontent.com/RetroPie/RetroPie-Setup/master/LICENSE.md
    #
    
    rp_module_id="daphne"
    rp_module_desc="Daphne - Laserdisc Emulator"
    rp_module_help="ROM Extension: .daphne\n\nCopy your Daphne roms to $romdir/daphne"
    rp_module_licence="GPL2 https://raw.githubusercontent.com/RetroPie/daphne-emu/master/COPYING"
    rp_module_section="opt"
    rp_module_flags="!mali !kms"
    
    function depends_daphne() {
        getDepends libsdl1.2-dev libvorbis-dev libglew-dev zlib1g-dev
    }
    
    function sources_daphne() {
            if uname -m |grep "x86_64"; then
            gitPullOrClone "$md_build" https://github.com/DavidGriffith/daphne.git
            else
            gitPullOrClone "$md_build" https://github.com/RetroPie/daphne-emu.git retropie
            fi
            }
    
    function build_daphne() {
        cd src/vldp2 || exit
        if uname -m |grep "x86_64"; then
        ./configure --disable-accel-detect
        else
        ./configure
        fi
        if uname -m |grep "x86_64"; then
        make -f Makefile.linux_x64
        else
        make -f Makefile.rp
        fi
        cd ..
        if uname -m |grep "x86_64"; then
        ln -s Makefile.vars.linux_x64 Makefile.vars
        else
        ln -sf Makefile.vars.rp Makefile.vars
        fi
        if uname -m |grep "x86_64"; then
        make
        else
        make STATIC_VLDP=1
        fi
        if uname -m |grep "x86_64"; then
            cp "$HOME/RetroPie-Setup/tmp/build/daphne/libvldp2.so" /lib
            fi
    }
    
    function install_daphne() {
        md_ret_files=(
            'sound'
            'pics'
            'daphne.bin'
            'COPYING'
        )
    }
    
    function configure_daphne() {
        mkRomDir "daphne"
        mkRomDir "daphne/roms"
    
        mkUserDir "$md_conf_root/daphne"
    
        if [[ ! -f "$md_conf_root/daphne/dapinput.ini" ]]; then
            cp -v "$md_data/dapinput.ini" "$md_conf_root/daphne/dapinput.ini"
        fi
        ln -snf "$romdir/daphne/roms" "$md_inst/roms"
        ln -sf "$md_conf_root/$md_id/dapinput.ini" "$md_inst/dapinput.ini"
    
        cat >"$md_inst/daphne.sh" <<_EOF_
    #!/bin/bash
    dir="\$1"
    name="\${dir##*/}"
    name="\${name%.*}"
    
    if [[ -f "\$dir/\$name.commands" ]]; then
        params=\$(<"\$dir/\$name.commands")
    fi
    
    "$md_inst/daphne.bin" "\$name" vldp -nohwaccel -framefile "\$dir/\$name.txt" -homedir "$md_inst" -fullscreen \$params
    _EOF_
        chmod +x "$md_inst/daphne.sh"
    
        chown -R "$user":"$user" "$md_inst"
        chown -R "$user":"$user" "$md_conf_root/daphne/dapinput.ini"
    
        addEmulator 1 "$md_id" "daphne" "$md_inst/daphne.sh %ROM%"
        addSystem "daphne"
    }
    


  • Thanks for this script!
    On a brand new Ubuntu 18.04 x86_64 install, it errored out - Daphne.bin not found.
    Logs showed an error during compile indicating - sdl-config not found.
    My system had sdl2-config instead.
    I ended up installing libsdl1.2-dev, then Daphne install completed without error.
    After placing the laserdisc files and roms in their proper directories, i'm now able to launch and play from emulationstation on my amd64 Linux PC.
    THANKS AGAIN !!!!


Log in to reply
 

Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.