Jump to content

All my products and services are free. All my costs are met by donations I receive from my users. If you enjoy using any of my products, please donate to support me. My bare hosting costs are currently not met so please consider donating by either clicking this text or the Patreon link on the right.

Patreon

Recommended Posts

Posted

I am in need of assistance using HKs Mame64 Compiler. I want to compile Mameui64.140u1 with the avalialble diffs When I attempt to apply the patches it appears that the files are not found. I followed the instructions noted on his site and just substituted the path names to reflect C:\MinGW\source\Mame0140u1 instead of the 0139 paths.

I have attached copies of the output from the patch application. I did not proceed with the compile and will not until I get this resolved. Any help appreciated!

0140u1diff.txt

hi_140u1diff.txt

Posted

I personally have never used HK's compiler to compile anything besides MAME. I think there's a thread here somewhere that can help you. Let me see if I can pull it up.

.:EDIT:. The link is here. About four posts down, B2K24 added a helpful guide to compiling MAMEUI.

Posted

So you have the MAME 0.140 source files in the Mame0140u1 directory?

The diffs are extracted to C:\MinGW\patches and the MameUI.mak file is extracted to C:\MinGW\source\MameUI0140u1 .

Posted

I personally have never used HK's compiler to compile anything besides MAME. I think there's a thread here somewhere that can help you. Let me see if I can pull it up.

.:EDIT:. The link is here. About four posts down, B2K24 added a helpful guide to compiling MAMEUI.

I decided to try B2k24's guide, yet it appears that the links to the mingw files are now dead (IE gives 404 error) and mame source/diff files links are not available as mamedev has stopped downloads due to bandwidth issues and no mirror available. Unless the mingw files are available elsewhere (I need the 64-bit file) I guess I am hosed for now. :blink:

Posted

The diffs are extracted to C:\MinGW\patches and the MameUI.mak file is extracted to C:\MinGW\source\MameUI0140u1 .

There's a lot more files than that required to compile your own version of mame. Are you sure your downloading the whole source and then extracting it to that folder?

Just downloaded to test.....and there should be a winui folder as well that contains all the source code files.

Posted

There's a lot more files than that required to compile your own version of mame. Are you sure your downloading the whole source and then extracting it to that folder?

Just downloaded to test.....and there should be a winui folder as well that contains all the source code files.

Yup - saved the winui folder to C:\MinGW\source\MameUI0140u1\src\osd (C:\MinGW\source\MameUI0136u3\src\osd per HK's instructions)

.:.EDIT - OK, I found a path discrepency and have corrected it, was able to apply the patches successfully, but now wondering whether or not my mameui executible was even created - attaching compile log file.

compile.txt

Posted

Yup - saved the winui folder to C:\MinGW\source\MameUI0140u1\src\osd (C:\MinGW\source\MameUI0136u3\src\osd per HK's instructions)

.:.EDIT - OK, I found a path discrepency and have corrected it, was able to apply the patches successfully, but now wondering whether or not my mameui executible was even created - attaching compile log file.

LOL. Well that explains the missing files. :P

Well it would be as simple as there being an exe in the source directory. But after looking at your log, it doesn't appear so. Looks like it errored out.

Posted

LOL. Well that explains the missing files. :P

Well it would be as simple as there being an exe in the source directory. But after looking at your log, it doesn't appear so. Looks like it errored out.

Do I need to place a copy of the mameui64.exe file in the source directory for it to be modified? If so, the instructions need to be updated.

Posted

Do I need to place a copy of the mameui64.exe file in the source directory for it to be modified? If so, the instructions need to be updated.

No! Shouldn't be modified. That's the point in compiling an app is to generate the executable. Perhaps by your log, HK or another experienced user will know why it's erroring out on that section. Will post here for them to see if it rings any bells.

Compiling src/osd/osdepend.c...
src/osd/osdepend.c:138: error: redefinition of 'void osd_interface::update_hi(bool)'
src/osd/osdepend.c:122: error: 'virtual void osd_interface::update_hi(bool)' previously defined here
src/osd/osdepend.c:154: error: redefinition of 'void osd_interface::update_hi(bool)'
src/osd/osdepend.c:122: error: 'virtual void osd_interface::update_hi(bool)' previously defined here
make: *** [obj/winui/mame64/osd/osdepend.o] Error 1
make: *** Waiting for unfinished jobs....
Finished!
0 Hours 10 Minutes and 11 Seconds Elapsed.

I haven't compiled mameui64 so can't say I know the exact results of this. I only compile vanilla MAME. If no answers can be found then I'll attempt to compile this as well to see if I get the same results as you and report back. Let's give it a chance for someone to respond to this first. ;)

Edit: Just compiled no problems first time following the directions on HK's site. What options did you use? Maybe something set is making this not compile for you.

Posted

No! Shouldn't be modified. That's the point in compiling an app is to generate the executable. Perhaps by your log, HK or another experienced user will know why it's erroring out on that section. Will post here for them to see if it rings any bells.

Compiling src/osd/osdepend.c...
src/osd/osdepend.c:138: error: redefinition of 'void osd_interface::update_hi(bool)'
src/osd/osdepend.c:122: error: 'virtual void osd_interface::update_hi(bool)' previously defined here
src/osd/osdepend.c:154: error: redefinition of 'void osd_interface::update_hi(bool)'
src/osd/osdepend.c:122: error: 'virtual void osd_interface::update_hi(bool)' previously defined here
make: *** [obj/winui/mame64/osd/osdepend.o] Error 1
make: *** Waiting for unfinished jobs....
Finished!
0 Hours 10 Minutes and 11 Seconds Elapsed.

I haven't compiled mameui64 so can't say I know the exact results of this. I only compile vanilla MAME. If no answers can be found then I'll attempt to compile this as well to see if I get the same results as you and report back. Let's give it a chance for someone to respond to this first. ;)

Edit: Just compiled no problems first time following the directions on HK's site. What options did you use? Maybe something set is making this not compile for you.

Here are my settings

Anything that should be changed?

Posted

I'll try with those setting when I get back to my machine. I'll post results after to see if those particular settings are causing issues.

Posted

I'll try with those setting when I get back to my machine. I'll post results after to see if those particular settings are causing issues.

I am in the process of trying again, this time selected None, and Mameui and debug optimize options - will let ya know how this works out.

.:.EDIT 23 mins and counting....

Posted

Just compiled again with your settings and no problems. :blink: So I'll wait for your response to see your results now that you're compiling now.

Posted

Just compiled again with your settings and no problems. :blink: So I'll wait for your response to see your results now that you're compiling now.

OK, made it to 29 mins - but still failed:

Compiling src/osd/windows/sound.c...

Compiling src/osd/windows/video.c...

src/osd/windows/video.c:260: error: redefinition of 'void windows_osd_interface::update_hi(bool)'

src/osd/windows/video.c:238: error: 'virtual void windows_osd_interface::update_hi(bool)' previously defined here

make: *** [obj/winui/mamed/osd/windows/video.o] Error 1

Finished!

0 Hours 29 Minutes and 15 Seconds Elapsed.

Posted

Best thing to do is delete the MAME source files and start again. Just to be sure download the hiscore diff again too.

Will give that a go again. Thanks!

Posted

OK, I downloaded everything over, finally got a good compile! One question remains - I applied the diffs including high score, however, do not see where the high score is saving when I go back into a game. DO I need to set somethign within MAME itself to register the high scores?

Thanks again for the coaching!

Posted

OK, I downloaded everything over, finally got a good compile! One question remains - I applied the diffs including high score, however, do not see where the high score is saving when I go back into a game. DO I need to set somethign within MAME itself to register the high scores?

Thanks again for the coaching!

Glad you got it working ;)

You need a 'hi' folder and hiscore.dat file in the root of your MAME folder. Check here for more info http://forum.arcadecontrols.com/index.php?topic=64298.0

Posted

Glad you got it working ;)

You need a 'hi' folder and hiscore.dat file in the root of your MAME folder. Check here for more info http://forum.arcadec...p?topic=64298.0

Thanks - will give that a try when I get home tonight. I believe the issue with the compilation was an access rights issue. I loaded everything on another hard drive, also had to change from read only for all folders and files under mingw. I love Windows 7 but sometimes the protections drive me nucking-futs!:blink:

Posted

Yay! Glad you finally got it to compile. It had to be something as I got it done both times I tried and I had never even compiled MAMEUI before. :P

Yup! Windows 7 is a PITA sometimes.

Posted

Alrighty, you can mark this one as resolved, looking great! Thanks again, guys!:D

Posted

Well, maybe I spoke too soon. started noticing error message "ERROR: FAILED TO OPEN FILE FOR LOAD OPERATION" athe the start of most games and also in Attract Mode. not entirely sure why this is occuring and did not see it before using the compiled version. I tried searching the forums, etc but could not fing anything useful.

Posted

Compiled using Headkaze program this morning. Worked great and took about 20 minutes. I already had a woking MAMEUI64 so I actually just replaced the EXE so that all other stuff didn't have to be setuo again. Great to have Hi score & no errors.

Thanks Headkaze!

Guest
This topic is now closed to further replies.
×
×
  • Create New...