Compiling MAME .141 on Ubuntu 10 (or other Linuxes)

A place where you can chat about anything that isn't to do with games!
Post Reply
User avatar
louisg
Posts: 2897
Joined: Wed Jul 20, 2005 7:27 pm
Location: outer richmond
Contact:

Compiling MAME .141 on Ubuntu 10 (or other Linuxes)

Post by louisg »

Hey, has anyone here had any luck with this? I'm getting errors when it's building one of the tms* CPU sources that seem to maybe be in the assembler. I've tried it both with GCC 4.4 and GCC 4.3. Anyone know if it builds right on other recent Linuxes?

EDIT: Incorrectly said .142 before :).. it's 141
Humans, think about what you have done
e_tank
Posts: 148
Joined: Wed Apr 23, 2008 5:04 am

Re: Compiling MAME .141 on Ubuntu 10 (or other Linuxes)

Post by e_tank »

i'm on arch with gcc 4.5 and recently compiled 0.141u2 myself without any issues. you can take a look at the PKGBUILD i used to build it here. you can't use that directly since you're on ubuntu, but you can use it as a guide (it's basically just a bash script). here are the following lines from the PKGBUILD that i think may do the trick:

Code: Select all

unzip mame.zip
find . -type f -not -name \*.png | xargs perl -pi -e 's/\r\n?/\n/g'
patch -p0 -E <0141u1.diff
patch -p0 -E <0141u2.diff
sed -i 's/-Werror//' makefile
sed -i 's/LDFLAGS = -Wl,--warn-common/LDFLAGS = -Wl,--warn-common -Wl,-zmuldefs/' makefile
i have a feeling those 2 sed lines may fix the problem, the first one disables errors on warnings, and the second one allows multiple definitions to not cause errors.
User avatar
louisg
Posts: 2897
Joined: Wed Jul 20, 2005 7:27 pm
Location: outer richmond
Contact:

Re: Compiling MAME .141 on Ubuntu 10 (or other Linuxes)

Post by louisg »

Hmm thanks.. I actually didn't realize the src zip file you get from the site isn't patched up to the latest. But, even after the script and all the patches, it didn't compile. I did find a Ubuntu binary package, so I used that. I guess I'll see what they tweaked, just out of curiosity.
Humans, think about what you have done
Post Reply