Unable to build Commander Genius
-
Pi Model 3B+
PSU 5v 2.5amp
Retropie 4.4 with setup script 4.4.1
Could not successfully build cgenius - Commander Genius - Modern Interpreter for the Commander Keen Games (Vorticon and Galaxy Games) (/home/pi/RetroPie-Setup/tmp/build/cgenius/src/CGeniusExe not found).sorry log was too big for pastebin
-
You're missing some required libraries when building
[...] /home/pi/RetroPie-Setup/tmp/build/cgenius/GsKit/graphics/GsTexture.h:5:23: fatal error: SDL_image.h: No such file or directory [...]
These dependencies should have been automatically installed by the RetroPie-Setup script (package
libsdl2-image-dev
), but it seems they're not. Can you install them manually with the commandsudo apt-get -y install build-essential cmake libcurl4-openssl-dev libvorbis-dev libogg-dev libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libboost-dev python3-dev
and then retry the installation ?
-
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version (12.3).
cmake is already the newest version (3.7.2-1).
libboost-dev is already the newest version (1.62.0.1+b4).
libcurl4-openssl-dev is already the newest version (7.52.1-5+deb9u6).
libogg-dev is already the newest version (1.3.2-1).
libsdl2-image-dev is already the newest version (2.0.1+dfsg-2+deb9u1).
libsdl2-mixer-dev is already the newest version (2.0.1+dfsg1-1).
libvorbis-dev is already the newest version (1.3.5-4+deb9u2).
python3-dev is already the newest version (3.5.3-1).
python3-dev set to manually installed.
libsdl2-dev is already the newest version (2.0.8+1rpi).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.is the return I get when running that command
edit: love the megaman avatar btw!
-
Hm, there doesn't seem to be any radical changes recently in the upstream repository. I'll take a look to build it myself, but just to eliminate any corruption, can you re-install the the SDL deveopment libraries dependencies:
sudo apt-get -y install --reinstall libsdl2-image-dev libsdl2-mixer-dev
and then retry building ?
-
Thanks so much for the quick responses, still giving me the same build error though, noticed I also have issues trying to build Abuse
Edit: seems to work on my Pi Zero W fine
Edit 2: not sure if this helps but here is my abuse build log https://paste.ee/p/uRqtq
-
I tried building CGenius and I don't get any errors building - in the same step you're having the error. Looking over the CMake output, I see that on my system I have SDL detected in the system's folder
[..] -- Found Threads: TRUE -- Found SDL2: /usr/lib/arm-linux-gnueabihf/libSDL2main.a;/usr/lib/arm-linux-gnueabihf/libSDL2.so;-lpthread [...]
while in your log it's detected in the local site folder
-- Found Threads: TRUE -- Found SDL2: /usr/local/lib/libSDL2main.a;/usr/local/lib/libSDL2.so;-lpthread
while the rest of the SDL2 libraries (mixer, image) are in the system folders (
/usr/lib/arm-linux-gnueabihf/
). This SDL installation mismatch is probably what's causing the compilation to fail.Did you install manually SDL2 into your system ? What image have you used to install RetroPie ?
-
I did not install SDL manually but I did install retropie manually over raspbian stretch, I built it back in march when there wasn't yet a compatible image for the 3B+. Is there a way to resolve this mismatch?
-
I can't give any advice on how to get it removed since I don't know how it got there and how it was installed, plus there might be other software that depends on it (especially if it was built from source).
-
so best bet is to backup my files and reimage?
-
@war3zlod3r said in Unable to build Commander Genius:
so best bet is to backup my files and reimage?
Probably yes.
-
@mitu well drat, thank you so much for the help I appreciate you taking the time to help me narrow down the problem
-
is the current posted retropie 4.4 image compatible with 3B+ or should I just reinstall from scratch?
-
@war3zlod3r How about checking the news and the download page ?
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.