Daphne install on ubuntu 18.04 x86_64
-
@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.
-
Tried that already. Doesn't compile in Ubuntu 22 64-bit either. That's why I decided to see if MrCoolSpan had an answer for Daphne and Ubuntu 22 first, since its issue was already on the table, so to speak.
-
@VintageVolts said in Daphne install on ubuntu 18.04 x86_64:
Tried that already. Doesn't compile in Ubuntu 22 64-bit either.
Hm, that's an issue - is the same error you get on the original Daphne sources or it's during the configuration phase (
cmake
error) ? -
It's the same error.
-
@VintageVolts You may be missing some package dependencies.
Why are you trying to build the package manually ? You can installhypseus
from RetroPie-Setup - like any other emulators - and there's no error when doing so (tested on Ubuntu 22.04). -
@VintageVolts said in Daphne install on ubuntu 18.04 x86_64:
It's the same error.
So
predefs.h
is one of the headers needed to compile against 32 bit binaries in a 64 bit system. It's usually present in libc6-dev-i386 package.I suspect you are missing the step to enable 32-bit Arch in 22.04 - tutorialforlinux link.
sudo dpkg --add-architecture i386 sudo apt install libc6-dev:i386 libc6:i386 libstdc++6:i386 libncurses5:i386 zlib1g:i386 etc.....
But as @mitu states use
RetroPie-Setup
-
RetroPie-Setup is what I tried first. That's what led me down this rabbit hole.
The RetroPie Setup on an x64 environment is blocked through the Setup program. Both Daphne and Hypseus are listed in red to indicate that they are 32-bit and cannot be installed through Setup.
My next step was to install them manually, following instructions on both the Daphne and Hypseus respective pages. Both of them had issues. Daphne only supplies compiled binaries, which fail over and SDL issue, but Hypseus lets you compile from sources... with the listed error.
After finding Daphne sources referenced by MrCoolSpan on this very thread, I found that both Daphne and Hypseus fail to compile due to the missing predefs.h file.
Thank you for your link to enabling 32-bit Arch in 22.04. That is another resource, or potential solution, I was hoping to be offered. I will try that and see if I can get past the current error.
-
@VintageVolts said in Daphne install on ubuntu 18.04 x86_64:
The RetroPie Setup on an x64 environment is blocked through the Setup program. Both Daphne and Hypseus are listed in red to indicate that they are 32-bit and cannot be installed through Setup.
Hypseus is not 'blocked', there's no flag to indicate is 32bit only. Not sure where you got the scriptmodule - what version of RetroPie-Setup are you using ?
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.