Site hosted by Angelfire.com: Build your free website today!

Quick Overview: Compile Analog+

Home
Downloads
Features
Compile Help
FAQs
Links


This is a quick outline of compiling Analog+ into mame. Read the more detailed and up to date howto for more details.

Quick update. You can now get the headers and library files from dev-C++ packages page instead of the 124MB file from MS.

Step One: Download and set up compiler, headers, and libraries

  1. Download and install mingw_for_mame.zip from mame.net or here.
  2. (recommended) Copy the mingw folder to another folder to have two versions of mingw: normal mame version and dx8 version.
  3. Download the current Microsoft directX C++ SDK. At the time of this writing (dx 8.1), it is a 124MB compressed file. You only need < 1.4 megs compressed (10 megs uncompressed) of that, but the M$ license prevents me from distributing just the needed files. Either the SDK directX 8.0 or 8.1 headers work. One way to cut down the file size is to download the whole thing on to a high bandwidth computer (cough ... work ... cough), extract the needed files (see next step for list) with winzip, and compress those files to a 1.3 meg zip file. But you shouldn't do this because M$ would get mad at you.
  4. Copy all the files in the SDK's include folder into the mingwdx8\include folder, overwriting the old files.
  5. (Optional) Download the three files I changed in the include folder. Copy these files over the files in the c:\mingwdx8\include folder. This will decrease the number of warnings you get while compiling.
  6. Download the mingw dx8 library files from Peter Puck's site(site is down) or here. Copy the *.a files into the c:\mingwdx8\lib folder, overwriting any old files.
  7. (recommended) I suggest writing two .bat files so you can switch between the two compilers.
  8. (recommended) (if you don't have patch.exe) Download and install the patch.exe file to patch diff files onto the old files. Here.

Step two: download and setup source files

  1. Download and extract the current official mame source files.
  2. Download either the Mame:Analog+ source diff file (mame to most recent Analog+) or straight source zip file from my download page. If you already are using an unofficial mame, the diff file can be used to apply the Analog+ changes along side the other changes automatically (if the other changes do not apply to the same lines as Analog+).
  3. If you downloaded the diff file:
    1. Extract the diff file into the c:\mame57Analog folder.
    2. Change to the c:\mame57Analog in a dos box.
    3. Type patch -u -p 1 -i [diff file name] (or patch -u -p 1 < analogplus57.dif)
  4. If you downloaded the source files:
    1. Extract the files over the official mame source files, overwriting the files. If you are using any other changes to mame, you may need to reapply them.

Step three: compile!

  1. Open a DOS window, if you don't have one open already. Make the c:\mingwdx8 folder in the path.
  2. Type make
  3. After mame:Analog+ is finished compiling, you might want to rename it; the compiled name is: mameanalog.exe
  4. Type mameanalog -cc or whatever you renamed it to. You can edit the .ini file to your personal settings.
  5. Run mameanalog.exe just like you run mame.exe!

Extras:

There are a couple compile time options you can set if you want to, look at the makefile.

Feel free to make any changes to my code. Feel free to email me and tell me how it goes.

Main Site:

speedhost

Mirrors:

prohosting
anglefire

 

I'll redo the page again. (WIP)