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 problems  (Read 3070 times)

0 Members and 1 Guest are viewing this topic.

gazz292

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 137
  • Last login:January 22, 2022, 12:00:01 pm
compiling problems
« on: November 01, 2010, 10:47:42 pm »
i'm having a go at compiling mame for the first time ever, using headkaze's mame compiler 64,

i followed the instructions, making the required folders, got the source for mame 0140, the hi-score patch for mame 0140 as a text file, renamed to a .diff file as instructed, applied the patch, set it to compile for a pentium 4 (+sse3), only box ticked was 'clean compile' and hit go (using XP 32 bit with sp3 installed)

39 minutes later is messes up with the following error:

src/osd/windows/video.c: In function 'void osd_update_hi(running_machine*, int)':
src/osd/windows/video.c:264: error: redefinition of 'void osd_update_hi(running_machine*, int)'
Finished!
0 Hours 39 Minutes and 25 Seconds Elapsed.
src/osd/windows/video.c:240: error: 'void osd_update_hi(running_machine*, int)' previously defined here
src/osd/windows/video.c: In function 'void osd_update_hi(running_machine*, int)':
src/osd/windows/video.c:288: error: redefinition of 'void osd_update_hi(running_machine*, int)'
src/osd/windows/video.c:240: error: 'void osd_update_hi(running_machine*, int)' previously defined here
src/osd/windows/video.c: In function 'void osd_update_hi(running_machine*, int)':
src/osd/windows/video.c:312: error: redefinition of 'void osd_update_hi(running_machine*, int)'
src/osd/windows/video.c:240: error: 'void osd_update_hi(running_machine*, int)' previously defined here
src/osd/windows/video.c: In function 'void osd_update_hi(running_machine*, int)':
src/osd/windows/video.c:336: error: redefinition of 'void osd_update_hi(running_machine*, int)'
src/osd/windows/video.c:240: error: 'void osd_update_hi(running_machine*, int)' previously defined here
src/osd/windows/video.c: In function 'void osd_update_hi(running_machine*, int)':
src/osd/windows/video.c:360: error: redefinition of 'void osd_update_hi(running_machine*, int)'
src/osd/windows/video.c:240: error: 'void osd_update_hi(running_machine*, int)' previously defined here
make: *** [obj/windows/mame/osd/windows/video.o] Error 1


Any ideas what has gone wrong? is the _hi bit refering to the hi-score patch, but i see video mentioned.

i'm really out of my depth here, i've tried compiling it twice, and got the same error.

any pointers gratefully recieved.

Pingaloka

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 44
  • Last login:March 30, 2025, 02:11:23 pm
Re: compiling problems
« Reply #1 on: November 02, 2010, 05:52:50 am »
Try to compile setting "optimize for" to none, in compile options.

gazz292

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 137
  • Last login:January 22, 2022, 12:00:01 pm
Re: compiling problems
« Reply #2 on: November 02, 2010, 09:09:54 am »
okiedokie will do,

does it look like that's whats causing the problem from the error messages?

i wish i could make sense of them, i am thinking they are to do with resolutions for the video card.... mentions of 240, 288, 312 etc, they sound like part or resolutions listed for my avga card,

gazz292

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 137
  • Last login:January 22, 2022, 12:00:01 pm
Re: compiling problems
« Reply #3 on: November 02, 2010, 09:20:29 am »
nope, something buggered up,

tried compiling with 'optimize for' set to 'none'

this time it took 8 seconds, first thing it showed was 'compiling src/osd/windows/video.c...'
and then it shows the errors listed above,

i guess i've got a corrupted source file, or the patch is messing things up... or something???

Pingaloka

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 44
  • Last login:March 30, 2025, 02:11:23 pm
Re: compiling problems
« Reply #4 on: November 02, 2010, 09:28:59 am »
Try what ive'd told you, but start from the beggining.
Erase your MAME source files as they may be already corrupt, download MAME0140 source files again,
download patch 0.140 Highscore.diff again, as it was modified yesterday by MKChamp.
Open compiler, apply patch, and try compiling with all boxes unchecked, and "Optimize for" in "non" option.
Let's see what happens.

gazz292

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 137
  • Last login:January 22, 2022, 12:00:01 pm
Re: compiling problems
« Reply #5 on: November 02, 2010, 10:54:15 am »
just done what you said, deleted the mame source files and hiscore file, downloaded them fresh,

compiled with no tick boxes or owt, and got this:

src/osd/windows/video.c: In function 'void osd_update_hi(running_machine*, int)':
src/osd/windows/video.c:264: error: redefinition of 'void osd_update_hi(running_machine*, int)'
Finished!
0 Hours 39 Minutes and 13 Seconds Elapsed.
src/osd/windows/video.c:240: error: 'void osd_update_hi(running_machine*, int)' previously defined here
make: *** [obj/windows/mame/osd/windows/video.o] Error 1

dna disturber

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 154
  • Last login:August 03, 2014, 01:01:22 pm
  • Michael J. was my 1st experiment,cut me some slack
    • Cabinet "Monster Arcade" & Bartop "Futurama"
Re: compiling problems
« Reply #6 on: November 02, 2010, 11:27:26 am »
just done what you said, deleted the mame source files and hiscore file, downloaded them fresh,

compiled with no tick boxes or owt, and got this:

src/osd/windows/video.c: In function 'void osd_update_hi(running_machine*, int)':
src/osd/windows/video.c:264: error: redefinition of 'void osd_update_hi(running_machine*, int)'
Finished!
0 Hours 39 Minutes and 13 Seconds Elapsed.
src/osd/windows/video.c:240: error: 'void osd_update_hi(running_machine*, int)' previously defined here
make: *** [obj/windows/mame/osd/windows/video.o] Error 1


Same here.......looked all over the forum since I didn't compile mame since 0.130 I thought I must be doing something wrong.  :dizzy: (tried it like 5 times already but everytime the same outcome).....one thing I haven't tried is another computer..
I'm using mamecompiler v1.20
My computer AMD64 x2 dual using xp32 sp3

dna disturber  
« Last Edit: November 02, 2010, 11:31:49 am by dna disturber »
Author of PINemHi..
Decipher-dude for the HiToText project..


HiToText 2010.11.4  Vs.  Mame 0.140  ::)
-------------------------------------------------------------------
Percentage of original games in HiToText :  8.09 %
Percentage of original + clone games in HiToText : 10.57 %
-------------------------------------------------------------------

gazz292

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 137
  • Last login:January 22, 2022, 12:00:01 pm
Re: compiling problems
« Reply #7 on: November 02, 2010, 12:20:52 pm »
i'm having another go at compiling it, deleted everything even the compiler proggy, re-downloaded it all, but this time i downloaded the .exe version of mame rather than the .zip version, from what i can tell theres no differance, just the .exe is a windowz self extracting file.

it's currently churning through it, but i'm not holding my breath,
wish i knew what the errors ment, is it something to do with the hiscore diff, or the video modes,

gazz292

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 137
  • Last login:January 22, 2022, 12:00:01 pm
Re: compiling problems
« Reply #8 on: November 02, 2010, 12:40:54 pm »
New problem,

it ran for just over an hour, and then i got a windows popup telling me that 'png2bdc.exe has encountered a problem and needs to close'

telling it not to send the damn error repotr closes the popup, and the compile failes with "make: ***[obj/windows/mame/emu/uismall.fh] Error - 1073741819

 :banghead: :banghead:  :timebomb:

danmit, what am i doing wrong.

dna disturber

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 154
  • Last login:August 03, 2014, 01:01:22 pm
  • Michael J. was my 1st experiment,cut me some slack
    • Cabinet "Monster Arcade" & Bartop "Futurama"
Re: compiling problems
« Reply #9 on: November 02, 2010, 01:49:20 pm »
Did it on another computer and it worked like a charm....  :applaud:
Maybe you could try it also on another computer.  :-\

dna disturber  :cheers:




Author of PINemHi..
Decipher-dude for the HiToText project..


HiToText 2010.11.4  Vs.  Mame 0.140  ::)
-------------------------------------------------------------------
Percentage of original games in HiToText :  8.09 %
Percentage of original + clone games in HiToText : 10.57 %
-------------------------------------------------------------------

gazz292

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 137
  • Last login:January 22, 2022, 12:00:01 pm
Re: compiling problems
« Reply #10 on: November 02, 2010, 03:04:28 pm »
it is annoying i cant get it to work, i just wish i could decipher the fail codes,

i'm going to have a go at compiling manually as mentioned on the mame devs page, tho i am wondering how to add the hi-score patch, it only mentions adding the u patches,

i downloaded a pre-compiled version of mame 0140 with the hi-score patch applies, but it wont run on my system, which i read about, lots of people having probs running compiled versions on other computers than they were origionaly compiled for.

Pingaloka

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 44
  • Last login:March 30, 2025, 02:11:23 pm
Re: compiling problems
« Reply #11 on: November 02, 2010, 03:48:00 pm »
If you can't get it to work, tell me and I'll send you a copy of my compiled version via private message.

gazz292

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 137
  • Last login:January 22, 2022, 12:00:01 pm
Re: compiling problems
« Reply #12 on: November 02, 2010, 08:39:31 pm »
i am not having much luck,

i tried to compile it the manual way according to mr do's site, couldent even manage that, it wont even accept the 'mamemame' command, managed to apply the hi_140.diff patch tho,

i dunno, maybe something is missing on my computer,

i wanted to compile my own mame firstly to get rid of the nag screens, but also to optimize it for my processor,
i tried someone elses compiled mame, but it wouldent work on my system.

gazz292

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 137
  • Last login:January 22, 2022, 12:00:01 pm
Hold the press, i've got it
« Reply #13 on: November 02, 2010, 10:54:26 pm »
i'm amazed... i was ready to give up, but i thought i'd try one last time....

i deleted everything to do with mame off the computer except the roms and things like cabinets, marquees and so on, moved them to a new folder out of the way,

re-downloaded everything needed to compile, applied the patch and hit go, then jumped into bed with the GF, hours and hours of passionate love making later i came back to check on its progress, but it was still compiling, the clock thing must be wrong as it said it had only been running for 2 minutes, but i was at it for hours, honnest  :blah:

honnestly tho, i went in expecting to see the red text telling me it had failed again, but it was showing 'finished', at 1 hour 2 minutes no less, and it had brought up the folder view of the resulting mame.exe file.

so i fired up mala, pointed it at the new mame compile, and selected a game, and she bloomin well worked, no nag screens and high scores being saved,  :cheers:

I had the tick boxes set all off except for the dual core one, that one is always ticked when i start MC64, the processor i have is a hyperthreading one not a true dual core, but i thought i'd leave it ticked this time (last few times i had every tick box off)

i'm now trying another compile with the 'optimize for : pentium 4 +sse' selected, as i believe that's my processor (P4 prescot, 3.06 gig) but i dont expect this to work, as i read lots of posts on other forums about any optimizations fail with that 'png2bdc' error.

MKChamp

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 502
  • Last login:February 07, 2024, 02:45:53 pm
  • Stil around.
Re: Hold the press, i've got it
« Reply #14 on: November 03, 2010, 12:33:47 am »
i'm amazed... i was ready to give up, but i thought i'd try one last time....

i deleted everything to do with mame off the computer except the roms and things like cabinets, marquees and so on, moved them to a new folder out of the way,

re-downloaded everything needed to compile, applied the patch and hit go, then jumped into bed with the GF, hours and hours of passionate love making later i came back to check on its progress, but it was still compiling, the clock thing must be wrong as it said it had only been running for 2 minutes, but i was at it for hours, honnest  :blah:

honnestly tho, i went in expecting to see the red text telling me it had failed again, but it was showing 'finished', at 1 hour 2 minutes no less, and it had brought up the folder view of the resulting mame.exe file.

so i fired up mala, pointed it at the new mame compile, and selected a game, and she bloomin well worked, no nag screens and high scores being saved,  :cheers:

I had the tick boxes set all off except for the dual core one, that one is always ticked when i start MC64, the processor i have is a hyperthreading one not a true dual core, but i thought i'd leave it ticked this time (last few times i had every tick box off)

i'm now trying another compile with the 'optimize for : pentium 4 +sse' selected, as i believe that's my processor (P4 prescot, 3.06 gig) but i dont expect this to work, as i read lots of posts on other forums about any optimizations fail with that 'png2bdc' error.

Haha...I got a kick out of this post. I'm sure you compiled three or four times in one night, too! At my age(37), I'm good for one at most....and I don't wait for the GF either :-)

gazz292

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 137
  • Last login:January 22, 2022, 12:00:01 pm
Re: compiling problems
« Reply #15 on: November 03, 2010, 09:05:26 am »
lol, i'm 33 so making the most of it while it lasts  >:D

no luck with compiling for my processor, got the png2bdc error again, seems thats what most people get when trying to compile for a specific processor,
bloody annoying as i want to get the most out of this computer i can, so thought compiling for my specific hardware would be the best thing to do,

everywhere i read, that png2bdc thing is part of mame and not the compiler, so not much hope of it being fixed, when mame works unless you mess with it trying to customize it.

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: compiling problems
« Reply #16 on: November 03, 2010, 09:33:57 am »
bloody annoying as i want to get the most out of this computer i can, so thought compiling for my specific hardware would be the best thing to do

Does auto detect work? According to Aaron Giles it doesn't make a whole lot of difference to compile an optimized binary anyway.

gazz292

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 137
  • Last login:January 22, 2022, 12:00:01 pm
Re: compiling problems
« Reply #17 on: November 03, 2010, 10:52:08 am »
nope, anything but a non optimized build fails with the png2bdc thing.

i'll just live with it as it is i guess :) i've managed to get it with the no nag and hi-score patches added, so that's the main thing,

next is to remove all the crap windows has that i dont need.... watch out for my next post titles 'i've borked my OS'  ::)