Page 1 of 1

How to be fashion Mavericks

PostPosted: Thu Oct 24, 2013 8:02 pm
by Arbee
OS X 10.9 "Mavericks" has a few surprises for compiling Supermodel. (Existing binaries should continue to run fine, and as with everything 10.7 and later you must use SDL 1.2.15).

For SM, you'll need to make this edit to the Makefile.SDL.OSX.GCC:

On line 68, which should look like:

Code: Select all
COMPILER_FLAGS = -I$(OBJ_DIR) -ISrc/ -ISrc/OSD -ISrc/OSD/SDL/ -ISrc/Pkgs/ -ISrc/CPU/68K/Musashi -ISrc/Sound/MPEG  -c -Wall -O3 -DUSE_FILE32API -DSUPERMODEL_OSX


Go to the end of the line and add -F/Library/Frameworks/. This will make it look like this:

Code: Select all
COMPILER_FLAGS = -I$(OBJ_DIR) -ISrc/ -ISrc/OSD -ISrc/OSD/SDL/ -ISrc/Pkgs/ -ISrc/CPU/68K/Musashi -ISrc/Sound/MPEG  -c -Wall -O3 -DUSE_FILE32API -DSUPERMODEL_OSX -F/Library/Frameworks/


And on line 71, which starts off like this:

Code: Select all
LFLAGS = -o $(OUTFILE) $(SDL_LDFLAGS) -lz -lm -lstdc++


Make the same addition, so you end up with:

Code: Select all
LFLAGS = -o $(OUTFILE) $(SDL_LDFLAGS) -lz -lm -lstdc++ -F/Library/Frameworks/


Supermodel will then compile and link on OS X 10.9.

There are a lot of new warnings along the way because Xcode 5.0 and later eliminate GCC entirely in favor of Clang, which is a bit stricter by default. Hopefully we can get many of those cleaned up for the next release, whenever that is :)

Re: How to be fashion Mavericks

PostPosted: Mon Nov 11, 2013 5:28 am
by Bart
Thanks for sharing this!

Re: How to be fashion Mavericks

PostPosted: Mon Feb 10, 2014 8:04 pm
by GamerGee
could someone upload a binary of supermodel for 10.9.. Would love to run this on my rMBP. :)