• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
RetroPie forum home
  • Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
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

Scheduled Pinned Locked Moved Help and Support
daphne
49 Posts 14 Posters 6.9k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H
    HoJo215 @MrCoolSpan
    last edited by HoJo215 3 Oct 2020, 14:48 10 Mar 2020, 14:47

    @MrCoolSpan

    Are you using DavidGriffith's git or DirtBagXon's git for your version's git?

    Because both seem to have issues playing Timegal / Ninja Hayate.

    David's 1.14 Singe shuts down when pressing start and DirtBag's 1.18 Singe has sound speed issues as well as the shutdown on pressing start issue.

    1 Reply Last reply Reply Quote 0
    • M
      MrCoolSpan
      last edited by MrCoolSpan 12 Mar 2020, 18:29

      daphne emu with singe
      i have used a lot of time to make this

      Add this to you ~/RetroPie-Setup/platforms.cfg

      alg_exts=".daphne"
      alg_fullname="American Laser Games"
      

      then replace ~/RetroPie-Setup/scriptmodules/emulators/daphne.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 and alg games to $romdir/alg"
      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() {
              if uname -m |grep "x86_64"; then
              dpkg --add-architecture i386
              getDepends libsdl1.2-dev libsdl2-mixer-dev libglew-dev libvorbis-dev libsdl-image1.2-dev libsdl-ttf2.0-dev zlib1g-dev libxmu-dev
              else
          getDepends libsdl1.2-dev libvorbis-dev libglew-dev zlib1g-dev
          fi
      }
      
      function sources_daphne() {
              if uname -m |grep "x86_64"; then
          gitPullOrClone "$md_build" https://github.com/MrCoolSpan/Daphne.git
          else
          gitPullOrClone "$md_build" https://github.com/RetroPie/daphne-emu.git retropie
          fi
              
      }
      
      
      function build_daphne() {
              if uname -m |grep "x86_64"; then
              cd src/vldp2 || exit
              ./configure --disable-accel-detect
              make -f Makefile.linux_x64
              cd ../game/singe
              make -f Makefile.linux_x64
              cd ../..
              ln -s Makefile.vars.linux_x64 Makefile.vars
              make
              else
          cd src/vldp2 || exit
          ./configure
          make -f Makefile.rp
          cd ..
          ln -sf Makefile.vars.rp Makefile.vars
          make STATIC_VLDP=1
          fi
      }
      
      function install_daphne() {
              if uname -m |grep "x86_64"; then
              md_ret_files=(
              'sound'
              'pics'
              'daphne.bin'
              'libvldp2.so'
              'libsinge.so'
              'singe.sh'
              'COPYING'
         )
             if grep -q "/opt/retropie/emulators/daphne/lib" /etc/ld.so.conf.d/randomLibs.conf; then
                     :
              else
               echo '/opt/retropie/emulators/daphne/lib' > /etc/ld.so.conf.d/randomLibs.conf
             fi
      # Mayflash Sensor DolphinBar
            FILE=/etc/udev/rules.d/80-dolphinbar.rule
            if [ -f "$FILE" ]; then
            :
            else 
            cat >"/etc/udev/rules.d/80-dolphinbar.rule" <<_EOF_
            SUBSYSTEM=="hidraw", ATTRS{idVendor}=="057e", ATTRS{idProduct}=="0306", MODE="0666"
            SUBSYSTEM=="hidraw*", ATTRS{idVendor}=="057e", ATTRS{idProduct}=="0330", MODE="0666"
      _EOF_
      
            fi
      
      ldconfig
      
              else
          md_ret_files=(
              'sound'
              'pics'
              'daphne.bin'
              'COPYING'
          )
          fi
         
      }
      
      function configure_daphne() {
          mkRomDir "daphne"
          mkRomDir "alg"
          mkRomDir "daphne/roms"
          mkRomDir "alg/roms"
      
          mkUserDir "$md_conf_root/daphne"
          mkUserDir "$md_conf_root/alg"
      
          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 -snf "$romdir/alg/roms" "$md_inst/singe" 
          ln -sf "$md_conf_root/$md_id/dapinput.ini" "$md_inst/dapinput.ini"
            
      echo '
      #!/bin/bash
      mkdir ~/RetroPie/roms/alg/tmp
      ln -s ~/RetroPie/roms/alg/roms/* ~/RetroPie/roms/alg/tmp/ && ls -l ~/RetroPie/roms/alg/tmp/
      cd tmp
      for i in *; do mv "$i" "$i".daphne; done
      mv *.* ~/RetroPie/roms/alg
      rm -r ~/RetroPie/roms/alg/tmp' > "$romdir/alg/symlink.sh"
      
      
          cat >"$md_inst/daphne.sh" <<_EOF_
      #!/bin/bash
      # point to our linked libs that user may not have
      export LD_LIBRARY_PATH=$SCRIPT_DIR:$DAPHNE_SHARE:$LD_LIBRARY_PATH
      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
      
      xrandr --output "HDMI-0" --mode 1920x1080
      _EOF_
         
      echo '
      #!/bin/bash
      # point to our linked libs that user may not have
      export LD_LIBRARY_PATH=$SCRIPT_DIR:$DAPHNE_SHARE:$LD_LIBRARY_PATH
      
      SCRIPT_DIR=`dirname "$0"`
      if realpath / >/dev/null; then SCRIPT_DIR=$(realpath "$SCRIPT_DIR"); fi
      DAPHNE_BIN=daphne.bin
      DAPHNE_SHARE=/opt/retropie/emulators/daphne
      
      function STDERR () {
      	/bin/cat - 1>&2
      }
      
      echo "Singe Launcher : Script dir is $SCRIPT_DIR"
      cd "$SCRIPT_DIR"
      
      dir="$1"
      name="${dir##*/}"
      name="${name%.*}"
      
      "/opt/retropie/emulators/daphne/daphne.bin" singe vldp -FULLSCREEN -framefile "$dir/$name.txt" -script "$dir/$name.singe" -homedir "$DAPHNE_SHARE" -datadir "$DAPHNE_SHARE" -sound_buffer 2048 -noserversend -x 800 -y 600
      
      xrandr --output "HDMI-0" --mode 1920x1080' > "$md_inst/singe.sh"
      
      
          chmod +x "$md_inst/daphne.sh"
          chmod +x "$md_inst/singe.sh"
          chmod +x "$romdir/alg/symlink.sh"
      
          chown -R "$user":"$user" "$md_inst"
          chown -R "$user":"$user" "$md_conf_root/daphne/dapinput.ini"
          chown -R "$user":"$user" "$romdir/alg/"
      
          addEmulator 1 "$md_id" "daphne" "$md_inst/daphne.sh %ROM%"
          addSystem "daphne"
          addEmulator 1 "$md_id" "alg" "$md_inst/singe.sh %ROM%"
          addSystem "alg"
      }
      
      
      

      then copy your games to ~/RetroPie/roms/alg/roms
      etc like this ~/RetroPie/roms/alg/roms/crimepatrol
      then run ~/RetroPie/roms/alg/symlink.sh

      edit /opt/retropie/emulators/daphne/daphne.sh and change this line

      xrandr --output "HDMI-0" --mode 1920x1080
      

      and set you current display resolution
      do the same with /opt/retropie/emulators/daphne/singe.sh

      you can chance the emu display resolution also x-320 y-240

      start retropie and you games is in alg ;)

      H M 0 S 4 Replies Last reply 13 Mar 2020, 03:18 Reply Quote 1
      • H
        HoJo215 @MrCoolSpan
        last edited by HoJo215 13 Mar 2020, 03:18

        @MrCoolSpan

        I'm already setup withe mine now but this is great for end users.
        You should checkout DirtBagXon's git. They have an update Singe for x64 Linux!
        Singe 1.18 - I thought I never see that.. It supports multiple mice among other updates.

        For resolution, I usually do:

        -fullscreen_window

        It fits to the the screen with 4:3 ar

        1 Reply Last reply Reply Quote 0
        • M
          MrCoolSpan @MrCoolSpan
          last edited by 13 Mar 2020, 04:25

          I cart edit my poste
          But There is a mistake in the top is is Not ~/RetroPie-Setup/scriptmodules/emulators/dolphin.sh BUT ~/RetroPie-Setup/scriptmodules/emulators/daphne.sh you need to edit

          ClydeC 1 Reply Last reply 13 Mar 2020, 06:07 Reply Quote 0
          • ClydeC
            Clyde @MrCoolSpan
            last edited by 13 Mar 2020, 06:07

            @MrCoolSpan Normally, you should be able to edit your post even years ago. What was the exact problem?

            M 1 Reply Last reply 13 Mar 2020, 07:01 Reply Quote 0
            • M
              MrCoolSpan @Clyde
              last edited by 13 Mar 2020, 07:01

              @Clyde said in Daphne install on ubuntu 18.04 x86_64:

              @MrCoolSpan Normally, you should be able to edit your post even years ago. What was the exact problem?

              Well i dont know but it is okay now😁

              1 Reply Last reply Reply Quote 0
              • H
                HoJo215
                last edited by HoJo215 13 Mar 2020, 20:19

                Here goes my modified system art to represent Daphne Singe for whomever.
                Place it in the opt/emulationstation/themes/carbon/daphne/art folder.

                Edit the Daphne theme.xml to read:

                <image name="logo">
                <path>./art/system.png</path>
                

                system.png

                M 1 Reply Last reply 13 Mar 2020, 22:23 Reply Quote 0
                • M
                  MrCoolSpan @HoJo215
                  last edited by 13 Mar 2020, 22:23

                  @HoJo215 Nice Thanx

                  M 1 Reply Last reply 14 Mar 2020, 08:06 Reply Quote 0
                  • M
                    MrCoolSpan @MrCoolSpan
                    last edited by 14 Mar 2020, 08:06

                    @MrCoolSpan I made a copy of /themes/carbon/daphne and renamet to alg and put you img ind
                    and it looks real good

                    1 Reply Last reply Reply Quote 1
                    • 0
                      0ldschoolgamin @MrCoolSpan
                      last edited by 30 Apr 2020, 04:16

                      @MrCoolSpan Hey there MrCoolSpan. I saw your post about running the Daphne emu with Singe on RetroPie. Do you have this running decent at this point? I am trying to put together a RetroPie image that runs only Daphne and I would love to get Singe working as I am mainly trying to get Time Gal and Ninja Hayate working. I have the two working on my PC but I am relatively new to working on the Raspberry Pi and there is not a lot of info... anywhere on getting singe to work on Raspberry Pi. Can you suggest anywhere for documentation or are the details that you posted everything that is needed? (Besides roms and video files, obviously) Going to try to throw a Rasp Pi together this weekend with Daphne - but it will feel incomplete unless I can get singe going. Thoughts?

                      1 Reply Last reply Reply Quote 0
                      • S
                        stevensf @MrCoolSpan
                        last edited by stevensf 19 May 2020, 18:26

                        @MrCoolSpan
                        First, thanks for your great work.

                        Please can you show an exact strucure files when you say :
                        then copy your games to ~/RetroPie/roms/alg/roms

                        1 Reply Last reply Reply Quote 0
                        • K
                          Kartman
                          last edited by 17 Jun 2020, 06:04

                          @MrCoolSpan

                          Anybody care to help... Installed and compiled with the daphne.sh dated Feb28 at 4:13. Seemed to go fine but, when the emulator is run out of EmulationStation, I get the following error message.

                          /opt/retropie/emulators/daphne/daphne.bin: error while loading shared libraries: libGLEW.so.1.3: cannot open shared object file: No such file or directory
                          

                          I'm a bit new at this but would really love to get Dragon's Lair running. Any help would be greatly appreciated! :)

                          K ClydeC 2 Replies Last reply 17 Jun 2020, 06:40 Reply Quote 0
                          • K
                            Kartman @Kartman
                            last edited by 17 Jun 2020, 06:40

                            @MrCoolSpan

                            Just a bit more info... the missing lib file is present as follows.

                            retropie@Archer:/opt/retropie/emulators/daphne/lib$ ll
                            total 2672
                            drwxr-xr-x 2 retropie retropie    4096 Jun 17 02:29 ./
                            drwxr-xr-x 5 retropie retropie    4096 Jun 17 02:29 ../
                            -rw-r--r-- 1 retropie retropie 1238810 Jun 17 02:29 libcrypto.so.0.9.7
                            -rw-r--r-- 1 retropie retropie  129972 Jun 17 02:29 libexpat.so.1
                            -rwxr-xr-x 1 retropie retropie  298882 Jun 17 02:29 libGLEW.so.1.3*
                            -rw-r--r-- 1 retropie retropie  230443 Jun 17 02:29 libssl.so.0.9.7
                            -rw-r--r-- 1 retropie retropie  820216 Jun 17 02:29 libstdc++.so.6
                            
                            1 Reply Last reply Reply Quote 0
                            • ClydeC
                              Clyde @Kartman
                              last edited by 17 Jun 2020, 20:56

                              @Kartman Which operating system are you using? (name, release number, and 32 or 64 bit)

                              If your system is 32 bit, try

                              sudo apt install libglew-dev:i386
                              

                              If your system is 64 bit, try

                              sudo apt install libglew-dev
                              

                              If that doesn't fix your problem, please show us the output of the sudo apt command. Besides, the daphne.sh should take care of this.

                              johnodonJ 1 Reply Last reply 6 Jul 2020, 13:50 Reply Quote 0
                              • C
                                construkt
                                last edited by construkt 21 Jun 2020, 05:47

                                I'm getting errors trying to install on Ubuntu 18.04 x86_64.

                                /home/pi/RetroPie-Setup/scriptmodules/emulators/daphne.sh: line 2: $'\r': command not found
                                /home/pi/RetroPie-Setup/scriptmodules/emulators/daphne.sh: line 11: $'\r': command not found
                                /home/pi/RetroPie-Setup/scriptmodules/emulators/daphne.sh: line 18: $'\r': command not found
                                /home/pi/RetroPie-Setup/scriptmodules/emulators/daphne.sh: line 19: syntax error near unexpected token `$'{\r''
                                /home/pi/RetroPie-Setup/scriptmodules/emulators/daphne.sh: line 19: `function depends_daphne() '
                                
                                ClydeC 1 Reply Last reply 21 Jun 2020, 09:53 Reply Quote 0
                                • ClydeC
                                  Clyde @construkt
                                  last edited by 21 Jun 2020, 09:53

                                  @construkt Seems like you (or someone else) wrote or edited your daphne.sh in Windows which has slightly different codes for line endings (the \r Ubuntu is complaining about).

                                  You should be able to fix it with the command line tool dos2unix. You can install it in Ubuntu with

                                  sudo apt install dos2unix
                                  

                                  and then convert the file

                                  cd /home/pi/RetroPie-Setup/scriptmodules/emulators/
                                  dos2unix daphne.sh
                                  

                                  or if you don't want to change the original file in place

                                  cd /home/pi/RetroPie-Setup/scriptmodules/emulators/
                                  dos2unix -n daphne.sh daphne-new.sh
                                  

                                  will save the edited file as daphne-new.sh.

                                  C 1 Reply Last reply 22 Jun 2020, 01:27 Reply Quote 0
                                  • C
                                    construkt @Clyde
                                    last edited by construkt 22 Jun 2020, 01:27

                                    @Clyde i fixed it.

                                    I didn't like some of the spacing, so I took out the problematic ones and it seems to work okay now. Dragons Lair runs really fast though, its easy to get lost.

                                    I definitely was the one to edit it, since I copied and pasted it into Notepad++, so that makes sense. Thanks for the response, it's good to know what the hell is happening with this stuff. I'm just winging it, trying to edit code and seeing what happens. RetroPie is on my little Intel NUC, but I do pretty much all the handling of stuff with my Windows desktop, then transfer it over.

                                    1 Reply Last reply Reply Quote 0
                                    • ClydeC
                                      Clyde
                                      last edited by 22 Jun 2020, 05:01

                                      Good to hear that it's working now. By the way, you can save files with correct Linux EOL (end of lines) with Notepad++, see here.

                                      1 Reply Last reply Reply Quote 0
                                      • johnodonJ
                                        johnodon @Clyde
                                        last edited by 6 Jul 2020, 13:50

                                        @Clyde said in Daphne install on ubuntu 18.04 x86_64:

                                        @Kartman Which operating system are you using? (name, release number, and 32 or 64 bit)

                                        If your system is 32 bit, try

                                        sudo apt install libglew-dev:i386
                                        

                                        If your system is 64 bit, try

                                        sudo apt install libglew-dev
                                        

                                        If that doesn't fix your problem, please show us the output of the sudo apt command. Besides, the daphne.sh should take care of this.

                                        FYI...I am running Ubuntu Mini 18.04.4 x86_64 and was receiving the same error. I had to install the 32-bit library to get around it.

                                        pi@elitedesk:~/RetroPie-Setup/scriptmodules/emulators$ uname -a
                                        Linux elitedesk 4.15.0-109-generic #110-Ubuntu SMP Tue Jun 23 02:39:32 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
                                        

                                        John

                                        1 Reply Last reply Reply Quote 1
                                        • C
                                          CaptainDatabase
                                          last edited by CaptainDatabase 28 Dec 2020, 09:23

                                          I've been trying to recreate these modifications to install daphne on my Atomic Pi. I got the emulator to install, but it unfortunately still doesn't show the roms in emulation station. If anyone knows what might cause this, I'd appreciate any advice you can share!

                                          Update: I've gotten emulation station to show roms, but the emulator is still giving me an error when trying to run saying that vldp2 is not found.

                                          1 Reply Last reply Reply Quote 0
                                          • First post
                                            Last post

                                          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.

                                            This community forum collects and processes your personal information.
                                            consent.not_received