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
- Download and install mingw_for_mame.zip
from mame.net or here.
- (recommended) Copy the mingw
folder to another folder to have two versions of mingw: normal mame
version and dx8 version.
- 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.
- Copy all the files in the SDK's include
folder into the mingwdx8\include
folder, overwriting the old files.
- (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.
- 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.
- (recommended) I suggest writing two .bat files
so you can switch between the two compilers.
- (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
- Download and extract the current official mame
source files.
- 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+).
- If you downloaded the diff file:
- Extract the diff file into the c:\mame57Analog
folder.
- Change to the c:\mame57Analog
in a dos box.
- Type patch -u -p 1 -i
[diff file name] (or patch
-u -p 1 < analogplus57.dif)
- If you downloaded the source files:
- 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!
- Open a DOS window, if you don't have one open already. Make the c:\mingwdx8
folder in the path.
- Type make
- After mame:Analog+ is finished compiling, you might want to rename
it; the compiled name is: mameanalog.exe
- Type mameanalog -cc
or whatever you renamed it to. You can edit the .ini file to your personal
settings.
- 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.
|