Jump to content

Compiling MAME's Source


Recommended Posts

I don't know much about how to compile regular mame or mame 32, but I have a good idea

 

so here's what I think you have to do

 

download and install MinGW first

 

then, get the mingw-over pack and do not decompress the folder

just navigate through it. While doing that, make sure you have that the directory where you installed MinGW at open.

 

ok, now from the mingw over thingie, put all of the files with a.h extension in the "include" folder (since they're headers and headers are normally include), and all the files with.lib or.a extension in the "lib" folder, and all of the .exe files into the "bin" folder

 

I think that's how you would set up the environment

 

[edit]btw, it'd also help if you went to control panel -> system -> "Advanced" tab -> evironmental variables

 

then go to where it says "path" on the bottom text box, and edit include the directories for your environment

 

for ex. put C:\mamesrc\bin;C:\mamesrc\include;C:\mamesrc\lib;

 

and make sure that before entering a new directory, the one before it ends with a semi-colon

 

IMO, you oughta just restart everything cause I don't think you knew about directories and what not

 

btw, I don't think you should start making bat files if you're a noob at this

Edited by Weirdy
Link to comment
Share on other sites

  • Replies 26
  • Created
  • Last Reply

Top Posters In This Topic

I think that's how you would set up the environment

 

[edit]btw, it'd also help if you went to control panel -> system -> "Advanced" tab -> evironmental variables

 

then go to where it says "path" on the bottom text box, and edit include the directories for your environment

 

 

This is not needed to be done.

 

I only use the bat file ( Batch )

 

 

This is my Bat file for mame32 Plus :thumbsup1:

 

@echo off

rem --------------------------------------
rem MinGW Compiler Configure
rem --------------------------------------

set PATH=\MinGW\bin;extra\bin;%PATH%

rem --------------------------------------
rem HtmlHelp Directory Configure
rem --------------------------------------

set C_INCLUDE_PATH=extra\include
set LIBRARY_PATH=extra\lib

echo make WINUI=1
make NO_DLL=1 WINUI=1 SUFFIX=32
pause

Link to comment
Share on other sites

I think that's how you would set up the environment

 

[edit]btw, it'd also help if you went to control panel -> system -> "Advanced" tab -> evironmental variables

 

then go to where it says "path" on the bottom text box, and edit include the directories for your environment

 

 

This is not needed to be done.

 

I only use the bat file ( Batch )

 

 

This is my Bat file for mame32 Plus :)

 

@echo off

rem --------------------------------------
rem MinGW Compiler Configure
rem --------------------------------------

set PATH=\MinGW\bin;extra\bin;%PATH%

rem --------------------------------------
rem HtmlHelp Directory Configure
rem --------------------------------------

set C_INCLUDE_PATH=extra\include
set LIBRARY_PATH=extra\lib

echo make WINUI=1
make NO_DLL=1 WINUI=1 SUFFIX=32
pause

oh yeah, I know, I don't do that for mame 32 plus either

 

I usually just run the env.bat file first, then make SUFFIX=32 WINUI=32

 

and put other variables, etc in the.def file :thumbsup1:

Link to comment
Share on other sites

God dammit. I'm so thick sometimes.

 

I went back to Mr. Do's compiling tutorial, and I just realized that Inever downloaded and extracted this file: http://www.mame.net/zips/mingw-over-092.zip

 

Jesus I'm dumb.

 

So I extracted that over my MinGW folders and it compiled great. Thanks for your help guys, despite that my problems all stemmed from my inability to read.

Link to comment
Share on other sites

I've got one question :

 

How do u guys keep updated your MAME builds? What are u doing when new version comes out? I suppose that u are using diff files but is it required to delete "obj" folder of older version of MAME to compile newer version? Compiling MAME takes long time :(

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...