Compiling for OS X

From The Powder Toy
Revision as of 18:08, 25 July 2012 by Candunc (talk | contribs) (Added X11 Dependency Link)
Jump to: navigation, search

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.