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

    lr-mame2016 fails to build on Ubuntu 21.04

    Scheduled Pinned Locked Moved Help and Support
    lr-mame2016ubuntu 21.04
    13 Posts 4 Posters 815 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.
    • dankcushionsD
      dankcushions Global Moderator @johnodon
      last edited by

      @johnodon said in lr-mame2016 fails to build on Ubuntu 21.04:

      AttributeError: 'array.array' object has no attribute 'tostring'

      this might be related https://github.com/python-intelhex/intelhex/pull/46

      what version of python have you install now? it seems like this should only be an issue with python 3.9 and up. you might want to check your versions

      johnodonJ 1 Reply Last reply Reply Quote 0
      • johnodonJ
        johnodon @dankcushions
        last edited by

        @dankcushions

        pi@elitedesk:~$ ls /usr/bin/python*
        /usr/bin/python2  /usr/bin/python2.7  /usr/bin/python3  /usr/bin/python3.9
        
        
        dankcushionsD 1 Reply Last reply Reply Quote 0
        • dankcushionsD
          dankcushions Global Moderator @johnodon
          last edited by

          @johnodon makes sense. i guess it's running the install via 3.9 and hitting the issue. i guess you could uninstall 3.9? or try and work out how to update intelhex, although i'm out of my depth with python-related stuff so who knows.

          any particular reason you're trying to run 2015/16? any x86_64 machine might as well run current lr-mame, or indeed mame standalone.

          johnodonJ 1 Reply Last reply Reply Quote 0
          • johnodonJ
            johnodon @dankcushions
            last edited by johnodon

            @dankcushions

            Not sure if it is still valid but I was going to use Roslof's emulator list to build my arcade collection:

            https://docs.google.com/spreadsheets/d/1Rq4shU1RUSdcc7cTVWeORMD-mcO6BwXwQ7TGw8f5_zw/edit#gid=0

            Thoughts? I'm wondering if this really doesn't even apply to me since I an on x64 (list is based on Pi4).

            dankcushionsD 1 Reply Last reply Reply Quote 0
            • dankcushionsD
              dankcushions Global Moderator @johnodon
              last edited by

              @johnodon yeah on x86 you should just use standalone mame (you could use the lr- version but i’m not sure what kind of state it is in these days). mame only gets better - the only reason we use these older versions on pis is because we often don’t have the headroom to run later/latest. as soon as you have a modest x86 setup, there’s no reason to use them.

              johnodonJ 1 Reply Last reply Reply Quote 0
              • johnodonJ
                johnodon @dankcushions
                last edited by

                @dankcushions Thanks. That is the direction I will go in.

                FYI...MAME installer script is boogered on Ubuntu 21.04. qt5-default is a dependency but it has been obsoleted. I don't know if it will have any ill effects but I was able to at least get around it using the 'fake-out' method in this post: https://askubuntu.com/questions/1335184/qt5-default-not-in-ubuntu-21-04

                If you are installing some package from third-party which requires qt5-default package on Ubuntu 21.04 (or newer), then you can create fake package by using commands below:

                sudo apt-get update
                sudo apt-get install equivs
                
                cd ~/Downloads
                cat <<EOF > qt5-default-control
                Package: qt5-default
                Source: qtbase-opensource-src
                Version: 5.99.99+fake-13ubuntu37
                Architecture: all
                Depends: qtbase5-dev, qtchooser
                Suggests: qt5-qmake, qtbase5-dev-tools
                Conflicts: qt4-default
                Section: libdevel
                Priority: optional
                Homepage: http://qt-project.org/
                Description: Qt 5 development defaults fake package
                EOF
                
                equivs-build qt5-default-control
                sudo apt-get install ./qt5-default_5.99.99+fake-13ubuntu37_all.deb
                
                1 Reply Last reply Reply Quote 0
                • mituM
                  mitu Global Moderator
                  last edited by

                  You can replace the qt5-default dependency with qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools. Similar to https://github.com/RetroPie/RetroPie-Setup/commit/fbfcc0c9847b6b3a227a4cbb41185bd9ac1849b4.

                  johnodonJ 1 Reply Last reply Reply Quote 0
                  • johnodonJ
                    johnodon @mitu
                    last edited by

                    @mitu I'm pretty sure I tried that first but still got the qt5-default error. I'm compiling now. Once done I'll look at my bash history an make sure that is exactly what I tried.

                    johnodonJ 1 Reply Last reply Reply Quote 0
                    • johnodonJ
                      johnodon @johnodon
                      last edited by johnodon

                      I ran this just prior to trying to install MAME...

                      sudo apt-get install qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools
                      
                      

                      ...but got the same error. In fact, you can see those packages are up to date if I try to install them again:

                      pi@elitedesk:~$ sudo apt-get install qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools
                      Reading package lists... Done
                      Building dependency tree... Done
                      Reading state information... Done
                      qtchooser is already the newest version (66-2build1).
                      qt5-qmake is already the newest version (5.15.2+dfsg-5ubuntu1).
                      qtbase5-dev is already the newest version (5.15.2+dfsg-5ubuntu1).
                      qtbase5-dev-tools is already the newest version (5.15.2+dfsg-5ubuntu1).
                      0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
                      
                      

                      I'll build another 21.04 Server box to confirm.

                      1 Reply Last reply Reply Quote 0
                      • YFZdudeY
                        YFZdude
                        last edited by YFZdude

                        I'd like to piggyback here just a bit, and hopefully not offtopic just to share my experience for whatever it's worth.

                        I've tried many times to get mame installed on my custom built PC from 2012 and failed numerous ways. The PC is AMD processor based and uses a Radeon 7770 GPU, and I can install lr-mame20003 and lr-mame2010 with no problems whatsoever. But when I've tried lr-mame2016, lr-mame, or even mame, I always end up with errors similar to the above and a failure to install.

                         fatal: No names found, cannot describe anything.
                        

                        I've mostly stuck to Ubuntu 20.04, but once tried 21.04 and ran into the same thing @johnodon mentioned about the qt5 dependency. So today I got hold of a Dell Optiplex 3070 to test. I was able to install lr-mame onUbuntu 20.04.2 on the first attempt. This is Intel CPU based with integrated graphics.

                        I suspected and am now increasingly convinced that either my AMD CPU or my old Radeon GPU has something to do with being unable to install on my old PC. Unfortunately the logs and error messages don't provide enough clues to fix it in my experience. So when I get around to doing an arcade cabinet build, I will be looking for an Intel based system.

                        I wonder if there is anyone who can say they have installed newer mame cores on Ubuntu using AMD processors or AMD / Radeon GPUs.

                        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.