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

    compiling mame on ubuntu 22.04 fails

    Scheduled Pinned Locked Moved Help and Support
    ubuntu 22.04lts
    11 Posts 3 Posters 1.3k 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.
    • testudoT
      testudo @dookieshooter
      last edited by testudo

      @dookieshooter

      While I am reluctant to assist a DOOKIE, but here goes nothing...

      Still on Ubuntu 20.04, but had similar issues compiling MAME and MESS.

      In my case I found out that I needed a larger SWAP partition to prevent my CPUs from freezing. The 8GB RAM and 8 GB SWAP were not enough to successfully compile either program. I temporarily increased my SWAP file to 14 GB everything compiled nicely. You might want to give increasing your SWAP space a try and see if that does the trick.

      D 1 Reply Last reply Reply Quote 0
      • D
        dookieshooter @testudo
        last edited by dookieshooter

        @testudo hey thanks! I'm a dookie shooter! not a dookie ;)

        Will try it out soon.

        did you see the same type of errors because of this?

        side note: I started with only 4Gb. that would cause the computer to completely shut off hard, even with forcing compiling with a single core. bumping to 8Gb seemed to help immensely.

        testudoT 1 Reply Last reply Reply Quote 0
        • testudoT
          testudo @dookieshooter
          last edited by

          @dookieshooter

          They were different errors, but I do not recall exactly what they were.

          Guess I'll hold-off upgrading to 22.04 for a bit.

          D 1 Reply Last reply Reply Quote 0
          • D
            dookieshooter @testudo
            last edited by dookieshooter

            @testudo I'm going to try an ubuntu 20lts image in a vm and see where I get. Would still love to hear if anyone else has had success though.

            F 1 Reply Last reply Reply Quote 0
            • F
              Folly @dookieshooter
              last edited by Folly

              @dookieshooter

              Not tried on Ubuntu 22.04.
              Though with other OSes I also had to make the swap larger.

              For your information, binaries can be found here :
              https://stickfreaks.com/mame/
              ( 0.245 can be found in the old directory now )

              Normally the x86_64 version is also in there, but for some reason 0.246 is not.
              Could be that more people have trouble.
              You can check if anything comes along on this forum :
              https://forums.bannister.org/
              (check also the non-Windows part)

              D 1 Reply Last reply Reply Quote 1
              • D
                dookieshooter @Folly
                last edited by

                @Folly Awesome! i searched around but didn't find any pre-compiled bins.

                looks like the gcc versions are different, which would explain some of the errors.

                F 1 Reply Last reply Reply Quote 0
                • F
                  Folly @dookieshooter
                  last edited by Folly

                  @dookieshooter

                  Different gcc version, that could be the problem.
                  Just try a binary, I think it will work.
                  Let me know if it does.

                  D 1 Reply Last reply Reply Quote 1
                  • D
                    dookieshooter @Folly
                    last edited by dookieshooter

                    @Folly

                    So I hacked around and THINK I got the mame 245 binary installed properly. I basically hacked up the mame.sh script in retropie setup to skip the compile step and only take the precompiled stuff from stickfreaks.

                    However, whatever game I use with it exit back out. so no dice there. Could be something else, but I think I'm going to re-install with an older ubuntu LTS image and be done w/ it for now.

                    of course, there's a mame 242 deb package already installed with ubuntu 22. possible to just point retropie to that somehow?

                    F 2 Replies Last reply Reply Quote 0
                    • F
                      Folly @dookieshooter
                      last edited by Folly

                      @dookieshooter

                      And if you run mame directly does it also fail ?
                      Use the command like this (check version) :

                      /opt/retropie/emulators/mame/mame -version
                      

                      or running mame

                      /opt/retropie/emulators/mame/mame
                      

                      Ok, using older version is probably better.
                      However I stopped using Ubuntu.
                      I had mouse pointer issues ( pointer suddenly gone )which I could not resolve in Ubuntu.
                      And for some reason I remember that I had issues with lr-mess too.
                      So from then on I use Debian instead which works far better and also far better with RetroPie, in my opinion.
                      Only nagging thing about Debian is that you probably need the version with "non-free drivers" to support some hardware.
                      And you need add the username to the /etc/sudoers file so you can use the command sudo.

                      1 Reply Last reply Reply Quote 0
                      • F
                        Folly @dookieshooter
                        last edited by

                        @dookieshooter said in compiling mame on ubuntu 22.04 fails:

                        So I hacked around and THINK I got the mame 245 binary installed properly. I basically hacked up the mame.sh script in retropie setup to skip the compile step and only take the precompiled stuff from stickfreaks.

                        Ok, It probably can work if you did it correct.

                        This is how I do it when mame has been already configured earlier :
                        Extract the .7z in /opt/retropie/emulators/mame .

                        This is how I do it when mame has NOT been configured earlier :
                        Extract the .7z in /opt/retropie/emulators/mame .

                        Commands for installing the dependencies and configuring :

                        cd RetroPie-Setup/
                        sudo ./retropie_packages.sh mame depends
                        sudo ./retropie_packages.sh mame configure
                        
                        1 Reply Last reply Reply Quote 0
                        • F Folly referenced this topic on
                        • 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.