| Main > Software Forum |
| Hey, MAME compiling genius-types! |
| << < (3/4) > >> |
| SirPoonga:
However, that set of instructions is a little out of date. Do not use the source code and migw downloads from it. Goto the main download page on mame.net. Get the source code (of course) and the utilities int he section for the mame version you want to compile. Assuming 103 you will want the first set links. Install MingW with the exe then unzip the ming-over file tot he mingw folder. Once you setup your path to include the mingw bin folder you can put your source code where ever you want. A good rule of thumb, keep a copy of the original source around incase something goes wrong. BEFORE adding any patches (diffs) compile mame to make sure it compiles. This will determine if the problems you encounter are install related or source related. If you compiled first time after a source code change it would be tougher to determine why an error occured if it occurs. |
| markrvp:
Okay, I'm getting frustrated. I tried the compile routine posted by HeadKaze and it looks like it's compiling in a DOS box, and when it gets through a new folder called "obj" is created with includes one folder called "mame32FXp4" but an executable is not created. I've done this twice. I have tried what SirPoonga suggests without trying to patch anything. I extracted the MinGW file to a folder in c:\MinGW. I extracted the "over .92" file on top of MinGW. I have extracted the MAME .103 source into its own folder and I have extracted the Mame32 source on top of that. Then I went in and made the change to the source I wanted which was just changing one mouse value from 512 to 4. Here is where I think I don't have something right: --- Quote ---Now most people will tell you to set up your path by editing your c:\autoexec.bat file. I have a grudge against this because some people use multiple utilities for different programs and mixing includes and libs and such will make you pull your hair out! I recommend going to your windows/command directory and opening a new text file. In the text file, type " path=c:\mingw\bin;%path% " with the correct path for your mingw, of course, and save it as mingw.bat. From now on, you will be able to just type "mingw" (without the quotes) at the command prompt from anywhere and your path will be set up. When you close that command prompt and open a new one, your path will be as default. --- End quote --- I'm running Windows XP and there is not a COMMAND folder in the Windows directory. I was able to create a file called mingw.bat but it is in the c:\mingw folder. Shouldn't it go somewhere else? Is it supposed to go in the "mame .103" folder? I feel very strongly that I don't have a path setup correctly somewhere. Also, please verify that the text in the mingw.bat file should read exactly: PATH=C:\MINGW\BIN;%path% In a DOS prompt I go to c:\mame .103 where all the source code is. It is my understanding that I should then type: mingw (EDIT: While I've been typing I did indeed copy the mingw.bat file into the Mame .103 folder where the source is and opened a dos prompt and typed mingw which seemed to do something. The I typed mingw32-make which started a compile. However, since I didn't type "mingw32-make WINUI=1 P4=1 SUFFIX=32" will it just be a regular commandline version of MAME?) Also, after a successful compile, where should I be able to find the MAME.exe? Please stay with me. |
| JoyMonkey:
Why are you bringing Mame32 source into it? That might be why you're having difficulties. I'm compiling Mame 0.103 with the change that u_rebelscum suggested right now. Should be done in about 30 minutes. I haven't compiled anything above 0.92, but it looks like nothing in MinGW has changed since then, so it should work (hopefully). |
| markrvp:
If it works would you please make it available for download? So if I had not extracted the Mame32 source on top of the MAME source, would I still use the same mingw.bat file with the path I had set? Does the mingw.bat file go in the MAME source directory? Assuming that the MAME source is in its own directory (not in the MinGW directory), what should I type from the dos prompt to activate a successful compilation? |
| SirPoonga:
--- Quote from: markrvp on January 16, 2006, 06:06:21 pm ---I have tried what SirPoonga suggests without trying to patch anything. I extracted the MinGW file to a folder in c:\MinGW. I extracted the "over .92" file on top of MinGW. I have extracted the MAME .103 source into its own folder and I have extracted the Mame32 source on top of that. Then I went in and made the change to the source I wanted which was just changing one mouse value from 512 to 4. --- End quote --- You did more than what I suggested. Just compile mame. Not mame32 or any variant. Once you get compiling working then add the other stuff. Here is where I think I don't have something right: --- Quote ---PATH=C:\MINGW\BIN;%path% In a DOS prompt I go to c:\mame .103 where all the source code is. It is my understanding that I should then type: mingw --- End quote --- Path correct, doesn't matter where the bat file is as long as you run the bat file while in a command line. In the same commandline (as the path just set is temporary and will only work within the current session) type make to compile mame. Not mingw. Basic steps are Install mingw Extra mingw-over Extra mame 103 source code somewhere create the above bat file, I suggest putting it in the mame source folder as that will be the easiest place to use it. Open a command prompt and goto the mame source location. execute the bat file (just type it in and press enter) type make Since you got the obj folder that suggests you have something correct, compiling-wise. But there might be an error which causes the compile to stop. A brief dumbed down of what compiling does... A compiler will take your source code, in this case most of it is written in C. It will first convert the source code to obj files. These are direct binaries from translating the source code text to instructions the computer understands. Then, if there are no errors, the linker will link all those obj files into an exe. Of course there's alot more detail to it than that, but that's the summary of what is happening. When all is said an done with no errors you should end up with an exe in the mame source folder (note I am not refering to the src folder, I am refering to the base folder with the base makefile). Also, I suggest getting the command from here power toy http://www.microsoft.com/windowsxp/downloads/powertoys/xppowertoys.mspx Then you just right click your source folder, command from here, and you have a command prompt at the right location. |
| Navigation |
| Message Index |
| Next page |
| Previous page |