Difference between revisions of "Compiling for OS X"
m |
(Added --nofft support.) |
||
Line 20: | Line 20: | ||
There are two versions. One is for lion 10.7 and the other is for mountain lion 10.8. If you don't know which you are using, go to the apple in the top left hand corner and press about my mac. | There are two versions. One is for lion 10.7 and the other is for mountain lion 10.8. If you don't know which you are using, go to the apple in the top left hand corner and press about my mac. | ||
− | |||
After that, install SDL by typing in <code bash>sudo make install</code> | After that, install SDL by typing in <code bash>sudo make install</code> | ||
It will ask you for your password. Type it in and press enter. | It will ask you for your password. Type it in and press enter. | ||
+ | Download [http://prdownloads.sourceforge.net/scons/scons-2.3.0.zip this] and unzip it. Go into terminal. Type in <code bash>cd </code> with a space after it and drag in the folder that you downloaded. Next type <code bash>sudo python setup.py install</code>. The terminal will ask you for your password. Note that you can not see your password while you are typing it in. You now have scons installed. | ||
− | + | Go into the folder with the source code that you downloaded. Open up terminal again and type <code bash>cd </code> with a space after it. Drag in the folder with the source code. | |
− | |||
− | |||
− | Go into the | ||
− | + | Next type this into Terminal: <code bash>scons --macosx --nofft</code>. The terminal will spit out a bunch of crap. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | If you go into the build folder that this command has created in the source code, you will find a file that says powder-legacy-x. Double click it and run it. | ||
Congrats, you have compiled spare code and have made a OS X application. | Congrats, you have compiled spare code and have made a OS X application. | ||
− | + | This was written by Candunc and rewritten by jmeyer2k, although parts were copied from the Mac OS X compile page. Thanks to the editors on the Mac OS X compile page, and thanks to people at Mac Rumors and Ximon to help me find out various errors. | |
− | |||
− | This was written by Candunc, although parts were copied from the Mac OS X compile page. Thanks to the editors on the Mac OS X compile page, and thanks to people at Mac Rumors and Ximon to help me find out various errors. | ||
I hope this helps future users become Mac Compilers and push TPT to Mac users! | I hope this helps future users become Mac Compilers and push TPT to Mac users! | ||
[[Category:Compiling]] | [[Category:Compiling]] |
Revision as of 04:41, 11 April 2013
Note: This page is only for OS X (10.7, 10.8) Note: If you are 10.6 or below, go to this page: 10.6
Download Xcode from the App Store link
Download SDL link
Download xQuartz link
This should download to your downloads folder. Keep uncompressing until it becomes a folder.
Then, in terminal, type cd
(<-- Make sure there is a space after) and then drag the SDL folder in.
then type in (or copy / paste) ./configure && make
If that comes up with an error, go to this page and download 'Command Line Tools for OS X'.
There are two versions. One is for lion 10.7 and the other is for mountain lion 10.8. If you don't know which you are using, go to the apple in the top left hand corner and press about my mac.
After that, install SDL by typing in sudo make install
It will ask you for your password. Type it in and press enter.
Download this and unzip it. Go into terminal. Type in cd
with a space after it and drag in the folder that you downloaded. Next type sudo python setup.py install
. The terminal will ask you for your password. Note that you can not see your password while you are typing it in. You now have scons installed.
Go into the folder with the source code that you downloaded. Open up terminal again and type cd
with a space after it. Drag in the folder with the source code.
Next type this into Terminal: scons --macosx --nofft
. The terminal will spit out a bunch of crap.
If you go into the build folder that this command has created in the source code, you will find a file that says powder-legacy-x. Double click it and run it.
Congrats, you have compiled spare code and have made a OS X application.
This was written by Candunc and rewritten by jmeyer2k, although parts were copied from the Mac OS X compile page. Thanks to the editors on the Mac OS X compile page, and thanks to people at Mac Rumors and Ximon to help me find out various errors.
I hope this helps future users become Mac Compilers and push TPT to Mac users!