I found a tip about using advmame instead of xmame and decided it was worth a try.
advmame has an awesome configure script that takes all the work out of editing makefiles.
It also runs a lot faster.
First you will need to have some sort of rasberry pi simulator I went with this method.
RPi on Virtual Box
As before
Use the following command to ensure your running on the arm kernal
uname -a
Linux rasberry-pi 3.0.4 #2 mon oct 17 17:39:42 ict 2011 armv61 GNU/Linux
If you dont have X set up install it by using the commandapt-get install lxde xorg python geany
Now we need to install some dependencies to build advmame. You may not need all of these. I put them together from a lot of tinkering.
apt-get install build-essential libgtk2.0-dev libgnome2-dev libsdl1.2-dev
apt-get install libxv-dev libxv1
Download the advmame source. I tried 106.1 without success.
wget http://sourceforge.net/settings/mirror_choices?projectname=advancemame&filename=advancemame/0.106.0/advancemame-0.106.0.tar.gz
extract the archive.
tar -zxvf
advancemame-0.106.0.tar.gzcd advancemame-0.106.0
Now we configure and compile.
./configure
make
make install
Pretty easy huh. Thanks to advmame team for all there work.