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: How to build release version of Mame?  (Read 2051 times)

0 Members and 1 Guest are viewing this topic.

Farmboy90

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 294
  • Last login:June 26, 2006, 12:15:04 am
  • My cab is done... Pics coming soon!!
How to build release version of Mame?
« on: January 12, 2006, 04:47:23 pm »
I know, dumb quesrtion, but I couldn't find an answer after searching.

My mame build produces a mamed.exe (debug version).  How can I change the compilation to release?

Is it a simple target change?  Where do you get the release libraries?
« Last Edit: January 12, 2006, 04:49:18 pm by Farmboy90 »

SirPoonga

  • Puck'em Up
  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 8188
  • Last login:July 20, 2025, 03:37:24 pm
  • The Bears Still Suck!
Re: How to build release version of Mame?
« Reply #1 on: January 12, 2006, 05:09:44 pm »
Read the last paragraph.
http://www.mame.net/compilewin.html

Farmboy90

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 294
  • Last login:June 26, 2006, 12:15:04 am
  • My cab is done... Pics coming soon!!
Re: How to build release version of Mame?
« Reply #2 on: January 12, 2006, 05:17:17 pm »
Right I saw that before and was confused by it.  The reason is becasue in my makefile that came with the package was this:

# uncomment next line to include the debugger
# DEBUG = 1

In other words it was already commented out.  Yet I still got a debug version.  It is a huge 40 meg mamed.exe

I even uncommented it and set it to 0.  I just did a make clean and now another make.

Looks like it is doing another mamed.exe build though.  :(

*** EDIT ****

I am guessing that flag is now obsolete since it was commented out.  There is also a NEW_DEBUGGER flag in there.  This one is set to 1 by default.  I just changed it to 0 and am compiling (again).

It still has a mamed.exe it seems so I am not sure what is going on.

The makefile says:
# debug builds just get the 'd' suffix and nothing more
ifdef DEBUG
NAME = $(PREFIX)$(TARGET)$(SUFFIX)d
endif

Now since debug = 0 I don't see how it is possible to have the executable be called mamed.exe.

We'll see if the executable is affected though once the compile is done.
« Last Edit: January 12, 2006, 06:13:59 pm by Farmboy90 »

RayB

  • I'm not wearing pants! HA!
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 11279
  • Last login:July 10, 2025, 01:33:58 am
  • There's my post
    • RayB.com
Re: How to build release version of Mame?
« Reply #3 on: January 12, 2006, 06:36:35 pm »
Farmboy, any chance you could compile me a version of MAME? I'll pay or trade you some goods for your time.
NO MORE!!

Farmboy90

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 294
  • Last login:June 26, 2006, 12:15:04 am
  • My cab is done... Pics coming soon!!
Re: How to build release version of Mame?
« Reply #4 on: January 12, 2006, 06:45:18 pm »
Farmboy, any chance you could compile me a version of MAME? I'll pay or trade you some goods for your time.


Depends on what you want done.  :)  PM me your needs and I will gladly just do it for you.

However I want to solve my debug issue first, because as of right now the exe is roughly 40MB in size because of all the debugging information that has been included.  This also means it will run slower.  And I don't want to send you something so huge and potentially so slow. 

Once that is done I will be good to go.  So just let me know what you had in mind.


2600

  • Trade Count: (+7)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1630
  • Last login:June 05, 2017, 10:20:56 am
  • I want my own arcade controls!
Re: How to build release version of Mame?
« Reply #5 on: January 12, 2006, 07:21:18 pm »
Rayb, is this for dmame or regular mame?

Farmboy90,
Don't have it in front of me, but the normal compile is like 30-40MB.  Have you checked to see that it is actually a debug version and not just named "mamed".


Farmboy90

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 294
  • Last login:June 26, 2006, 12:15:04 am
  • My cab is done... Pics coming soon!!
Re: How to build release version of Mame?
« Reply #6 on: January 12, 2006, 08:09:21 pm »
Rayb, is this for dmame or regular mame?

Farmboy90,
Don't have it in front of me, but the normal compile is like 30-40MB.
« Last Edit: January 12, 2006, 08:12:07 pm by Farmboy90 »

2600

  • Trade Count: (+7)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1630
  • Last login:June 05, 2017, 10:20:56 am
  • I want my own arcade controls!
Re: How to build release version of Mame?
« Reply #7 on: January 12, 2006, 08:32:59 pm »
The binary on the web is compressed (UPX).

For the rest, I don't know why you are messing with the makefile.  Default compiles a non-debug binary.

Farmboy90

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 294
  • Last login:June 26, 2006, 12:15:04 am
  • My cab is done... Pics coming soon!!
Re: How to build release version of Mame?
« Reply #8 on: January 12, 2006, 08:59:52 pm »
Sweet!  Thanks 2600.

RayB

  • I'm not wearing pants! HA!
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 11279
  • Last login:July 10, 2025, 01:33:58 am
  • There's my post
    • RayB.com
Re: How to build release version of Mame?
« Reply #9 on: January 13, 2006, 07:18:28 pm »
Rayb, is this for dmame or regular mame?

DMAME.
NO MORE!!