Page 2 of 2
Re: Trying to compile 2.5 for Mac OS X
Posted: May 29th, 2010, 11:21 am
by klimyriad
Yea that an good idea
Re: Trying to compile 2.5 for Mac OS X
Posted: May 29th, 2010, 7:46 pm
by ToddPM
Well, I got something to compile on my Mac, so that's at least a start.
For anyone trying it themselves, what I did in the Xcode project was to delete all of the source code from the following folders in "Other Sources": enet, engine, fpsgame, and shared. I deleted the references only, and did not move the files to the trash.
Then I added all source code files (*.c, *.cpp, *.h) from src/enet, src/engine, src/fpsgame, and src/shared back into those 4 folders.
There was one compile error because "engine" had two files trying to define the same function or property ("fatal"). I removed the reference to master.cpp from engine, and got it to compile.
Then I followed the renaming/moving instructions in the last step of
http://sandboxgamemaker.com/wiki/index. ... de#MAC_OSX and the program at least starts up!
If anyone has any tips about what I did and why things will go kablooey later on down the road, please let me know. For now, I'm going to poke around in the sandbox.
Re: Trying to compile 2.5 for Mac OS X
Posted: May 29th, 2010, 10:32 pm
by Mike
So you got 2.5 to successfully compile? Maybe you'd be willing to compile the mac binary for our future releases? You get your name mentioned and everything!!! hehe. Take care.
-mike
Re: Trying to compile 2.5 for Mac OS X
Posted: May 30th, 2010, 6:58 am
by Hirato
do not link engine/master.cpp into the main binary - it's meant to be linked against the -DSTANDALONE build ONLY
Re: Trying to compile 2.5 for Mac OS X
Posted: May 30th, 2010, 3:46 pm
by ToddPM
Hirato wrote:do not link engine/master.cpp into the main binary - it's meant to be linked against the -DSTANDALONE build ONLY
Is there a place where I can find a collection of tidbits like this?
Re: Trying to compile 2.5 for Mac OS X
Posted: May 31st, 2010, 8:18 am
by Mike
Yeah, here

Also you could come in and chat with Hirato in our chatroom. I think that is the main piece of advice for compiling Sandbox, not much else unless you're also using GCC which I found needs to be updated to the newest or newer, whatever codeblocks uses. I also noticed Codeblocks has a Mac version:
http://www.codeblocks.org/downloads/26
You might want to try that and use the project file called sandbox.cbp we have in our /src/windows folder and see what happens though of course you'd have to edit the project file to fit for macs. That might be the easiest solution of all!! Take care.
-mike
Re: Trying to compile 2.5 for Mac OS X
Posted: June 7th, 2010, 4:01 pm
by Leo_V117
I smell the workings of a new usergroup... Compilers... I also see new credits... and other things...
Re: Trying to compile 2.5 for Mac OS X
Posted: June 7th, 2010, 11:48 pm
by GR1M
Good things

Re: Trying to compile 2.5 for Mac OS X
Posted: June 8th, 2010, 2:58 am
by Leo_V117
Very Good Things... Oh yeah... you know my on-exit-save? Calimer Likes It... Hes gonna talk Hirato into adding it to the next releases of Sandbox.

Re: Trying to compile 2.5 for Mac OS X
Posted: June 8th, 2010, 9:20 am
by arcones
I love how we call Mike, Calimer, and Calimer Mike
