Difference between revisions of "Compiling for OS X"

From The Powder Toy
Jump to: navigation, search
(Added X11 Dependency Link)
(Minor formatting)
Line 1: Line 1:
 
Note: This page is only for OS X (10.7, 10.8)
 
Note: This page is only for OS X (10.7, 10.8)
 
Note: If you are 10.6 or below, go to this page: [https://powdertoy.co.uk/Wiki/index.html?title=Compiling_for_Mac_OS_X 10.6]
 
Note: If you are 10.6 or below, go to this page: [https://powdertoy.co.uk/Wiki/index.html?title=Compiling_for_Mac_OS_X 10.6]
 +
  
 
Download Xcode from the App Store [http://itunes.apple.com/us/app/xcode/id497799835?ls=1&mt=12 link]
 
Download Xcode from the App Store [http://itunes.apple.com/us/app/xcode/id497799835?ls=1&mt=12 link]
  
 
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]
 
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 12: Line 15:
  
 
then type in (or copy / paste) <code bash>./configure && make</code>
 
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>
 
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.