Daphne install on ubuntu 18.04 x86_64
-
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() '
-
@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 withsudo 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
. -
@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.
-
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.
-
@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, thedaphne.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
-
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.
-
sorry about the no response i have a lot to do
now i well try this on my new ubuntu 20.4 x64 system -
Sorry, forgot to update. Manually installing vldp2 fixed the issue. I'm not sure why the lines in the script didn't work properly, but doing it myself worked fine. 🤷♂️
-
@mrcoolspan said in Daphne install on ubuntu 18.04 x86_64:
American Laser Games
I have now install it on my ubuntu 20.4
i have this working now
Daphne
American Laser Games
ActionMax needs a some game file editing -
Hello
I have update the script and fils
it now support
Daphne
American Laser
AutoMaxthe easy way to install it
it to you my git
git clone --depth=1 https://github.com/MrCoolSpan/RetroPie-Setup.git
have fun -
@captaindatabase I have fixt it
-
@mrcoolspan I've installed Ubunto 20.4 and the latest updates and RetroPie from mrcoolspan .git
The setup script fails to execute and logs a dependency i cannot resolve:E: Unable to locate package python-pyudev
Unable to install packages required by /home/arcade/RetroPie-Setup/retropie_packages.sh - Could not install package(s): python-pyudev. -
@heavyholyman It's not part of the official Ubuntu repositories after 18.04 anymore:
Until @mrcoolspan updates the script, you could try to download and install the 18.04 version. Choose a mirror in your region, download the file, and try to install it with this command:
sudo dpkg -i python-pyudev_0.21.0-1_all.deb
I didn't test this, though. There might be other packages missing or at the wrong (newer) version in 20.04.
-
@clyde Thanks for the advice! It was tedious, but i finally got Daphne working properly on Ubuntu 20.04.2. To install from MrCoolSpan's git, i installed python-pyudev as you suggested. However, it first needed python-six, which i tried to install using 'sudo apt-get install python-six'. That also threw an error, but things improved after 'sudo apt --fix-broken install'. After that command, i was able to install python-six, then python-pyudev.
With the pre-reqs taken care of, i was then able to run retropie-setup and install daphne. Games launched from EmulationStation, but i prefer Attract-Mode front-end. Attract would not launch any games, and displayed an error that it could not load VLDP dynamic library. That was resolved by copying libvldp2.so to the /lib/ directory. 'sudo cp /opt/retropie/emulators/daphne/libvldp2.so /lib'
All is working now, but i sure wish daphne simply worked 'out of the box' instead of requiring the extra steps!
-
@heavyholyman Good to hear that it works. As a little word of advice, I would have linked the
libvldp2.so
to/lib
rather than copying it:sudo ln -f -s /opt/retropie/emulators/daphne/libvldp2.so /lib/libvldp2.so
The
-f
option (force) will replace any existing file or link with the same name in the destination with the new link. The-s
option will create a so-called symbolic link (symlink) or soft link that shows you its destination when you list it with thels
command.ls -l /lib/libvldp2.so
(Both
l
are lowercase L and not ones.)This way, you'll always know where this file in one of your system's directories came from. But this is only a measure for a tidy system and shouldn't make any operational difference. 🧐
-
@clyde I have fix that ;)
just download from my git -
New issue. Can't get Daphne to compile because it needs bits/predefs.h to be available. I believe it's missing from the latest version of Ubuntu.
I'm using Ubuntu 22.04.1 LTS 64-bit
-
@VintageVolts Please open a separate topic - you seem to have a different issue than the original poster (which was using Ubuntu 18.04).
-
I was using the replacement install script that the OP put out in his first post. The point I was making is that his script is having issues in a newer version of Ubuntu.
Even heavyholyman in this thread is referring to Ubuntu 20.04.2 with the conversation continuing on.
Mine just seemed to be an issue regarding running the OP's new install script, regardless of Ubuntu version.
-
@VintageVolts Maybe try hypseus instead of the old Daphne code, it's maintained and works for PC systems also.
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.