User avatar
crundy
Posts: 310
Joined: Fri Aug 12, 2011 7:47 am

Re: MAME

Mon Sep 05, 2011 9:07 am

I know this has been discussed on and off in other threads, but I thought I'd start a dedicated topic.

So does the R-Pi have enough power to run mame? I'm tempted to build an arcade cabinet and have an R-Pi as the computer for it. I'm trying to find a build of MAME which will run on an ARM processor under linux and all I can find is this so far. Any input?

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 23309
Joined: Sat Jul 30, 2011 7:41 pm

Re: MAME

Mon Sep 05, 2011 9:12 am

That port is for Arm on RiscOS so won't work on the Raspi Linux. Haven't looked very hard, but I reckon you will need to recompile the Mame code to arm linux. Or it may already be in the debian archive....

It should work though, although not sure how fast some of the more recent games will run - but why anyone would want anything more than Mr Do! and Bubble Bobble......
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

User avatar
crundy
Posts: 310
Joined: Fri Aug 12, 2011 7:47 am

Re: MAME

Mon Sep 05, 2011 9:29 am

Kung Fu Master & 1943 FTW!

User avatar
crundy
Posts: 310
Joined: Fri Aug 12, 2011 7:47 am

Re: MAME

Mon Sep 05, 2011 11:13 am

It looks like someone got Xmame working under linux with an ARM processor:
http://old.nabble.com/cross-co.....67580.html
Not sure how complex it would be to mod the makefiles to work with R-Pi. Is that something the devs could have a go at with the alpha boards, as I suspect MAME will be something a lot of people want to use them for?

pieter
Posts: 34
Joined: Mon Aug 22, 2011 7:12 am
Contact: Website

Re: MAME

Mon Sep 05, 2011 11:34 am

Mame is available from the debian repositories.
http://packages.debian.org/sea.....e§ion=all
And is available for armel.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 23309
Joined: Sat Jul 30, 2011 7:41 pm

Re: MAME

Mon Sep 05, 2011 11:39 am

I've tried a number of those, but the packages appear to be broken. I think because there is no arm version of xmame-x
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

pieter
Posts: 34
Joined: Mon Aug 22, 2011 7:12 am
Contact: Website

Re: MAME

Mon Sep 05, 2011 12:33 pm

I've just tried apt-get install mame on my guruplug and it installed without any problems. Can't run it though since it doesn't have a (usb)videocard :-)
My guruplug is running debian-sid (unstable). And the "mame" package is only available from non-free.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 23309
Joined: Sat Jul 30, 2011 7:41 pm

Re: MAME

Mon Sep 05, 2011 12:53 pm

I'm running squeeze, and I do have the non-free package enabled.

[email protected]:~/projects/linpack$ sudo apt-get install mame
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package mame


Get similar errors for the other mame stuff I have tried.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

Svartalf
Posts: 596
Joined: Fri Jul 29, 2011 6:50 pm

Re: MAME

Mon Sep 05, 2011 2:07 pm

Quote from crundy on September 5, 2011, 12:13
Not sure how complex it would be to mod the makefiles to work with R-Pi. Is that something the devs could have a go at with the alpha boards, as I suspect MAME will be something a lot of people want to use them for?

You wouldn't have to mod them much if at all. It's using XMame, which means it's all of a specification of differing gcc, etc. or a recompile with scratchbox away. ;)

User avatar
crundy
Posts: 310
Joined: Fri Aug 12, 2011 7:47 am

Re: MAME

Mon Sep 05, 2011 2:07 pm

The mame src looks like it does support arm11:

893 case 6: // ARM11
894 data = 0x41 | (10<< 12) | (7<<16); // v6
895 break;
896 }

Svartalf
Posts: 596
Joined: Fri Jul 29, 2011 6:50 pm

Re: MAME

Mon Sep 05, 2011 2:25 pm

Quote from crundy on September 5, 2011, 15:07
The mame src looks like it does support arm11:


Well, then, why do they have this:


3 * arm7.c
4 * Portable CPU Emulator for 32-bit ARM v3/4/5/6


Looking at the code you're pointing to, it looks more like you're mis-reading what that case statement's doing there.

User avatar
crundy
Posts: 310
Joined: Fri Aug 12, 2011 7:47 am

Re: MAME

Mon Sep 05, 2011 2:40 pm

I assumed it was detecting ARM11 and using the ARM6 version of the code (which presumably is compatable)?

Svartalf
Posts: 596
Joined: Fri Jul 29, 2011 6:50 pm

Re: MAME

Mon Sep 05, 2011 2:47 pm

Quote from crundy on September 5, 2011, 15:40
I assumed it was detecting ARM11 and using the ARM6 version of the code (which presumably is compatable)?

My bad- sorry. I mis-read your post there... (Must, must, must remember to have had my morning Caffeine IV before posting... :D) It clearly does support it and has for some time- we just need to get a good packaging, however it's accomplished.

User avatar
crundy
Posts: 310
Joined: Fri Aug 12, 2011 7:47 am

Re: MAME

Mon Sep 05, 2011 2:52 pm

It looks like Xmame is no longer supported, but there is SDLMame, which is what the Wii port uses, and there seems to be a version for ubuntu / debian here:

http://sdlmame.wallyweek.org/download/

Any of those work?

Svartalf
Posts: 596
Joined: Fri Jul 29, 2011 6:50 pm

Re: MAME

Mon Sep 05, 2011 3:03 pm

Quote from crundy on September 5, 2011, 15:52
It looks like Xmame is no longer supported, but there is SDLMame, which is what the Wii port uses, and there seems to be a version for ubuntu / debian here:

http://sdlmame.wallyweek.org/download/

Any of those work?

It should, if it's got a similar framework for things as Xmame had in it. I'd have to look at the source code to see...

User avatar
crundy
Posts: 310
Joined: Fri Aug 12, 2011 7:47 am

Re: MAME

Mon Sep 05, 2011 3:52 pm

Damnit! I need an R-Pi now! There's a limited timeframe at work when my brother agrees to do some laser cutting for me :-\

pieter
Posts: 34
Joined: Mon Aug 22, 2011 7:12 am
Contact: Website

Re: MAME

Tue Sep 06, 2011 7:58 am

Quote from jamesh on September 5, 2011, 13:53
I'm running squeeze, and I do have the non-free package enabled.

[email protected]:~/projects/linpack$ sudo apt-get install mame
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package mame


Get similar errors for the other mame stuff I have tried.

Looks like it's not available in squeeze/stable at the moment.
It is available in wheezy/testing and sid/unstable.

User avatar
crundy
Posts: 310
Joined: Fri Aug 12, 2011 7:47 am

Re: MAME

Thu Sep 29, 2011 3:23 pm

Meh, I've been trying to install mame on my dev VPC with no luck. I tried using the instructions here:
http://apt.ludomatic.fr/?hl=en
But I get an error about the repository index being malformed. Tried downloading the source and compiling (after installing gcc & g++) but I just get loads of errors.

pieter
Posts: 34
Joined: Mon Aug 22, 2011 7:12 am
Contact: Website

Re: MAME

Fri Sep 30, 2011 8:43 am

Quote from crundy on September 29, 2011, 16:23
But I get an error about the repository index being malformed..

Sounds like a typo in your /etc/apt/sources.list. Could you post it? Maybe I (or someone else here) can see what is wrong.

Prometheus
Posts: 308
Joined: Tue Dec 13, 2011 11:09 pm

Re: MAME

Wed Dec 14, 2011 12:40 am

I know that the last post to this thread was back in September, but I have some possibly useful information to add. I hope that bumping this isn't a problem!

Would MAME4All be useful here? It's a tweaked version of MAME 0.37b5, with added support for some games from later versions as well, and it's been optimised over time for a lot of ARM-based systems. Whilst it lacks things like CPS2 support (MAME 0.106 was compiled for the Pandora some time ago, but does require some overclocking for things like CPS2 and some of Konami's 90s games like Bucky O'Hare, so perhaps the same could be done for the Raspberry Pi, there?), it does handle the classics beautifully, and it isn't too demanding.

The source code for MAME4All is located here along with some other bits and pieces like makefiles for various platforms.

mm0zct
Posts: 1
Joined: Wed Dec 14, 2011 1:07 am

Re: MAME

Wed Dec 14, 2011 1:37 am

SDLMame is available on my Nokia N900, which runs essentially arm debian (maemo5), so I don't imagine it would be a problem for the RasPi even if it wasn't in the repositories already. As for the performance and compatibility http://wiki.maemo.org/Sdlmame has a good list of the current state on the n900 hardware, which is a bit beefier on the CPU front than the RasPi.

User avatar
Jessie
Posts: 1754
Joined: Fri Nov 04, 2011 7:40 pm
Location: C/S CO USA

Re: MAME

Wed Dec 14, 2011 5:16 am

I can gaurantee that someone will get MAME working on the R-Pi soon after launch. This and other emulators will be the sole use for many peoples projects. I know it will be one of the first things I try and get working. Some of the games may not play well but I bet games well into the 90's will play at full frame rates.

User avatar
crundy
Posts: 310
Joined: Fri Aug 12, 2011 7:47 am

Re: MAME

Wed Dec 14, 2011 10:43 am

Seeing this thread pop up again spurred me on to have another try at compiling MAME, but I just get tons of errors. It reminded me why I hate linux sometimes.

QuantumLeaper
Posts: 9
Joined: Tue Aug 30, 2011 4:52 pm

Re: MAME

Sat Dec 17, 2011 10:06 pm

Quote from Prometheus on December 14, 2011, 00:40
Would MAME4All be useful here? It's a tweaked version of MAME 0.37b5, with added support for some games from later versions as well, and it's been optimised over time for a lot of ARM-based systems. Whilst it lacks things like CPS2 support

Mame 0.37b5 was released on July 27, 2000, its even older than XMame. Try something that runs in Linux first, most likely that will require minimum porting.

Mame runs on just about anything, including in Chrome browser as a Native Client code, in fact the NaCl code has been ported back into Mame to make it better in the future when someone tries to cross compile it.

https://developers.google.com/native-cl ... rting/MAME

Prometheus
Posts: 308
Joined: Tue Dec 13, 2011 11:09 pm

Re: MAME

Sat Dec 17, 2011 10:50 pm

Quote from QuantumLeaper on December 17, 2011, 22:06
Quote from Prometheus on December 14, 2011, 00:40
Would MAME4All be useful here? It's a tweaked version of MAME 0.37b5, with added support for some games from later versions as well, and it's been optimised over time for a lot of ARM-based systems. Whilst it lacks things like CPS2 support

Mame 0.37b5 was released on July 27, 2000, its even older than XMame. Try something that runs in Linux first, most likely that will require minimum porting.

My apologies if I've misunderstood your post in some way, but running in Linux is why I suggested MAME4All. ;)

I use MAME4All on a Pandora, myself (which runs Ångström, specifically).

Return to “General discussion”