Full size screen shot
Please note that it is easier to get advmame up and running. check out my guide here.
First you will need to have some sort of rasberry pi simulator I went with this method.
RPi on Virtual Box
Here are my pre patched files
Lets get started.
Use the following command to ensure your running on the arm kernal
here is my output.
Linux rasberry-pi 3.0.4 #2 mon oct 17 17:39:42 ict 2011 armv61 GNU/LinuxIf you dont have X set up install it by using the command
apt-get install lxde xorg python geany
Now we need to install some dependencies to build xmame.
apt-get install build-essential libgtk2.0-dev libgnome2-dev libsdl1.2-dev
apt-get install libxv-dev libxv1
Download and extract xmame .106
tar xvjf xmame-0.106.tar.bz2
We need to edit the make file so it will compile correctly.
Under reset flags comment out the line
Under Choose from some preset CFLAGS. comment out the folowing
# GCC on x86
CFLAGS = -O2
# GCC on x86
#CFLAGS = -O2
Under general optimizations uncomment
#CFLAGS += -fno-merge-constantsto
CFLAGS += -fno-merge-constants
# CFLAGS += -fstrict-aliasingto
CFLAGS += -fstrict-aliasing
Under Architecture change
MY_CPU = i386
MY_CPU = arm
Save the modified makefile.
now open up the following file.
and Change the line
CFLAGS.risc_lsb = -DALIGN_INTS -DALIGN_SHORTS -DLSB_FIRST
CFLAGS.arm = -DALIGN_INTS -DALIGN_SHORTS -DLSB_FIRST
then close and save the file.
At this point you can finally compile xmame. simply type in make
on my laptop this takes about 6hrs to compile. once done you can run xmame from this directory.
chmod -x xmame.x11./xmame.x11
I hope this gets the ball rolling. I know there is more optimizations to be had.