• 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

Unable to build Commander Genius

Scheduled Pinned Locked Moved Help and Support
cgeniussdl2compile error
13 Posts 2 Posters 1.5k 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.
  • W
    war3zlod3r
    last edited by 4 Jun 2018, 13:57

    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).

    log: https://paste.ee/p/h3b0m

    sorry log was too big for pastebin

    1 Reply Last reply Reply Quote 0
    • M
      mitu Global Moderator
      last edited by 4 Jun 2018, 14:12

      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 command

      sudo 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 ?

      1 Reply Last reply Reply Quote 0
      • W
        war3zlod3r
        last edited by war3zlod3r 6 Apr 2018, 15:30 4 Jun 2018, 14:17

        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!

        1 Reply Last reply Reply Quote 0
        • M
          mitu Global Moderator
          last edited by 4 Jun 2018, 14:45

          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 ?

          1 Reply Last reply Reply Quote 0
          • W
            war3zlod3r
            last edited by war3zlod3r 6 Apr 2018, 15:59 4 Jun 2018, 14:49

            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

            1 Reply Last reply Reply Quote 0
            • M
              mitu Global Moderator
              last edited by 4 Jun 2018, 15:58

              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 ?

              1 Reply Last reply Reply Quote 0
              • W
                war3zlod3r
                last edited by 4 Jun 2018, 16:03

                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?

                1 Reply Last reply Reply Quote 0
                • M
                  mitu Global Moderator
                  last edited by 4 Jun 2018, 16:18

                  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).

                  1 Reply Last reply Reply Quote 0
                  • W
                    war3zlod3r
                    last edited by 4 Jun 2018, 16:22

                    so best bet is to backup my files and reimage?

                    1 Reply Last reply Reply Quote 0
                    • M
                      mitu Global Moderator
                      last edited by 4 Jun 2018, 16:37

                      @war3zlod3r said in Unable to build Commander Genius:

                      so best bet is to backup my files and reimage?

                      Probably yes.

                      W 1 Reply Last reply 4 Jun 2018, 16:39 Reply Quote 0
                      • W
                        war3zlod3r @mitu
                        last edited by 4 Jun 2018, 16:39

                        @mitu well drat, thank you so much for the help I appreciate you taking the time to help me narrow down the problem

                        1 Reply Last reply Reply Quote 0
                        • W
                          war3zlod3r
                          last edited by 4 Jun 2018, 16:57

                          is the current posted retropie 4.4 image compatible with 3B+ or should I just reinstall from scratch?

                          M 1 Reply Last reply 4 Jun 2018, 16:58 Reply Quote 0
                          • M
                            mitu Global Moderator @war3zlod3r
                            last edited by 4 Jun 2018, 16:58

                            @war3zlod3r How about checking the news and the download page ?

                            1 Reply Last reply Reply Quote 0
                            9 out of 13
                            • First post
                              9/13
                              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