With the following instructions you should be able to compile Mame on Ubuntu 13.10 Saucy Salamander. It should also work in any other version of Ubuntu too.
- Download the latest source from http://mamedev.org/release.html Grab MAME and MESS 0.150 sources in ZIP format (all platforms)
- Unzip the file, and then unzip that file. Place it anywhere you like.
mkdir mame
unzip mame_source.zip
unzip mame.zip -d mame
rm mame.zip - Next we install all the libraries and dependencies necessary to build mame.
sudo apt-get install build-essential libgtk2.0-dev libgnome2-dev libsdl1.2-dev libqt4-dev libqt4-gui libsdl-ttf2.0-dev
- Finally, lets get to building it.
cd mame
make