Difference between revisions of "Compiling for OS X"

From The Powder Toy
Jump to: navigation, search
(Page started.)
 
(Finished up to Lua)
Line 8: Line 8:
 
This should download to your downloads folder. Keep uncompressing until it becomes a folder.
 
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, in terminal, type <code bash>cd </code> (<-- Make sure there is a space after) and then drag the SDL folder in.
  
then type in (or copy / paste) './configure && make'
+
then type in (or copy / paste) <code bash>./configure && make</code>
  
 
If that comes up with an error, go to this [https://developer.apple.com/downloads/index.action# page] and download 'Command Line Tools for OS X'.  
 
If that comes up with an error, go to this [https://developer.apple.com/downloads/index.action# 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.
 
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>
 +
It will ask you for your password. Type it in and press enter.
 +
 +
After that is done, time to install Lua.

Revision as of 17:52, 25 July 2012

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

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.

After that is done, time to install Lua.