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: MAME Compiler 64 v2.0.197  (Read 362337 times)

0 Members and 1 Guest are viewing this topic.

rdenis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 54
  • Last login:January 11, 2011, 04:19:38 pm
Re: Mame Compiler 64 v1.12 Released!
« Reply #120 on: March 19, 2008, 03:19:37 pm »
Yep works great now that Vista 64 has the appropriate permissions!  :cheers:

hellothere123

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 126
  • Last login:March 02, 2021, 03:39:27 am
Re: Mame Compiler 64 v1.12 Released!
« Reply #121 on: March 20, 2008, 10:09:42 pm »
I have mame32 setup in folder C:arcade/mame32

Can I change the "source folder" for mame to that folder, then apply the patches, then the hi patch and then press "Go" and it should work?

Or am I missing something...like adding "Hi" folder to mame and hiscores dat file to the mame folder???


Thansk!

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Mame Compiler 64 v1.12 Released!
« Reply #122 on: March 21, 2008, 07:34:14 am »
I have mame32 setup in folder C:arcade/mame32

Can I change the "source folder" for mame to that folder, then apply the patches, then the hi patch and then press "Go" and it should work?

Or am I missing something...like adding "Hi" folder to mame and hiscores dat file to the mame folder???

Don't mix your Mame binaries with the Mame source code. You should have a separate folder for compiling Mame, then copy the resulting exe to your binary folder.

Chunce DeLeone

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 414
  • Last login:August 16, 2012, 02:58:11 pm
Re: Mame Compiler 64 v1.12 Released!
« Reply #123 on: March 31, 2008, 02:33:22 pm »
I ran the compiler and it looked like it went fine, where is the new mame.exe?

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Mame Compiler 64 v1.12 Released!
« Reply #124 on: March 31, 2008, 03:05:26 pm »
I ran the compiler and it looked like it went fine, where is the new mame.exe?

It should open your source folder after a successful compile. Check the "Mame Source Folder" it should have the mame exe there if it worked. BTW it's not always called mame.exe, for example, if it's a 64-bit compile it will be called vmame.exe. Compiling should take 5 to 20 minutes depending on your CPU.

Chunce DeLeone

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 414
  • Last login:August 16, 2012, 02:58:11 pm
Re: Mame Compiler 64 v1.12 Released!
« Reply #125 on: March 31, 2008, 03:55:38 pm »
thanks for the quick response!!!!!!!!

I got it, the problem was I was using the Hi 109hi diff and not the 109u2 hi diff, but when I run mame from a comand promp I am still getting nag screens, it tell me to press ok and then has the game info???? isn't that supposed to be removed?

rdenis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 54
  • Last login:January 11, 2011, 04:19:38 pm
Re: Mame Compiler 64 v1.12 Released!
« Reply #126 on: March 31, 2008, 04:10:14 pm »
RTFM dude  ;D:

HISCORE DIFF's for all MAME versions without hiscore support (107u2 - current)

The diff performs the following:
1) Adds hiscore support back into MAME
2) Removes all nag screens
3) Removes loading messages (decoding/decrypting/Updating Artwork, etc.) and the 'white box' when loading. (This was added to the diffs starting with hi_120)
4) Disables crosshairs by default. You can turn them back on in the game with F1
5) Tab button(menu) also pauses MAME and 1 acts as 'Enter'. Remove the inptport.c section if you do not want this(or just remove it from the ingame menu) This was removed starting with hi_124. You can configure this in the in game menu.

For help compiling MAME, please see Mr. Do's excellent page. He's made it so simple, there's no excuse not to compile your own!
http://www.mameworld.net/mrdo/compile.html

You can also get Headkaze's MAME Compiler to make compiling even easier. Great app for those not too familier with making your own builds!

Also, you will need the hiscore.dat file by Leezer in your mame directory. You can grab that over at http://www.mameworld.net/highscore/

...and don't forget to create a sub folder under your mame directory named "hi"...that's it!

Here's the guide for what diff to download (change extention from .txt to .diff) Also, if you don't see your file attached to this post, check further down. Only 8 files per post allowed)

**Please note that Pitou found a bug with this diff causing MAME to not recognize the refreshspeed option. This was 'fixed' starting with hi_124**

Starting with hi_124, all modifications are preceeded with comments detailing what is occuring. You can search the diff for "MKChamp" to find all the comments.

MAME VERSION             DIFF VERION
-------------------             ----------------
108                               hi_108.txt
109                               hi_109.txt
110                               hi_110.txt
111                               hi_111.txt
112                               hi_112.txt
113                               hi_113.txt
114 - 116                       hi_114_15_116.txt
117                               hi_117.txt
118 - 119                       hi_118_119.txt
120                               hi_120.txt
121                               hi_121.txt
122                               hi_122.txt
123                               hi_123.txt
124 - CURRENT                  hi_124.txt

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Mame Compiler 64 v1.12 Released!
« Reply #127 on: March 31, 2008, 06:03:54 pm »
If you are patching a intermediate update version of Mame (or 'u' release) you must also patch Mame up to the 'u' version before applying the hiscore patch. You can download them from here.

BTW I recommend not to use a "u" version of an older Mame version. You will notice that pinned topic for the hiscore patches at the top of this forum only have the official releases now (no 'u' version patches). So I would download the hi_109.diff from there and start again from scratch using mame0109s.

And RTFM does help  :)

Chunce DeLeone

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 414
  • Last login:August 16, 2012, 02:58:11 pm
Re: Mame Compiler 64 v1.12 Released!
« Reply #128 on: April 01, 2008, 09:04:09 am »
Sorry guys still a little unsure what I missed here,  I patched from u1 to u5 then did the Hi Diff all for mame109.....is there still supposed to be the OK nag screen and game info screen?

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Mame Compiler 64 v1.12 Released!
« Reply #129 on: April 01, 2008, 10:51:51 am »
Sorry guys still a little unsure what I missed here,  I patched from u1 to u5 then did the Hi Diff all for mame109.....is there still supposed to be the OK nag screen and game info screen?

If you read learning will come. Like I said forget the "u" versions of Mame. I've updated Mame Compiler 64 and removed the "u" diff's. So uninstall Mame Compiler, download the new version and install it again. Then just download mame109s.zip, extract it to MinGW\source\Mame0109 and hi_109.diff to MinGW\patches. Click the [...] buttons to browse to these folders. Apply the patch, then compile by pressing the GO! button.

hokey1

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 6
  • Last login:November 20, 2017, 07:54:45 pm
Re: Mame Compiler 64 v1.12 Released!
« Reply #130 on: April 01, 2008, 11:42:49 am »
  First off apologies if this is just something really simple.  Take a look at the screen shot below.  I want to compile for a athlon but there is no option in the drop down menu for compiling that version.  Am I just missing something?  I saw another picture in this thread where it was shown that the athlon option was available but I can't find it.   I re-downloaded and installed again and it made no difference.

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Mame Compiler 64 v1.12 Released!
« Reply #131 on: April 01, 2008, 12:11:24 pm »
  First off apologies if this is just something really simple.  Take a look at the screen shot below.  I want to compile for a athlon but there is no option in the drop down menu for compiling that version.  Am I just missing something?  I saw another picture in this thread where it was shown that the athlon option was available but I can't find it.   I re-downloaded and installed again and it made no difference.

My bad, recently Mame removed it's optimization options from it's make file so you have to specify them manually. I added some of them but missed a few AMD64 and AthlonXP being two of them. There are probably other ones from here I should add, but I'm not sure which ones.

Anyway I've uploaded a new version of Mame Compiler with these two options added. If anyone else thinks I should add some more options from Mr Do's compile page, let me know here and I'll add them to the list.

Right now I have the following (as of MC64 v1.14)

Code: [Select]
The following options take advantage of CPU features, but don't do any other fancy tricks:

Intel Core2 or P4 w/ SSE3 ARCHOPTS=-msse3 (*)
P4 w/o SSE3; Pentium M, Intel Core ARCHOPTS=-msse2 (*)
AMD64 ARCHOPTS=-march=athlon64 (++)
AthlonXP ARCHOPTS=-march=athlon-xp (++)
IBM G5, IBM Cell (PS3), IMB POWER5 ARCHOPTS="-mpowerpc64 -mpowerpc-gfxopt -mpowerpc-gpopt -maltivec" (*)
Motorola G4 ARCHOPTS="-mpowerpc -mpowerpc-gfxopt -maltivec" (*)
IBM G3 ARCHOPTS="-mpowerpc -mpowerpc-gfxopt" (*)

For architecture-specific optimizations and instruction tuning, you can try these options (note: may bring out some bugs in GCC):

Intel Core2 ARCHOPTS="-march=pentium-m -msse3" (+)
Pentium M, Intel Core ARCHOPTS=-march=pentium-m (+)
Pentium 4 (w/ 64-bit capability) ARCHOPTS=-march=nocona (+)
Pentium 4 (w/ SSE3) ARCHOPTS=-march=prescott (#)
Pentium 4 (w/o SSE3) ARCHOPTS=-march=pentium4 (+)
Motorola G4 (7450, later) ARCHOPTS=-mcpu=7450 (+)
Motorola G4 (7447, earlier) ARCHOPTS=-mcpu=7400 (+)
IBM G5 ARCHOPTS=-mcpu=G5 (+)
IBM G3 ARCHOPTS=-mcpu=G3 (+)

(+) Added in MC64 v1.11
(++) Added in MC64 v1.14
(*) Not added
(#) Can't compile with this option (internal compiler error)
« Last Edit: April 01, 2008, 12:17:08 pm by headkaze »

Chunce DeLeone

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 414
  • Last login:August 16, 2012, 02:58:11 pm
Re: Mame Compiler 64 v1.12 Released!
« Reply #132 on: April 02, 2008, 08:09:31 am »
HeadKaze, just wanted to say thanks for the patience and thanks for this Utility, I have been waiting to do this for years but was always a little intimidated with the process, you Ultility makes it really easy,  everything is working, thanks allot !!!!!

joebells

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 100
  • Last login:January 11, 2009, 07:57:45 pm
Re: Mame Compiler 64 v1.12 Released!
« Reply #133 on: April 05, 2008, 02:53:52 am »
First off wanted to say thank you. Second I was wondering what this might mean.
Linking vmame.exe...
dinput.lib(dilib2.obj) : warning LNK4078: multiple '.text' sections found with different attributes (C0500040)
Finished!
I am running vista sp1 x64 compiling 124 and only applied the hi_124.diff. I got the error 99 once but after that it complied just fine(took about 6 minutes). I chose optimize for core 2, and checked 64bit and dual core. I was just wondering what this means? Also why does it give the 99 error? What does it mean?

Thanks again, nice program. I wasn't sure about some of the settings in the makefile so figured this would make it nice and simple.

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Mame Compiler 64 v1.12 Released!
« Reply #134 on: April 05, 2008, 08:11:19 am »
First off wanted to say thank you. Second I was wondering what this might mean.
Linking vmame.exe...
dinput.lib(dilib2.obj) : warning LNK4078: multiple '.text' sections found with different attributes (C0500040)
Finished!
I am running vista sp1 x64 compiling 124 and only applied the hi_124.diff. I got the error 99 once but after that it complied just fine(took about 6 minutes). I chose optimize for core 2, and checked 64bit and dual core. I was just wondering what this means? Also why does it give the 99 error? What does it mean?

Thanks again, nice program. I wasn't sure about some of the settings in the makefile so figured this would make it nice and simple.


The warning is fine, everyone gets that. The 99 error AFAIK is caused by the utilities that are compiled when using the 64-bit compiler for some reason have a problem executing the first time. Pressing Go again just continues the compile but this time it finds the utility that wasn't there before. Another possibility is that the file is locked because it's just been compiled and it can't execute it until starting again when the file handle is released.

joebells

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 100
  • Last login:January 11, 2009, 07:57:45 pm
Re: Mame Compiler 64 v1.12 Released!
« Reply #135 on: April 05, 2008, 10:35:21 am »
thanks for the reply, what about

dinput.lib(dilib2.obj) : warning LNK4078: multiple '.text' sections found with different attributes (C0500040)

I imagine its nothing just figured I'd ask

joebells

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 100
  • Last login:January 11, 2009, 07:57:45 pm
Re: Mame Compiler 64 v1.12 Released!
« Reply #136 on: April 06, 2008, 06:57:03 pm »
ok I just tried to play using my 64 bit mame that I compiled using your tool and it runs but its uber choppy.  When I tried to setup my keys and such it worked at first but then it "Froze" as I was trying to set them up. I was able to escape out of the config menu and then escape out of the program all the way. When I exited it shows exception at eip=.(bunch of numbers)... : access violation in the command box. The second time I ran it, it just froze when I pressed tab and tried to adjust a key.

I've run the precompiled 64bit and it runs really well, I was hoping for high score support though. Hopefully its something simple, actually as I'm finishing this I remembered I did tune it for core 2 duo(which is what I have) I think I'll try to do it without that optimization.

arzoo

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2092
  • Last login:March 15, 2024, 10:31:32 pm
  • Robots WILL kill you.
    • LEDBlinky
Re: Mame Compiler 64 v1.12 Released!
« Reply #137 on: April 10, 2008, 01:38:42 pm »
If I'm running with an AMD Athlon Thunderbird processor, do you think the AthlonXP optimization will help (or harm)? Thanks!

Update: Putting aside the optimization question, the utility worked perfectly for me. Thanks Headkaze  :cheers:
« Last Edit: April 10, 2008, 09:05:23 pm by arzoo »
Robots will kill you.



Arcade Addiction

keirondrk

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 22
  • Last login:May 27, 2017, 05:52:56 am
  • I'm a llama!
Re: Mame Compiler 64 v1.12 Released!
« Reply #138 on: April 12, 2008, 04:24:13 am »
heyyy just to say a big thanks for the compiler.... I never got around to compiling mame myself until I found your app and thought why not give it a go , excellent !!! saved me eventually having to sit down with the step by step guide and do it myself (which I must admit until I found your app I wasn't in that much of a rush to get udiff updates applied)...


quick simple painless... always worked since day 1 for me....

now I apply the u diffs as they come out... (think I'm a Obsessive-compulsive MAME compiler?!)

now off to apply .124u2 ;) while I await a hiscore diff from MKChamp hehe

KEEP UP THE EXCELLENT WORK, YOU'VE SERIOUSLY IMPROVED MY MAME EXPERIENCE AND SIMPLIFIED IT GREATLY :)

--tested since .123 with all the u updates... and now onto .124 and pentium m builds

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Mame Compiler 64 v1.12 Released!
« Reply #139 on: April 12, 2008, 09:57:34 am »
If I'm running with an AMD Athlon Thunderbird processor, do you think the AthlonXP optimization will help (or harm)? Thanks!

Update: Putting aside the optimization question, the utility worked perfectly for me. Thanks Headkaze  :cheers:

I actually don't know much about the optimization options. I guess without doing some benchmarking it's hard to say if there is much improvement using them.

kingb33

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 11
  • Last login:July 24, 2011, 09:26:14 pm
Re: Mame Compiler 64 v1.12 Released!
« Reply #140 on: April 17, 2008, 12:05:13 am »
Hi I'm new here!  Hey, I used the compiler and everything seemed to work fine....then when i used all the files it created and replaced my old ones....i booted up mame and all the games are like really really dark....like someone turned down my brightness setting on my monitor by like 85%.  Why is this happening? Any help would be greatly appreciated...i really want to add the hi-score function back into mame and get rid of the nag screens as well.

Thanks!

TheShanMan

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1911
  • Last login:October 16, 2023, 03:35:12 pm
    • My Arcade (updated 1/30/13)
Re: Mame Compiler 64 v1.12 Released!
« Reply #141 on: April 17, 2008, 01:41:48 am »
Can't imagine that has anything to do with the compiler or the hiscore diff. Try an official binary of the exact version you compiled and see if you get the same thing.
My Collection: Mame cab, 38 dedicated vids, pin, skeeball, coin op air hockey table, Ice Cold Beer, Megatouch, 2 token machines, and payphone (VAPS, pics at Arcade Crusade)

Add Ambience to your mame cab setup

massive88

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 938
  • Last login:February 26, 2024, 02:21:01 pm
Re: Mame Compiler 64 v1.12 Released!
« Reply #142 on: April 17, 2008, 02:40:41 pm »
Link is coming up dead for me at work?

Works now!
« Last Edit: April 17, 2008, 06:13:06 pm by massive88 »

kingb33

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 11
  • Last login:July 24, 2011, 09:26:14 pm
Re: Mame Compiler 64 v1.12 Released!
« Reply #143 on: April 17, 2008, 06:42:44 pm »
Shanman said:

Can't imagine that has anything to do with the compiler or the hiscore diff. Try an official binary of the exact version you compiled and see if you get the same thing.

Hi Shanman, yes i already tried that and the binary works fine....i tried to compile it 4 different times and it comes out the same way every time.  The screen is dark....is there another way to add hi scores back into a mame build?  weird my screen is dark i wonder why or what would cause it?  i compiled using the version that automatically shows up with you install the compiler.  i didn't even attempt to do the 2 updates that have come out since.  (actually i did but i got errors so decided to try to just compile the last official release)

kingb33

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 11
  • Last login:July 24, 2011, 09:26:14 pm
Re: Mame Compiler 64 v1.12 Released!
« Reply #144 on: April 18, 2008, 04:39:45 am »
When i run the compiler trying to add the 3 .diff patches to the latest source release 0124 i get this error when i try to compile......

process_begin: CreateProcess(C:\MinGW\psdk\bin\amd64\cl.exe, cl.exe /nologo /O1 -D_CRT_SECURE_NO_DEPRECATE -c src/osd/windows/vconv.c /Foobj/windows/vmame/osd/windows/vconv.o, ...) failed.
make (e=216): Error 216
mingw32-make: *** [obj/windows/vmame/osd/windows/vconv.o] Error 216
mingw32-make: *** Waiting for unfinished jobs....
mingw32-make: *** [obj/windows/vmame/emu/cpu/m68000/m68kmake.o] Error -99
mingw32-make: *** [obj/windows/vmame/osd/windows/main.o] Error -99

What does this mean?  Thanks.....

kingb33

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 11
  • Last login:July 24, 2011, 09:26:14 pm
Re: Mame Compiler 64 v1.12 Released!
« Reply #145 on: April 19, 2008, 12:58:03 am »
Update: still trying....now with trying to add high score .diffs

Hi! Please help!!!  When I try to compile using headkaze's mame compiler i get errors.  I'm patching using:

hi_124
hi_124u1.diff
hi_124u2.diff

When i patch the 0124 source with the latest 2 updates to the source "without" the 3 high score .diffs it compiles just fine....

Here is the error i get at the end of the compile:

cc1.exe: warnings being treated as errors
src/osd/windows/video.c: In function 'osd_update_hi':
Finished!
0 Hours 16 Minutes and 38 Seconds Elapsed.
src/osd/windows/video.c:233: warning: passing argument 1 of 'winwindow_process_events' makes pointer from integer without a cast
src/osd/windows/video.c:233: error: too few arguments to function 'winwindow_process_events'
src/osd/windows/video.c:234: error: too few arguments to function 'wininput_poll'
src/osd/windows/video.c: At top level:
src/osd/windows/video.c:245: error: redefinition of 'osd_update_hi'
src/osd/windows/video.c:224: error: previous definition of 'osd_update_hi' was here
src/osd/windows/video.c: In function 'osd_update_hi':
src/osd/windows/video.c:254: warning: passing argument 1 of 'winwindow_process_events' makes pointer from integer without a cast
src/osd/windows/video.c:254: error: too few arguments to function 'winwindow_process_events'
src/osd/windows/video.c:255: error: too few arguments to function 'wininput_poll'
src/osd/windows/video.c: At top level:
src/osd/windows/video.c:266: error: redefinition of 'osd_update_hi'
src/osd/windows/video.c:224: error: previous definition of 'osd_update_hi' was here
mingw32-make: *** [obj/windows/mame/osd/windows/video.o] Error 1

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Mame Compiler 64 v1.12 Released!
« Reply #146 on: April 19, 2008, 01:16:10 am »
You only apply one hiscore patch! The hiscore patch version must match your Mame version. I would recommend not bothering with the "u" versions as that will probably confuse you.

jasonbar

  • Trade Count: (+10)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2247
  • Last login:July 30, 2023, 02:52:55 am
  • Dr. Inferno
    • The Infernolab
Re: Mame Compiler 64 v1.12 Released!
« Reply #147 on: April 19, 2008, 02:14:08 pm »
Headkaze-

Very cool program--I think I've got it all squared away & am ready to try, but have 2 quick questions please:

1 - My MAME PC has a Pentium 4 1.5GHz, according to the System Properties box (right-click on My Computer, select Properties, & there it is).  I see on MC64 1.14's Optimize pull-down that there are 3 options for Pentium 4:
   Pentium 4 (+ 64-bit)   If this is referring to a 64-bit processor vs. 32-bit, then this is not for me
   Pentium 4 (+ SSE3)
   Pentium 4 (- SSE3)   Not quite sure what these are--did a little reading on Wikipedia--how do I determine if my processor has SSE3 or not?

2 - I plan on compiling the program on my laptop, which has a Celeron processor (to keep my MAME machine clean).  Any problem w/ compiling a MAME (or even running it) w/ a processor other than that used in the compiling optimization?


Thank you very much,
-Jason

Jdurg

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1127
  • Last login:October 04, 2020, 09:26:27 pm
  • A young guy feeling older than sin......
Re: Mame Compiler 64 v1.12 Released!
« Reply #148 on: April 19, 2008, 02:44:33 pm »
If you P4 is running at 1.5 GHz, then it is probably an early generation P4 and would not have SSE3 optimizations.  So you should compile it with the -SSE3 flag. 

For your question about compiling for a different CPU, I don't think it will cause any issues at all.  The compiling with the optimizations is just compiling the source code wth extra instructions that will make it run a bit better on the system it was designed for.  There should only be issues if you actually try and run it, but none if you just try and compile it.  (64-bit aside.  I do believe you need to have a 64-bit system to compile 64-bit MAME).
Donkey Kong High Scores:
1): 49,500
2): 35,600
3): 30,100
4): 29,400
5): 28,200

jasonbar

  • Trade Count: (+10)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2247
  • Last login:July 30, 2023, 02:52:55 am
  • Dr. Inferno
    • The Infernolab
Re: Mame Compiler 64 v1.12 Released!
« Reply #149 on: April 19, 2008, 03:32:06 pm »
Thanks, JDurg-

OK, I've moved on & hit a snag--I'm sure this is a basic goof on my part.

Per the readme.txt, I put my preferred MAME 115 source code into C:\MinGW\source\Mame115.

More specificallyh, I downloaded & unzipped the MAME0115s.zip file from http://mamedev.org/oldrel.html.  I unzipped the archive, where I found docs folder, source folder, makefile file, & whatsnew.txt.  I put all 4 of those items into c:\MinGW\source\Mame115.  I found that there was already a patch file in the patch directory: C:\MinGW\patches\hi_114_115_116.diff

I set the pull-down to optimize for Pentium 4 (- SSE3) & hit "Apply Patch"

The patch seems to have worked.

I hit "GO!" & got 3 seconds of compiling before it stopped w/ the following error (copying & pasting the last few lines of text in the Compile Output box):

Compiling src/version.c...
cc1.exe: error: unrecognized command line option "-Wno-unused-functions"
mingw32-make: *** [obj/mame/version.o] Error 1
Finished!
0 Hours 0 Minutes and 2 Seconds Elapsed.



Any ideas?


I tried running it again, and when I ran the patch, it gave me much feedback saying that the patch was already applied (I think this is a "no duh" comment from many of you...).  Should I be erasing some file & starting over each time I try compiling?


Thanks!!!

-Jason

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Mame Compiler 64 v1.12 Released!
« Reply #150 on: April 19, 2008, 03:49:16 pm »
If your trying to compile Mame version earlier than 0.118u5 you need to set "Disable WError (<0.118u5)".

joebells

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 100
  • Last login:January 11, 2009, 07:57:45 pm
Re: Mame Compiler 64 v1.12 Released!
« Reply #151 on: April 19, 2008, 07:23:58 pm »
just wanted to say thanks for this headkaze, I could compile for regular just fine but x64 was over my head. The problem I had asked about earlier was caused because of a bug in mame itself. So thanks again for this program.

jasonbar

  • Trade Count: (+10)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2247
  • Last login:July 30, 2023, 02:52:55 am
  • Dr. Inferno
    • The Infernolab
Re: Mame Compiler 64 v1.12 Released!
« Reply #152 on: April 23, 2008, 02:17:22 am »
If your trying to compile Mame version earlier than 0.118u5 you need to set "Disable WError (<0.118u5)".

Doy on me--thanks not only for your wicked killer program but your patience for my lunkhead questions.  It compiled OK after clicking that box.  I did get a handful of red warnings & some white warning-ish text (sorry, that was 2 days ago...) that suggested everything didn't go perfectly.  Ought I be concerned?  The executable seems to work fine--I tested it briefly on just a few games & they were fine.


Thanks,
-Jason

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Mame Compiler 64 v1.12 Released!
« Reply #153 on: April 23, 2008, 05:32:21 am »
Doy on me--thanks not only for your wicked killer program but your patience for my lunkhead questions.  It compiled OK after clicking that box.  I did get a handful of red warnings & some white warning-ish text (sorry, that was 2 days ago...) that suggested everything didn't go perfectly.  Ought I be concerned?  The executable seems to work fine--I tested it briefly on just a few games & they were fine.

Compiling older versions of Mame requires you to set the "Disable WError" option because the newer GCC compiler causes errors, and the only way for it to compile is to disable them. So those errors are normal, but it should compile okay without any problems.

jasonbar

  • Trade Count: (+10)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2247
  • Last login:July 30, 2023, 02:52:55 am
  • Dr. Inferno
    • The Infernolab
Re: Mame Compiler 64 v1.12 Released!
« Reply #154 on: April 23, 2008, 11:32:06 am »
Awesome, thank you, Headkaze.  I just compiled 115u2 last night & saw some red text.  Just for fun, here are samples of the 2 last sets of red text warnings in the build.

Thank you,
-Jason


Compiling src/tools/regrep.c...
src/tools/regrep.c:646: warning: 'copy_file' defined but not used


Compiling src/tools/romcmp.c...
src/tools/romcmp.c: In function 'filecompare':
src/tools/romcmp.c:369: warning: 'mask1' may be used uninitialized in this function
src/tools/romcmp.c:369: warning: 'base1' may be used uninitialized in this function
src/tools/romcmp.c:369: warning: 'mask2' may be used uninitialized in this function
src/tools/romcmp.c:369: warning: 'base2' may be used uninitialized in this function
src/tools/romcmp.c: In function 'utf8_main':
src/tools/romcmp.c:698: warning: 'end' may be used uninitialized in this function
src/tools/romcmp.c:698: warning: 'start' may be used uninitialized in this function


jasonbar

  • Trade Count: (+10)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2247
  • Last login:July 30, 2023, 02:52:55 am
  • Dr. Inferno
    • The Infernolab
Re: Mame Compiler v0.5 Released
« Reply #155 on: April 24, 2008, 03:22:51 pm »
Yes MKChamps diff patches use the "1" key for select. That is a more common key for Mame cabs which is why he chose it. You can always remap the UI_SELECT key to something else.


Howdy-

My 115 & 115u2 compiles MAMEs have been great so far, Headkaze--thank you!!!

I am, however, having trouble returning my Enter key to be the UI_SELECT key after I use TAB to bring up the in-MAME menu.  Digging in to this issue raised a few other questions:

I gather that the UI_SELECT line should be part of the default.cfg file in the cfg directory in mame.  My default.cfg file is only 6 lines long and seems to be mostly comments.  There is no UI_SELECT line to update.  If I delete it & rerun MAME, as suggested in other posts to return things to "normal", then this file gets regenerated as-is (6 lines only).

1 - I have mame32115.exe, mame115optpatch.exe, & mame115u2optpatch.exe all in the same mame folder.  I use mame115optpatch.exe to launch 99.9% of my games, mame115u2optpatch.exe to launch 4 games that don't work in 115, & mame32115u2 for occasional troubleshooting.  My MaLa FE launches a mame.cmd file per SGT's awesome setup post & instructions.  It looks for those 4 problem games' filenames & goes to a launch 115u2 if %1 matches one of those 4 names.  So, I realized that I have but 1 mame.ini file, and 1 mame32ui.ini file (which, strangely, appeared last night...).  Neither of these has the UI_SELECT line item in it.  Where do I find it?

2 - Perhaps more of a concern to me at this point is, am I getting myself into trouble by having multiple mame executables in the same directory?  Are they going to "fight" over the mame.ini file or other files like cfg/default.cfg?  Should I segregate all my various MAMEs?  (I'm going to add 1-2 more to run Phoenix & Turbo shortly).

3 - I realized that I might need to download a new hiscore.dat file.  The one in my mame directory is dated 2/7/06 & says v0.104 & 7.0 near the top, in the commented area.  I just downloaded a new hiscore.dat from http://www.mameworld.net/highscore/download.htm.  Its contents say its latest items are from 17/03.2007.  Is there any compatibility/matching required between a hiscore-patched MAME (I used the 114/115/116 diff when I compiled) & the hiscore.dat file in the mame folder?


Thanks!
-Jason

PS--I realize that this might be borderline off-topic to the compiler thread, but I think 1 & 3 are at least relevant questions!  :]

Jdurg

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1127
  • Last login:October 04, 2020, 09:26:27 pm
  • A young guy feeling older than sin......
Re: Mame Compiler 64 v1.12 Released!
« Reply #156 on: April 25, 2008, 09:51:04 am »
The hiscore.diff file you get from here changes the default "Enter" key to the player 1 button 1 key.  This is for use in cabinets.  Unfortunately, this is NOT something that is documented very well.  To correct this, you'll just need to dig through the .diff file and fine the line that changes this key and remove it before applying the patch.  Otherwise, go into the MAME source after the patches are applied and change it back.
Donkey Kong High Scores:
1): 49,500
2): 35,600
3): 30,100
4): 29,400
5): 28,200

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Mame Compiler 64 v1.12 Released!
« Reply #157 on: April 25, 2008, 10:30:09 am »
The hiscore.diff file you get from here changes the default "Enter" key to the player 1 button 1 key.  This is for use in cabinets.  Unfortunately, this is NOT something that is documented very well.  To correct this, you'll just need to dig through the .diff file and fine the line that changes this key and remove it before applying the patch.  Otherwise, go into the MAME source after the patches are applied and change it back.

Can't you just remap UI_SELECT to be TAB again? Why do you have to modify the source to change it back?

MKChamp

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 502
  • Last login:February 07, 2024, 02:45:53 pm
  • Stil around.
Re: Mame Compiler 64 v1.12 Released!
« Reply #158 on: April 25, 2008, 10:57:51 am »
Yep...you can change it back to tab very easily in the in game menu.

On a side note, I took out the defaulting of the enter and select keys starting with hi_124...since this is easily changed and configured...and not really needed to be 'hard coded'.

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Mame Compiler 64 v1.12 Released!
« Reply #159 on: April 25, 2008, 11:42:37 am »
Yep...you can change it back to tab very easily in the in game menu.

On a side note, I took out the defaulting of the enter and select keys starting with hi_124...since this is easily changed and configured...and not really needed to be 'hard coded'.

Yeah good idea, I don't think it's worth the confusion it causes.