Build Your Own Arcade Controls Forum

Software Support => GroovyMAME => Topic started by: blontic on December 12, 2013, 07:27:49 pm

Title: Compile Linux Groovymame with cave support
Post by: blontic on December 12, 2013, 07:27:49 pm
I know there are a few topics talking about this but I haven't seen any with step by step instructions on how to do it. Can anyone let me know how to do this for Ubuntu 13.10 and the latest version of Groovymame with Cave support?

I can build a version of mame without patching diffs but when I patch in the hiscore/cave/groovy diffs they say it's correct but after a while of compiling I get an error.

Code: [Select]
Compiling src/osd/sdl/watchdog.c...
Compiling src/osd/sdl/sdlmidi.c...
Compiling src/osd/sdl/switchres.c...
make: *** No rule to make target `obj/sdl64/osd/sdl/dview.o', needed by `obj/sdl64/libosd.a'.  Stop.
make: *** Waiting for unfinished jobs....
Compiling src/osd/sdl/debugwin.c...

This is how I do it.

1. Fresh install of Ubuntu 13.10
2. Install tools needed:
sudo apt-get install build-essential libgtk2.0-dev libgnome2-dev libsdl1.2-dev libqt4-dev libqt4-gui libsdl-ttf2.0-dev
3. Get mame source from http://www.mamedev.org/release.html (http://www.mamedev.org/release.html)
4. Get groovymame diff from https://code.google.com/p/groovyarcade/downloads/list (https://code.google.com/p/groovyarcade/downloads/list)
5. Get latest hiscore and cave diff from http://www.systempixel.fr/extra/ (http://www.systempixel.fr/extra/)
6. I found that the diff files cannot be found correctly unless I run this from the /mame/src directory
Code: [Select]
~/mame/src$ find . -type f -not -name uismall.png | xargs perl -pi -e 's/\r\n?/\n/g'
~/mame/src$ patch -p1 < hi_151.diff
~/mame/src$ patch -p1 < 0151_groovymame_015.diff
~/mame/src$ patch -p1 < cavesh3_0151_new.diff
~/mame$ make TARGET=mame PYTHON=python2 OPTIMIZE=2

If I don't patch the diffs mame builds fine. Any ideas?

thanks.
Title: Re: Compile Linux Groovymame with cave support
Post by: blontic on December 12, 2013, 11:01:38 pm
So it looks like a problem with the Groovy diff file. I'm still not sure what I need to do to fix this. Is this how other people compile in linux?

HERE WE GO! (hopefully)
You uncommented "NO_USE_QTDEBUG = 1" into "src/osd/sdl/sdl.mak" and this makes my system go crazy.
Now I have re-commented "NO_USE_QTDEBUG = 1" and trying to recompile.

PS: is there any reason you did that?
Title: Re: Compile Linux Groovymame with cave support
Post by: blontic on December 15, 2013, 09:05:39 pm
Using the groovymame diff from this post I was able to compile the latest build in Linux using the above steps.

http://forum.arcadecontrols.com/index.php/topic,135823.msg1408492.html#msg1408492 (http://forum.arcadecontrols.com/index.php/topic,135823.msg1408492.html#msg1408492)
Title: Re: Compile Linux Groovymame with cave support
Post by: machyavel on December 19, 2013, 04:47:34 pm
I usually use this template for patching  "patch -p0 -E --binary < yourpatch"