Difference between revisions of "Compiling for OS X"

From The Powder Toy
Jump to: navigation, search
(Finished up to Lua)
(Added X11 Dependency Link)
Line 5: Line 5:
  
 
Download SDL [http://www.libsdl.org/release/SDL-1.2.14.tar.gz link]
 
Download SDL [http://www.libsdl.org/release/SDL-1.2.14.tar.gz link]
 +
Download xQuartz [http://xquartz.macosforge.org/downloads/SL/XQuartz-2.7.2.dmg link]
  
 
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.
Line 18: Line 19:
 
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.
 +
  
 
After that is done, time to install Lua.
 
After that is done, time to install Lua.

Revision as of 18:08, 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 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.


After that is done, time to install Lua.