Http://maxolasersquad.blogspot.com/2010/12/how-to-compile-mame-in-ubuntu-1004.html
Using the following instructions you shoshould be able to compile mame on Ubuntu 10.04 lucid lynx, though it shoshould also work in most any other version of ubuntu too.
-
- Download the latest source from http://mamedev.org/release.html grab the. Zip version. The following command will grab the latest source as of the time I wrote this tutorial.
Wget http://mamedev.org/downloader.php? File = releases/mame0140s.zip -- User-Agent = "Mozilla/5.0 (windows; U; Windows NT 5.1; en-US; RV: 1.8.1.6) gecko/20070725 Firefox/2.0.0.6 "-O mame_source.zip
Here we change the user/agent string, because the server is set to prevent robots, like wget, from programmatically downloading the file.
- Unzip the file, and then unzip that file. Place it anywhere you like, perhaps your home directory.
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 aptitude install build-essential libgtk2.0-dev libgnome2-dev libsdl1.2-Dev
- Finally, lets get to building it.
CD Mame
Make
-
- Let's setup a rom folder and get some ROMs.
Mkdir ROMs
CD ROMs
Wget http://mamedev.org/roms/sidetrac/sidetrac.zip -- User-Agent = "Mozilla/5.0 (windows; U; Windows NT 5.1; en-US; RV: 1.8.1.6) Gecko/20070725 Firefox/2.0.0.6"
-
- Now that we have legally obtained an arcade Rom, let's play it!
CD ..
once you know what libraries to install, compiling Mame from source is quite easy in Ubuntu. drop me a line in the comments if this is helpful, or if you run into any problems or have any suggestions.