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

    emulationstation does not compile on lubuntu 14.04

    Scheduled Pinned Locked Moved Help and Support
    emulationstatiocompile failedlubuntu
    8 Posts 2 Posters 1.7k 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.
    • N
      Neo-Rio
      last edited by

      It's not compiling properly on a 32-bit up-to-date lubuntu 14.04.
      I get it that it's an older LTS release, but this is the only one that will really support most AGP graphics cards on 32-bit systems (on which I am trying to compile everything)

      Here's what I see in the logs (summarized to avoid the forum spam filter)
      "/usr/include/c++/4.8/bits/vector.tcc:134:5: note: no known conversion for argument 1 from candidate expects 2 arguments, 1 provided"

      1 Reply Last reply Reply Quote 0
      • N
        Neo-Rio
        last edited by

        looks like a gcc error with 4.8

        Will try adding gcc 4.9 to this version of lubuntu and report back

        1 Reply Last reply Reply Quote 0
        • N
          Neo-Rio
          last edited by

          Nope, still not working.
          The executable is now gcc 4.9, but the other libraries are using 4.8 - which seems tied to everything else in the distribution.
          Hence emulationstation is still not compiling

          mituM 1 Reply Last reply Reply Quote 0
          • mituM
            mitu Global Moderator @Neo-Rio
            last edited by mitu

            @neo-rio Use a supported system then. Is there a reason you're not upgrading to the latest LTS ?
            EDIT: I saw you mentioning the reason you're not upgrading - is you graphic card not supported in the 16.06 or latest LTS ?

            N 1 Reply Last reply Reply Quote 0
            • N
              Neo-Rio @mitu
              last edited by Neo-Rio

              @mitu

              Nope. 14.04 was the last LTS that supported AGP graphics cards (think Windows XP penitum 4s circa 2004)
              Without those graphics card drivers, emulationstation graphics don't render - you just get blank squares.
              Hence it's fairly critical to get 14.04 working to save those old computers from landfill.

              I'll have to mess with gcc some more, but 4.8 is tied to a lot of the OS.

              What I've done so far is:

              add-apt-repository ppa:ubuntu-toolchain-r/test
              apt-get update
              apt-get install gcc-4.9

              which gets gcc-4.9 installed, but for some reason the compile of emulation station still uses /usr/include/c++/4.8 , so I'm missing something. I tried mucking about with update-alternatives, but the /usr/bin/gcc is already 4.9 (evidenced by gcc --help), but it still uses 4.8 libraries I guess. A bit confusing. Either way - not compiling.

              mituM 1 Reply Last reply Reply Quote 0
              • mituM
                mitu Global Moderator @Neo-Rio
                last edited by

                @neo-rio said in emulationstation does not compile on lubuntu 14.04:

                Nope. 14.04 was the last LTS that supported AGP graphics cards (think Windows XP penitum 4s circa 2004)

                Do you have a reference for this ? What cards are we talking about ?

                1 Reply Last reply Reply Quote 0
                • N
                  Neo-Rio
                  last edited by

                  Solved the problem. I needed both gcc and g++ to be on 4.9

                  (add toolchain repository to lubuntu and install gcc and g++ 4.9)
                  add-apt-repository ppa:ubuntu-toolchain-r/test
                  apt-get update
                  apt-get install gcc-4.9 g++-4.9

                  (shouldn't really need to do this bit on a fresh OS install - here for completeness)
                  update-alternatives --remove-all gcc
                  update-alternatives --remove-all g++

                  (update the priorities for which gcc to use)
                  update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 10
                  update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 20

                  (update the priorities for which g++ to use)
                  update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 10
                  update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 20

                  (link cc and c++ to gcc and g++ - you can ignore the warnings)
                  update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 30
                  update-alternatives --set cc /usr/bin/gcc
                  update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++ 30
                  update-alternatives --set cc /usr/bin/g++

                  (configs the default commands for gcc and g++ - you can now see the alternatives available)
                  update-alternatives --config gcc
                  update-alternatives --config g++

                  After this emulationstation will build properly as per instructions.

                  https://pastebin.com/iYNFwn5R

                  1 Reply Last reply Reply Quote 0
                  • N
                    Neo-Rio
                    last edited by

                    Actually, your mileage may vary by doing this when it comes to the emulators because although they all compiled, some of them crashed when executed.

                    Much better to use the latest 16.04 LTS or later on a PC with a CPU with core2duo or later.

                    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.