Attract-Mode Support Forum

Attract-Mode Support => General => Topic started by: keilmillerjr on January 12, 2019, 12:04:56 PM

Title: Raspberry-Pi-MAME-Setup-Guide
Post by: keilmillerjr on January 12, 2019, 12:04:56 PM
I used raspbian lite. Guide covers configuring the operating system, compiling attract-mode, MAME, advancedMAME, and auto booting to a binary. For those who want a slimmed down mame setup, this guide is for you. For those who want to boot directly into a single game to use the pi as a board replacement, this guide is also for you.

Guide is unfinished, but would be considered a „working" status. Will make edits to the readme on next day off. I am considering creating an image or possibly an installer script.

https://github.com/keilmillerjr/Raspberry-Pi-MAME-Setup-Guide
Title: Re: Raspberry-Pi-MAME-Setup-Guide
Post by: keithcorcoran on January 12, 2019, 06:27:10 PM
Will this work on an old Pi 1?
Title: Re: Raspberry-Pi-MAME-Setup-Guide
Post by: keilmillerjr on January 12, 2019, 09:03:45 PM
Will this work on an old Pi 1?

Yes. There is no built in WiFi on that model. You would have to use Ethernet or buy a WiFi dongle that is compatible.
Title: Re: Raspberry-Pi-MAME-Setup-Guide
Post by: keithcorcoran on January 13, 2019, 08:26:53 AM
As FYI... I downloaded Rasberry Stretch Light and the password was actually

login: pi
password: raspberry

Title: Re: Raspberry-Pi-MAME-Setup-Guide
Post by: keilmillerjr on January 13, 2019, 12:34:17 PM
As FYI... I downloaded Rasberry Stretch Light and the password was actually

login: pi
password: raspberry

Good catch! I’ll edit accordingly. Thank you.
Title: Re: Raspberry-Pi-MAME-Setup-Guide
Post by: progets on January 13, 2019, 10:28:07 PM
Nice write up Keil!
Title: Re: Raspberry-Pi-MAME-Setup-Guide
Post by: keithcorcoran on January 14, 2019, 12:49:42 PM
More questions.

- do I need both MAME and AdvMAME? (any reasons why you're showing both... or is it.. pick one or the other)

- any ideas on how to compile either for 'no-nag' or is that not necessary anymore with latest versions.

also ChoccyHobNob's site has been down for couple of days.. Hope it comes back up soon. Would like to see what's there so I dont have to compile. :)

Title: Re: Raspberry-Pi-MAME-Setup-Guide
Post by: keilmillerjr on January 14, 2019, 02:14:57 PM
More questions.

- do I need both MAME and AdvMAME? (any reasons why you're showing both... or is it.. pick one or the other)

- any ideas on how to compile either for 'no-nag' or is that not necessary anymore with latest versions.

also ChoccyHobNob's site has been down for couple of days.. Hope it comes back up soon. Would like to see what's there so I dont have to compile. :)

Running official mame was a test. It did not yield fast enough results on my 3 b+ to make it a good option for gameplay. I recommend advanceMAME.

https://www.advancemame.it/doc-advmame#8.15.9
advmame.txt
misc_quiet yes | no

Any info pertaining to compiling was included in the guide I created. It was kind of scattered, and I wanted an easy step by step in case I corrupt my disk and have to start over. So I included a bunch of configuration stuff too.
Title: Re: Raspberry-Pi-MAME-Setup-Guide
Post by: keithcorcoran on January 14, 2019, 02:31:38 PM
awesome, thanks for clarification.

this is my first project and limited in scope to an original Pi 1 and I'm only playing 3 low end games.

I'll just be happy to get the Pi running/booting into attract mode with my custom layout and those 3 mame games. :)
Title: Re: Raspberry-Pi-MAME-Setup-Guide
Post by: AdmiralSnackbar on January 18, 2019, 03:18:26 PM
This is great, thank you! I have a good part of my MAME set up but there are things listed in that tutorial I didn't know I could do or will be doing. I'll let ya know if I think of anything else for it.
Title: Re: Raspberry-Pi-MAME-Setup-Guide
Post by: iOtero on February 26, 2019, 05:03:30 AM
Hello, trying to install MAME in a raspbian stretch lite following your guide, when you reach this point you have given me this error:

Code: [Select]
pi@raspberrypi:~/development/SDL $ ./autogen.sh
Generating build information using autoconf
This may take a while ...
Couldn't find autoconf, aborting
pi@raspberrypi:~/development/SDL $

And i do not know whether to continue or what to do.

By the way, for hg to work, i had to install Mercurial, maybe you should indicate it in your guide:

Code: [Select]
pi@raspberrypi:~/development/SDL $ cat /etc/apt/sources.list
deb http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi
pi@raspberrypi:~/development/SDL $ cd /etc/apt
pi@raspberrypi:/etc/apt $ nano sources.list
pi@raspberrypi:/etc/apt $ sudo nano sources.list
pi@raspberrypi:/etc/apt $ cd ~
pi@raspberrypi:~ $ cd development
pi@raspberrypi:~/development $ sudo apt-get update
pi@raspberrypi:~/development $ sudo apt-get install mercurial

I await your quick response, since i have this work stopped. Thank you.

I have tried to compile the libraries and in all of them it has given me the same error with the ./autogen.sh. Also in the SDL2_ttf-2.0.14 with the "make" it gave me this error:

Code: [Select]
/usr/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status
Makefile:474:failure in the instructions for the objective 'glfont'
make: *** [glfont] Error 1
Title: Re: Raspberry-Pi-MAME-Setup-Guide
Post by: keilmillerjr on February 26, 2019, 06:20:00 AM
Hello, trying to install MAME in a raspbian stretch lite following your guide, when you reach this point you have given me this error:

Code: [Select]
pi@raspberrypi:~/development/SDL $ ./autogen.sh
Generating build information using autoconf
This may take a while ...
Couldn't find autoconf, aborting
pi@raspberrypi:~/development/SDL $

And i do not know whether to continue or what to do.

By the way, for hg to work, i had to install Mercurial, maybe you should indicate it in your guide:

Code: [Select]
pi@raspberrypi:~/development/SDL $ cat /etc/apt/sources.list
deb http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi
pi@raspberrypi:~/development/SDL $ cd /etc/apt
pi@raspberrypi:/etc/apt $ nano sources.list
pi@raspberrypi:/etc/apt $ sudo nano sources.list
pi@raspberrypi:/etc/apt $ cd ~
pi@raspberrypi:~ $ cd development
pi@raspberrypi:~/development $ sudo apt-get update
pi@raspberrypi:~/development $ sudo apt-get install mercurial

I await your quick response, since i have this work stopped. Thank you.

I have followed my own guide a few times, so I know it worked 100% with the raspbian image I have at the time I was doing it. Autoconf likely can’t be found in package list? What image are you using?

hg was included in my image. Seems it was removed at some point due to a bug. Not sure what’s going on.
https://tracker.debian.org/news/961900/hg-git-removed-from-testing/
Title: Re: Raspberry-Pi-MAME-Setup-Guide
Post by: iOtero on February 26, 2019, 06:54:19 AM
I have followed my own guide a few times, so I know it worked 100% with the raspbian image I have at the time I was doing it. Autoconf likely can’t be found in package list? What image are you using?

hg was included in my image. Seems it was removed at some point due to a bug. Not sure what’s going on.
https://tracker.debian.org/news/961900/hg-git-removed-from-testing/

Raspbian Stretch Lite November 2018.

Now im try from beginning... with a previus apt-get upgrade.
Title: Re: Raspberry-Pi-MAME-Setup-Guide
Post by: iOtero on February 26, 2019, 08:11:19 AM
In the third attempt I got it, having to compile SDL2_mixer-2.0.2 like 6 or 7 times ... until the make started, before i said that for all i did nothing, or something...  8)

Thanks for the guide, it's a great job on your part.  :)

The bad thing is that with so many steps, some stumble...   :-[
Title: Re: Raspberry-Pi-MAME-Setup-Guide
Post by: keilmillerjr on February 26, 2019, 08:32:50 AM
Glad you got it! Let me know what your results are with a newer mame. I am really curious because mine were not as well as choccy. I did testing on mslug. If you do the same, or other, I will match to compare.
Title: Re: Raspberry-Pi-MAME-Setup-Guide
Post by: iOtero on February 26, 2019, 02:29:45 PM
In the guide, in the compilation of Attract-Mode, in SFML, between points 4 and 5 you need a "sudo make install". 

Check it out, i think i'm right.  8)
Title: Re: Raspberry-Pi-MAME-Setup-Guide
Post by: keilmillerjr on March 07, 2019, 07:24:57 AM
Updated guide to include adding Bluetooth controllers! Got two 8bitdo m30’s.