Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Compiling MAME  (Read 5770 times)

0 Members and 1 Guest are viewing this topic.

maffewl

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 115
  • Last login:June 05, 2020, 03:11:44 pm
Compiling MAME
« on: June 08, 2014, 06:38:48 pm »
Hey everyone, I have a few questions with compiling MAME through the MAME Compiler created by Headkaze.  These are in response to a suggestion by Headkaze and some other questions I had in another thread about CP Wizard, but didn't want them to get buried, so here they are, and it may help another noob like me in the future.

I have compiled the latest MAME release per Headkaze's website.  However, once the compiled finished, I don't really know what to do?  There is no MAME executable that would begin the program, nor do I know how to set up the pause to view control panel process.

For the compiling, I did the steps below, used MAME Compiler 64, and since there are no U patches for the current release (153), I only applied the hiscore diff, the bezel patch, and the ShowCP patch, in that order.  Any thoughts on what to do now?

Steps used to compile:

    Download MinGW from here and extract to C:\MinGW
    Install Mame Compiler
    Create a folder C:\MinGW\source\Mame0147u3
    Download the hiscore hi_147u3.txt from here and copy it into the C:\MinGW\patches (you can rename it to hi_147.diff if you like but it doesn't matter)
    Download the mame0147s.zip from here and extract to C:\MinGW\source\Mame0147u3
    Download the updates from here (0147u1_diff, 0147u2_diff and 0147u3_diff) and extract them to C:\MinGW\patches
    Download MameUI source from here extract somewhere then copy the src folder to C:\MinGW\source\Mame0147u3
    Apply the official Mame patches 0147u1_diff, 0147u2_diff then 0147u3_diff. Apply them by browsing to each one selecting it from the file browser then selecting "Apply Patch"
    Now apply the Hiscore patch you downloaded from step 3 (Eg. hi_147u3.diff or hi_147u3.txt depending on how you saved it)
    Set your "Mame Source Folder" to C:\MinGW\source\Mame0147u3 and check you have the WinUI build option selected under OSD
    Click GO! to compile.

I re-ran the MAME Compiler, same results, no executable.  Here are images of the folders, the first is an image of the "C:\MinGW\source\Mame153" folder.  The second is a picture of the "C:\MinGW\source\Mame153\obj\winui" folder.





Any advice as to what I do from here?

Also, if you would like more information on these questions, the original thread is here:  http://forum.arcadecontrols.com/index.php/topic,139573.0.html

Thanks!

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Compiling MAME
« Reply #1 on: June 09, 2014, 09:27:48 pm »
Unless there is a reason you're using the UI version of MAME I would skip those steps and just try to get regular MAME compiled.

I would start again from the beginning but skip the steps that include "MameUI"

Also you might want to try compiling MAME without applying any diff's first. If you can get an exe, then apply the patch and compile again.

maffewl

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 115
  • Last login:June 05, 2020, 03:11:44 pm
Re: Compiling MAME
« Reply #2 on: June 10, 2014, 12:00:48 pm »
Headkaze, thanks for following up.  I tried again to compile last night but same results, no executable. 

When I tried to leave off the UI steps, the compiler would error and finish.  It stated that there was no winui.mak file located within the src folder.  So with that being the case, I downloaded the MameUI source and noticed that it gave me a second src folder.  I copied the winui.mak file from there and placed it at the path MC64 was looking for.  From there, it started compiling and took about 45 min.  But again, no exectuable.

Any ideas?

maffewl

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 115
  • Last login:June 05, 2020, 03:11:44 pm
Re: Compiling MAME
« Reply #3 on: June 10, 2014, 01:18:34 pm »
Here is an image of the winui error.

maffewl

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 115
  • Last login:June 05, 2020, 03:11:44 pm
Re: Compiling MAME
« Reply #4 on: June 10, 2014, 09:12:12 pm »
And here is an image after the compiler finishes but fails to produce an executable.

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Compiling MAME
« Reply #5 on: June 11, 2014, 05:19:22 pm »
Start again from the beginning. This time go to the Target tab in Mame Compiler and change OSD from WinUI to Windows.

maffewl

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 115
  • Last login:June 05, 2020, 03:11:44 pm
Re: Compiling MAME
« Reply #6 on: June 12, 2014, 08:42:52 am »
Headkaze, you are the man!  Look at this shiny new MAME executable.  :applaud:

This was done with no patches applied and by changing the OSD target to Windows as you suggested.  Just for my knowledge, what exactly did that do?

Also, I tried to start from the beginning again and apply the hidiff, bezel, and showcp patches in that order and it failed to produce an executable again.  I did notice something about it ignoring (or to that extent) certain bulk? files.  :banghead:

Any help would be appreciated.

Also, what do I do from here to get the CP to show at pause?  Or do I need the patches to work to be able to do so?  I would like to have the patches because it seems they help customize the experience.

Again, thanks for all the following up, I felt like a kid at Christmas when I saw the .exe.