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 compile woes  (Read 5737 times)

0 Members and 1 Guest are viewing this topic.

Dudeman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 232
  • Last login:April 23, 2025, 06:42:24 pm
  • Ecky ecky ecky ecky P'Tang! Zoop-boing mmmzoesm...
Mame compile woes
« on: April 09, 2010, 11:48:16 am »
I'm having a heck of a time trying to compile. I'm trying to compile v106, because I read somewhere in a past thread that it was the treat, my roms are all checked against that version, and I don't really want to go through the rom "collection/checking/fixing/deleting unwanted" process again. I know that version still had the high score capability but had the no nag switch removed, so that is what I'm trying to compile for.

I've used Headkaze's Mame Compiler v1.17 but I get:

makefile:334: src/windows/windows.mak: No such file or directory
makefile:339: src/cpu/cpu.mak: No such file or directory
makefile:340: src/sound/sound.mak: No such file or directory
mingw32-make: *** No rule to make target `src/sound/sound.mak'.  Stop.


When I try and manually do it (meaning command line) following Mr.Do's instructions, I get the same thing.

So I try it on a different box. 32bit so I can't use the Mame Compiler (I assume because 64 means it is 64bit, right?) so I download the compile stuff from mamedev.org.
I try to use mingw-mame-w32-20100102.exe and I get:
make: Interrupt/Exception caught (code = 0xc0000005, addr = 0x77c47098)

I try to use mingw-mame-20070810.exe and I get:
Compiling src/windows/wind3d.c...
cc1.exe: error: unrecognized command line option "-Wno-unused-functions"
mingw32-make: *** [obj/mame/windows/wind3d.o] Error 1


I try to use mingw-mame-20070617.exe and I get:
Compiling src/windows/wind3d.c...
src/windows/wind3d.c:18:17: d3d.h: No such file or directory
In file included from src/windows/wind3d.c:21:
src/windows/d3d_extra.h:5: error: syntax error before "D3DVALUE"
src/windows/d3d_extra.h:5: warning: no semicolon at end of struct or union
src/windows/d3d_extra.h:5: warning: no semicolon at end of struct or union
src/windows/d3d_extra.h:5: warning: type defaults to `int' in declaration of `dv
SX'
src/windows/d3d_extra.h:5: warning: data definition has no type or storage class

src/windows/d3d_extra.h:6: error: syntax error before "D3DVALUE"
src/windows/d3d_extra.h:6: warning: no semicolon at end of struct or union
src/windows/d3d_extra.h:6: warning: type defaults to `int' in declaration of `dv
SY'
src/windows/d3d_extra.h:6: warning: data definition has no type or storage class

src/windows/d3d_extra.h:7: error: syntax error before "D3DVALUE"
src/windows/d3d_extra.h:7: warning: no semicolon at end of struct or union
src/windows/d3d_extra.h:7: warning: type defaults to `int' in declaration of `dv
SZ'
src/windows/d3d_extra.h:7: warning: data definition has no type or storage class

src/windows/d3d_extra.h:8: error: syntax error before "D3DVALUE"
src/windows/d3d_extra.h:8: warning: no semicolon at end of struct or union
src/windows/d3d_extra.h:8: warning: type defaults to `int' in declaration of `dv
RHW'
src/windows/d3d_extra.h:8: warning: data definition has no type or storage class

src/windows/d3d_extra.h:9: error: syntax error before "D3DCOLOR"
src/windows/d3d_extra.h:9: warning: no semicolon at end of struct or union
src/windows/d3d_extra.h:9: warning: type defaults to `int' in declaration of `dc
Color'
src/windows/d3d_extra.h:9: warning: data definition has no type or storage class

src/windows/d3d_extra.h:10: error: syntax error before "D3DCOLOR"
src/windows/d3d_extra.h:10: warning: no semicolon at end of struct or union
src/windows/d3d_extra.h:10: warning: type defaults to `int' in declaration of `d
cSpecular'


... and on and on.

What the heck am I doing wrong? Besides trying to do something above my pay grade.

BTW... All of this is using mame0106s.zip source code. Not even adding in any diffs.

Eddie_Brock

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 147
  • Last login:February 26, 2014, 12:00:34 pm
Re: Mame compile woes
« Reply #1 on: April 09, 2010, 12:26:05 pm »
I would follow the details here: http://mrdo.mameworld.info/compile.html

I had trouble using HeadKaze's program as well, but once I found this guide, I had no problem compiling on my computer. I hope this helps. (and no offence to HeadKaze intended)

Dudeman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 232
  • Last login:April 23, 2025, 06:42:24 pm
  • Ecky ecky ecky ecky P'Tang! Zoop-boing mmmzoesm...
Re: Mame compile woes
« Reply #2 on: April 09, 2010, 12:42:45 pm »
Yup. Tried that. It says, "NOTE: This is to compile MAME starting with version 0.119" so I assume that is a problem as I'm trying to compile 106.

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Mame compile woes
« Reply #3 on: April 09, 2010, 02:49:36 pm »
Yup. Tried that. It says, "NOTE: This is to compile MAME starting with version 0.119" so I assume that is a problem as I'm trying to compile 106.

You can download the older version of Mame Compiler for compiling earlier versions of Mame from here.

I'll have to check to see if MC will compile the latest version a few people have said it's not working.

Dudeman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 232
  • Last login:April 23, 2025, 06:42:24 pm
  • Ecky ecky ecky ecky P'Tang! Zoop-boing mmmzoesm...
Re: Mame compile woes
« Reply #4 on: April 09, 2010, 03:07:52 pm »
Downloaded that version to another system. Tried to compile without adding any diff files... here's the result:

Compiling Mame...
Using Parameters  -j3
Compiling src/windows/wind3dfx.c...
cc1.exe: error: unrecognized command line option "-Wno-unused-functions"
Compiling src/windows/wind3d.c...
Compiling src/windows/winddraw.c...
cc1.exe: error: unrecognized command line option "-Wno-unused-functions"
cc1.exe: error: unrecognized command line option "-Wno-unused-functions"
mingw32-make: *** [obj/mame/windows/winddraw.o] Error 1
mingw32-make: *** Waiting for unfinished jobs....
mingw32-make: *** [obj/mame/windows/wind3dfx.o] Error 1
mingw32-make: *** [obj/mame/windows/wind3d.o] Error 1
Finished!
0 Hours 0 Minutes and 1 Seconds Elapsed.

« Last Edit: April 09, 2010, 03:14:24 pm by Dudeman »

Dudeman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 232
  • Last login:April 23, 2025, 06:42:24 pm
  • Ecky ecky ecky ecky P'Tang! Zoop-boing mmmzoesm...
Re: Mame compile woes
« Reply #5 on: April 09, 2010, 03:23:53 pm »
New info.

I downloaded v0105... same error.

I downloaded v0112... it's currently compiling. So maybe the problem is the version of MinGW that I'm using. Question is... what is the right version?

Dudeman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 232
  • Last login:April 23, 2025, 06:42:24 pm
  • Ecky ecky ecky ecky P'Tang! Zoop-boing mmmzoesm...
Re: Mame compile woes
« Reply #6 on: April 11, 2010, 09:58:39 pm »
I was finally able to compile version .0123 with Mame Complier 117. Still can't compile lower versions.

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Mame compile woes
« Reply #7 on: April 12, 2010, 10:40:35 am »
Use the MinGW version that comes with Mame Compiler.

Dudeman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 232
  • Last login:April 23, 2025, 06:42:24 pm
  • Ecky ecky ecky ecky P'Tang! Zoop-boing mmmzoesm...
Re: Mame compile woes
« Reply #8 on: April 12, 2010, 11:03:49 am »
Tried that. No go.

Eddie_Brock

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 147
  • Last login:February 26, 2014, 12:00:34 pm
Re: Mame compile woes
« Reply #9 on: April 12, 2010, 01:25:03 pm »
I'm pretty sure that from my experience, .NET framework 3.5 was needed to do the compiling. My arcade machine doesn't have .net, so I had to do it on my PC. Worked fine, just transferred everything over afterwards and it worked fine.

Maybe double check that you have .net 3.5, and Direct X installed.

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Mame compile woes
« Reply #10 on: April 12, 2010, 02:32:13 pm »
Quote
cc1.exe: error: unrecognized command line option "-Wno-unused-functions"

Unless I'm missing something this is telling me you're using a different MinGW version to the one installed (it's happened before)

I could be wrong though!

Dudeman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 232
  • Last login:April 23, 2025, 06:42:24 pm
  • Ecky ecky ecky ecky P'Tang! Zoop-boing mmmzoesm...
Re: Mame compile woes
« Reply #11 on: April 12, 2010, 02:55:28 pm »
Well, I downloaded the source code AGAIN for 0106 and tried to recompile. Errors, but I started messing with the checkboxes. I assumed because I had a 64bit Quad core, i should check those boxes, but nope. Leaving everything blank EXCEPT "Clean Compile" and "Disable Warnings as Error" allowed me to compile 0106.  :cheers:

I started adding diffs (0106-0106u10.diff to be exact), and that's where I'm running into problems. 1st one said something along the lines of:
src/usrintrf.c:420: error: unterminated #ifndef

So I edited that file, found where the ifndef was opened and added the close tag after that section, which happened to be segmented by comments.

Ran again and now I'm getting:
Compiling src/timer.c...
Compiling src/ui_text.c...
Compiling src/unzip.c...
Compiling src/usrintrf.c...
src/usrintrf.c:440: error: conflicting types for 'ui_init'
src/usrintrf.h:91: error: previous declaration of 'ui_init' was here
src/usrintrf.c: In function 'ui_init':
src/usrintrf.c:460: error: 'load_save_state' undeclared (first use in this function)
src/usrintrf.c:460: error: (Each undeclared identifier is reported only once
src/usrintrf.c:460: error: for each function it appears in.)
src/usrintrf.c: At top level:
src/usrintrf.c:5235: warning: conflicting types for 'add_filled_box'
src/usrintrf.c:5235: error: static declaration of 'add_filled_box' follows non-static declaration
src/usrintrf.c:1068: error: previous implicit declaration of 'add_filled_box' was here
src/usrintrf.c:5245: warning: conflicting types for 'add_black_box'
src/usrintrf.c:5245: error: static declaration of 'add_black_box' follows non-static declaration
src/usrintrf.c:4261: error: previous implicit declaration of 'add_black_box' was here
mingw32-make: *** [obj/mame/usrintrf.o] Error 1
Finished!
0 Hours 0 Minutes and 35 Seconds Elapsed.


So I do have a working 0106, but I'll have to decide how much time I want to spend on these diffs. Value added vs. time.

Thanks for the input guys. Especially Headkaze. If I had to commandline this whole thing every time I'd have gone postal.
« Last Edit: April 12, 2010, 02:56:59 pm by Dudeman »

Gh0sty

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 56
  • Last login:December 04, 2019, 05:04:06 pm
  • flying Mame Player
Re: Mame compile woes
« Reply #12 on: April 14, 2010, 07:33:06 pm »
headkaze i followed everything what you have wrote about how to setup everything, but when i try to
compile i get this errors:

MameUI.mak:40 warning: overriding commands for target ´mameui32.exe´
makefile:664: warning: ignoring old commands for target ´mameui32.exe´

Compiling src/emu/cpu/m68000/m68kmake.c...
Compiling src/osd/windows/strconv.c...
Compiling src/osd/windows/windir.c..

gcc: CreateProcess: No such file or directory
mingw32-make ***[obj/winui/mame/emu/cpu/m68000/m68make.o] Error 1


...and so on with few more No such file or directory, then finished.

what could it be?

R
Gh0sty

Gh0sty

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 56
  • Last login:December 04, 2019, 05:04:06 pm
  • flying Mame Player
Re: Mame compile woes
« Reply #13 on: April 14, 2010, 08:06:17 pm »
update!

the Problems just happen with the 0137source,
i tried with 0128source and it worked, strange...
what could be the problem with 0137s ?

R
Gh0sty

Dudeman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 232
  • Last login:April 23, 2025, 06:42:24 pm
  • Ecky ecky ecky ecky P'Tang! Zoop-boing mmmzoesm...
Re: Mame compile woes
« Reply #14 on: April 15, 2010, 09:04:33 am »
Try messing with the check boxes. I got different results with different selections.