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: Want to Compile Mame 200  (Read 6147 times)

0 Members and 1 Guest are viewing this topic.

MomoneDk

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 27
  • Last login:March 07, 2025, 03:01:03 pm
  • I want to build my own arcade controls!
Want to Compile Mame 200
« on: May 09, 2021, 02:27:47 pm »
Hello Everybody, i want to compile my own Mame 200.
I tried with GCC 7.2, and GCC 8.3, these tools are not working.
I believe that the GCC 8.1 is used to compile this version (wolfmame was compiled with).
Anyone knows where it is possible to download the appropriate tools GCC 8.1 for Mame ? In mamedev this version isn't present.


Thanks

Phreakwars

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 597
  • Last login:July 18, 2025, 02:26:21 pm
  • Waka-Waka
    • forum.arcadecontrols.com/index.php/topic,146325.0.html
    • My Facebook Page
Re: Want to Compile Mame 200
« Reply #1 on: May 09, 2021, 11:29:54 pm »
I compile older stuff with Mame Compiler 1.17 which works much better for older versions. I keep a copy of it on my mega account, you can download it from here: Mame_Compiler_117 .exe

10yard

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 141
  • Last login:Yesterday at 04:54:40 pm
  • L BREAK into program
    • DKAFE Frontend
Re: Want to Compile Mame 200
« Reply #2 on: May 10, 2021, 04:44:27 am »
Hello Everybody, i want to compile my own Mame 200.
I tried with GCC 7.2, and GCC 8.3, these tools are not working.
I believe that the GCC 8.1 is used to compile this version (wolfmame was compiled with).
Anyone knows where it is possible to download the appropriate tools GCC 8.1 for Mame ? In mamedev this version isn't present.


Thanks

You can download historic build tools from mamedev at https://github.com/mamedev/buildtools/releases/

I recently built all MAME releases in the range 169 to 200 using the GCC 5.3 compiler - that would be version 1.4 from the above releases page.

Good luck.
Check out my Donkey Kong Arcade Frontend at https://github.com/10yard/dkafe#readme


MomoneDk

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 27
  • Last login:March 07, 2025, 03:01:03 pm
  • I want to build my own arcade controls!
Re: Want to Compile Mame 200
« Reply #3 on: May 10, 2021, 12:28:14 pm »
Thank you for your answers, i will try your solutions.
 :)

MomoneDk

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 27
  • Last login:March 07, 2025, 03:01:03 pm
  • I want to build my own arcade controls!
Re: Want to Compile Mame 200
« Reply #4 on: May 11, 2021, 02:18:26 pm »
Hello

For 10yard, === > I compiled several mame between 169 and 199 with GCC 5.3 (version 1.4) with no problem.
But Mame 200 compilation gives me always the same error when trying to create "mamearcade.exe" at the end.
The problem is the same with newer GCC on mamedev, with the same error result.
I tried with 2 different PC, one with windows 7, the other with windows 10, always the same error compilation.
I am asking what is the problem......

Not tried Mame Compiler 1.17 yet.

Thanks

10yard

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 141
  • Last login:Yesterday at 04:54:40 pm
  • L BREAK into program
    • DKAFE Frontend
Re: Want to Compile Mame 200
« Reply #5 on: May 11, 2021, 03:46:23 pm »
Hello

For 10yard, === > I compiled several mame between 169 and 199 with GCC 5.3 (version 1.4) with no problem.
But Mame 200 compilation gives me always the same error when trying to create "mamearcade.exe" at the end.
The problem is the same with newer GCC on mamedev, with the same error result.
I tried with 2 different PC, one with windows 7, the other with windows 10, always the same error compilation.
I am asking what is the problem......

Not tried Mame Compiler 1.17 yet.

Thanks

I compiled again Mame 200 with GCC 5.3 no issues. 
Are you using the default makefile or are you targetting something specific with your build?  Can you post the "user-configurable" section of your makefile here?  Thanks.
Check out my Donkey Kong Arcade Frontend at https://github.com/10yard/dkafe#readme


MomoneDk

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 27
  • Last login:March 07, 2025, 03:01:03 pm
  • I want to build my own arcade controls!
Re: Want to Compile Mame 200
« Reply #6 on: May 12, 2021, 02:20:09 pm »
Hello

I tried Mame Compiler 1.17, and, of course, as i guessed, it doesn't work, really too old tools to compile Mame 200.

For GCC 5.3.0, 10yard, i don't understand exactly your question, but when i compile the sources of 200, i don't touch/modify the makefile.

Thanks

Phreakwars

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 597
  • Last login:July 18, 2025, 02:26:21 pm
  • Waka-Waka
    • forum.arcadecontrols.com/index.php/topic,146325.0.html
    • My Facebook Page
Re: Want to Compile Mame 200
« Reply #7 on: May 12, 2021, 03:46:51 pm »
I feel your pain, I'm in a worse predicament. I'm trying to compile 0.111 for Raspberry Pi and keep failing. Pretty sure either my make file is wrong, or I'm using the wrong tools. I'm using GCC, 0.111 used the MinGW when I compiled that, doesn't work yet, but I know it can be done. Once I get that straight, then I'll have a cool new Pi image that is capable of Ms. Pac-man Hot Pursuit.

10yard

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 141
  • Last login:Yesterday at 04:54:40 pm
  • L BREAK into program
    • DKAFE Frontend
Re: Want to Compile Mame 200
« Reply #8 on: May 12, 2021, 06:01:18 pm »
Hello

I tried Mame Compiler 1.17, and, of course, as i guessed, it doesn't work, really too old tools to compile Mame 200.

For GCC 5.3.0, 10yard, i don't understand exactly your question, but when i compile the sources of 200, i don't touch/modify the makefile.

Thanks

Ok if you haven't touched your makefile then you could try uncommenting these lines in the file.
REGENIE = 1
NOWERROR = 1

Also do a "make clean" before retrying your make.
Check out my Donkey Kong Arcade Frontend at https://github.com/10yard/dkafe#readme


MomoneDk

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 27
  • Last login:March 07, 2025, 03:01:03 pm
  • I want to build my own arcade controls!
Re: Want to Compile Mame 200
« Reply #9 on: May 12, 2021, 10:19:45 pm »
Phreakwars, to compile mame 111, with mame compile 1.17 as you do, maybe you know or not, you must edit the "makefile", and remove these words:
-Werror
-Wno-unused-functions

It will compile with no problem.


10 yard, i will try your solution, i hope i will compile with no problem  :)

Phreakwars

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 597
  • Last login:July 18, 2025, 02:26:21 pm
  • Waka-Waka
    • forum.arcadecontrols.com/index.php/topic,146325.0.html
    • My Facebook Page
Re: Want to Compile Mame 200
« Reply #10 on: May 12, 2021, 11:33:32 pm »
Phreakwars, to compile mame 111, with mame compile 1.17 as you do, maybe you know or not, you must edit the "makefile", and remove these words:
-Werror
-Wno-unused-functions

It will compile with no problem.


10 yard, i will try your solution, i hope i will compile with no problem  :)
I'm trying to get it to run on a Pi/Linux, I tried that already, getting no where. Starting to piss me off. All I ask is a simple 0.111 with the high.diff file added in that runs on a Pi3.. UGH!! I never have problems doing a Windows compile, for some reason I can't get a Pi compile down.. God I suck.

Code: [Select]

#-------------------------------------------------
# compile and linking flags
#-------------------------------------------------

CFLAGS = -std=gnu89 -Isrc -Isrc/includes -Isrc/$(MAMEOS) -I$(OBJ)/layout

ifdef SYMBOLS
CFLAGS += -O0 -Wall -Wno-unused -g
else
CFLAGS += -DNDEBUG \
$(ARCH) -O3 -fno-strict-aliasing \
-Wall \
-Wno-sign-compare \
-Wpointer-arith \
-Wbad-function-cast \
-Wcast-align \
-Wstrict-prototypes \
-Wundef \
-Wformat-security \
-Wwrite-strings \
-Wdeclaration-after-statement
endif

If somebody could PRETTY PLEASE Make me a correct makefile for Raspberry Pi or compile me a build for Pi with the hi_111.diff, I would be forever grateful. My head is rusty these days when it comes to code.
« Last Edit: May 13, 2021, 01:37:03 am by Phreakwars »

MomoneDk

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 27
  • Last login:March 07, 2025, 03:01:03 pm
  • I want to build my own arcade controls!
Re: Want to Compile Mame 200
« Reply #11 on: May 13, 2021, 10:42:42 am »
Hello,

10yard, i am really not lucky......
For me and mame 200 it is definitely impossible to compile.
Since the beginning and several attempts, with different pc and gcc, every time i wrote the compilation result, and i have ALWAYS the same error :

Quote
Linking mamearcade64.exe...
../../../../mingw-gcc/bin/x64/Release/mame_arcade/liboptional.a(ps2gs.o):ps2gs.c
pp:(.rdata$.refptr._ZTV13device_finderI15ps2_intc_deviceLb1EE[.refptr._ZTV13devi
ce_finderI15ps2_intc_deviceLb1EE]+0x0): undefined reference to `vtable for devic
e_finder<ps2_intc_device, true>'
collect2.exe: error: ld returned 1 exit status
mamearcade.make:252: recipe for target '../../../../../mamearcade64.exe' failed
make[2]: *** [../../../../../mamearcade64.exe] Error 1
makefile:409: recipe for target 'mamearcade' failed
make[1]: *** [mamearcade] Error 2
makefile:1031: recipe for target 'windows_x64' failed
make: *** [windows_x64] Error 2

If anyone have an idea.....

Thanks

10yard

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 141
  • Last login:Yesterday at 04:54:40 pm
  • L BREAK into program
    • DKAFE Frontend
Re: Want to Compile Mame 200
« Reply #12 on: May 13, 2021, 11:28:27 am »
Hello,

10yard, i am really not lucky......
For me and mame 200 it is definitely impossible to compile.
Since the beginning and several attempts, with different pc and gcc, every time i wrote the compilation result, and i have ALWAYS the same error :

Quote
Linking mamearcade64.exe...
../../../../mingw-gcc/bin/x64/Release/mame_arcade/liboptional.a(ps2gs.o):ps2gs.c
pp:(.rdata$.refptr._ZTV13device_finderI15ps2_intc_deviceLb1EE[.refptr._ZTV13devi
ce_finderI15ps2_intc_deviceLb1EE]+0x0): undefined reference to `vtable for devic
e_finder<ps2_intc_device, true>'
collect2.exe: error: ld returned 1 exit status
mamearcade.make:252: recipe for target '../../../../../mamearcade64.exe' failed
make[2]: *** [../../../../../mamearcade64.exe] Error 1
makefile:409: recipe for target 'mamearcade' failed
make[1]: *** [mamearcade] Error 2
makefile:1031: recipe for target 'windows_x64' failed
make: *** [windows_x64] Error 2

If anyone have an idea.....

Thanks

I believe your error "undefined reference to vtable.." relates to the mame source. 
Might be worth downloading a fresh source from here - https://github.com/mamedev/mame/releases/tag/mame0200
Check out my Donkey Kong Arcade Frontend at https://github.com/10yard/dkafe#readme


MomoneDk

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 27
  • Last login:March 07, 2025, 03:01:03 pm
  • I want to build my own arcade controls!
Re: Want to Compile Mame 200
« Reply #13 on: May 14, 2021, 06:56:10 am »
Hello

10 yard, i downloaded the sources from the link you gave me, tried to compile, same error as my last message.....
But, i compiled an old "mamemaster 200" from github that i kept on my pc, and it was a success.....
So, i don't understand where is the error, maybe i will do an "examdiff" between the sources who don't work and the others to see where is the problem (which file is wrong to compile for me).....
But as you never had problems to compile 200, there is nothing to understand.

And, also, i tried to compile the 201 with GCC 5.3, it works, i don't know until which version it works to compile with 5.3.....The compilation is longer thant newer tools, but works.

Thanks

nitrogen_widget

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1782
  • Last login:May 23, 2025, 02:30:58 pm
  • I want to build my own arcade controls!
Re: Want to Compile Mame 200
« Reply #14 on: May 14, 2021, 07:58:29 am »
Phreakwars, to compile mame 111, with mame compile 1.17 as you do, maybe you know or not, you must edit the "makefile", and remove these words:
-Werror
-Wno-unused-functions

It will compile with no problem.


10 yard, i will try your solution, i hope i will compile with no problem  :)
I'm trying to get it to run on a Pi/Linux, I tried that already, getting no where. Starting to piss me off. All I ask is a simple 0.111 with the high.diff file added in that runs on a Pi3.. UGH!! I never have problems doing a Windows compile, for some reason I can't get a Pi compile down.. God I suck.

Code: [Select]

#-------------------------------------------------
# compile and linking flags
#-------------------------------------------------

CFLAGS = -std=gnu89 -Isrc -Isrc/includes -Isrc/$(MAMEOS) -I$(OBJ)/layout

ifdef SYMBOLS
CFLAGS += -O0 -Wall -Wno-unused -g
else
CFLAGS += -DNDEBUG \
$(ARCH) -O3 -fno-strict-aliasing \
-Wall \
-Wno-sign-compare \
-Wpointer-arith \
-Wbad-function-cast \
-Wcast-align \
-Wstrict-prototypes \
-Wundef \
-Wformat-security \
-Wwrite-strings \
-Wdeclaration-after-statement
endif

If somebody could PRETTY PLEASE Make me a correct makefile for Raspberry Pi or compile me a build for Pi with the hi_111.diff, I would be forever grateful. My head is rusty these days when it comes to code.

I just checked and advmame 3.9 (106) romset does have the 2x speed-hack.
you have to enable it in the dip switches.
this is on windows but i don't see how there would be a difference.

Phreakwars

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 597
  • Last login:July 18, 2025, 02:26:21 pm
  • Waka-Waka
    • forum.arcadecontrols.com/index.php/topic,146325.0.html
    • My Facebook Page
Re: Want to Compile Mame 200
« Reply #15 on: May 15, 2021, 10:55:38 am »

I just checked and advmame 3.9 (106) romset does have the 2x speed-hack.
you have to enable it in the dip switches.
this is on windows but i don't see how there would be a difference.
Yes, I am aware of that. The reason I'm trying to compile 0.111 is because it was the last version to offer the speedup hack, not the only version clearly, but it was the last. It has a better GUI interface and records on OBS easier. If I wanted just the speedup cheat, I'd use AdvMAME 1.4,  But enough about me, I'll figure out what I'm doing wrong eventually, like I said, I'm a bit rusty. College was over 25 years ago and I've mainly done PHP since then. But I need the practice anyways.