HOW TO COMPILE MAME

MAME for Dummies Why would you want to compile MAME yourself? There's always an executable version available at the home page, right? Well, there's a couple reasons why:
  1. Immediate updates. In between each major release, there are "u" releases ("u" stands for update). Binaries for these are never available on the main page.
  2. You already have the source. Even if you don't know how to program, the source is interesting to browse through. It'll give you an idea just how much time is actually spent on this wonderful project. Plus, the devs have included notes throughout the source that aren't anywhere else.
You don't have to be a programmer to compile MAME. If your only goal is to be able to compile the new versions, here's the step-by-step (for a Windows system):

NOTE: This is to compile MAME starting with version 0.146u5.

Build the MinGW compiling environment

Build the MAME Source Tree

DIFFs, Extra Files, and Stuff


Apply the "u" Update DIFFs

If you are just compiling the main source code, then you can skip this section.

Create the MAME executable

At the command prompt, type makemame, then go grab a Dr Pepper, as it's going to take a bit.

CONGRATULATIONS!! You have now entered the world of compiling! You can now stay up to date within the world of MAME on your own, without having to wait for another website to upload a pre-compiled version.

What about MAMEUI ?

If you prefer to point and click, you have a couple more steps before you create the MAME executable if you want to create the GUI version, MAMEUI.

NOTE: This is to compile MAMEUI starting with version 0.146u5.

Create the MAMEUI executable

CONGRATULATIONS AGAIN!! You have now both versions of MAME, ready to run. Try both to see which suits you better.

Other Notes

And finally, you can apply source changes from other people or other builds as they come about using these simple tools.

Hope you had fun =)

Extra Files

compile_extras.zip - Includes the two extra batch files, and the command line "Administrator" batch file, for those that don't like to type so much.

compileui_extras.zip - Extra batch files for MAMEUI.

mameui_extras.zip - Extra compile tools needed for MAMEUI.

Links

MAMEWorld EmuChat Forum - If you have questions about compiling, stop by here.

MAMEDev.org - MAME Dev Home Page - Find the source here

MAME/MESS Git Repository - Stay REALLY up-to-date here

MAMEUI - Get the MAMEUI source here