The NEW Build Your Own Arcade Controls

Main => Software Forum => Topic started by: giobbi on January 20, 2020, 12:11:38 pm

Title: [SOLVED] Error Compiling DOS Mame
Post by: giobbi on January 20, 2020, 12:11:38 pm
Hi people,
I'm trying to compile DOS Mame (latest build, 0.37 beta 14). I want to make some changes for my cabinet so I need to compile it.

I spent a lot of time configuring and patching makefile, etc. but I can't get the rid of one of the latest sections.

When makefile invokes mame.mak, I get this:

Archiving obj/mame/pacman.a
make.exe *** [obj/mame/pacman.a] Error -1

 
All the source files (*.o) invoked in mame.mak for the pacman.a sections are in the right directories.

I don't understand what is Error -1 ....

can anybody here help me, please?

thank you!
Giobbi
Title: Re: Error Compiling DOS Mame (in the end)
Post by: giobbi on January 20, 2020, 05:37:41 pm
Solved.

DJGPP (at least my release) hasn't everything you need for a pure DOS (and DOSBOX) compile task.

So I had to:
1) use ASM = @nasm (instead of @nasmw), but you also need to download nasm.exe from the web and put it into the GJGPP\BIN directory
2) rename the sentence RM = @rm  in RM = @rem (there's no rm.com file, but I found the rem.com executable works fine)
3) change CFLAGS, removing both "-Werror" and "-Wall" and put "-Wno-error" instead
4) download the UPX.EXE dos version from the web (just search for UPX.EXE on the web, go the official site and find the DOS release) and put it into DJGPP\BIN replacing the Windows version.