Difference between revisions of "Mac OS X"
m |
|||
Line 1: | Line 1: | ||
This page will help you get up and running to hack [[Armagetron]] on [[Mac OS X]] | This page will help you get up and running to hack [[Armagetron]] on [[Mac OS X]] | ||
− | |||
= Prerequisites = | = Prerequisites = | ||
== Xcode == | == Xcode == | ||
− | You'll need Apple's [http://developer.apple.com/tools/xcode/ Xcode], this guide was written for version 3.1. | + | You'll need Apple's [http://developer.apple.com/tools/xcode/ Xcode], this guide was written for version 3.1 on Mac OS X Leopard (10.5.4). |
− | |||
− | |||
− | |||
== Libraries and dependancies == | == Libraries and dependancies == | ||
Line 20: | Line 16: | ||
* ftgl | * ftgl | ||
− | Extract the archive and copy the ArmagetronAdvanced to <pre>/Library/Frameworks/ArmagetronAdvanced</pre> as stated in the README file. | + | Extract the archive and copy the ArmagetronAdvanced to <pre>/Library/Frameworks/ArmagetronAdvanced</pre> as stated in the <tt>README</tt> file. |
+ | |||
+ | You could also install everything using [[MacPorts]]. | ||
+ | |||
+ | == MacPorts == | ||
+ | [[MacPorts]] may come in handy for installing external libraries and stuff like Subversion and Bazaar. You can get MacPorts from [http://www.macports.org/ their offical website]. | ||
= Getting into it = | = Getting into it = | ||
Line 26: | Line 27: | ||
== Checking out a working copy == | == Checking out a working copy == | ||
=== SVN === | === SVN === | ||
− | You should probably use [[ Bazaar]] to get the workspace but I [http://www.urbandictionary.com/define.php?term=cba CBA] so I use SVN like everybody else. | + | You should probably use [[Bazaar]] to get the workspace but I [http://www.urbandictionary.com/define.php?term=cba CBA] so I use SVN like everybody else. |
You can check out the stable branch ''a la mano'' like so: | You can check out the stable branch ''a la mano'' like so: | ||
<pre> | <pre> | ||
Line 32: | Line 33: | ||
</pre> | </pre> | ||
− | However, I recommend using Xcode's SCM repository manager ( | + | However, I recommend using Xcode's SCM repository manager (<tt>SCM -> Configure SCM Repositories...</tt> to set it up) to check out the same folder as above. |
Check out [[working with SVN]] for more "information". | Check out [[working with SVN]] for more "information". | ||
Line 46: | Line 47: | ||
== Creating the project == | == Creating the project == | ||
− | To open the project in Xcode, easy as pie : just open the | + | To open the project in Xcode, easy as pie : just open the <tt>Armagetron Advanced.xcodeproj</tt> in the <tt>MacOS</tt> folder where you checked out. |
== Building == | == Building == | ||
Click the '''Build''' button ! Easy ! | Click the '''Build''' button ! Easy ! |
Revision as of 18:40, 4 August 2008
This page will help you get up and running to hack Armagetron on Mac OS X
Prerequisites
Xcode
You'll need Apple's Xcode, this guide was written for version 3.1 on Mac OS X Leopard (10.5.4).
Libraries and dependancies
All the external libraries you'll need are on the SourceForge.net project page
- SDL
- libpng
- libxml
- zthreads
- libfreetype
- ftgl
Extract the archive and copy the ArmagetronAdvanced to
/Library/Frameworks/ArmagetronAdvanced
as stated in the README file.
You could also install everything using MacPorts.
MacPorts
MacPorts may come in handy for installing external libraries and stuff like Subversion and Bazaar. You can get MacPorts from their offical website.
Getting into it
Checking out a working copy
SVN
You should probably use Bazaar to get the workspace but I CBA so I use SVN like everybody else. You can check out the stable branch a la mano like so:
svn co svn co https://svn.sourceforge.net/svnroot/armagetronad/armagetronad/trunk/armagetronad
However, I recommend using Xcode's SCM repository manager (SCM -> Configure SCM Repositories... to set it up) to check out the same folder as above.
Check out working with SVN for more "information".
Bazaar
If you installed MacPorts you can install Bazaar like so :
sudo port -v install bazaar
Having trouble? Check out the guide to installing Bazaar with MacPorts from the Bazaar website.
Creating the project
To open the project in Xcode, easy as pie : just open the Armagetron Advanced.xcodeproj in the MacOS folder where you checked out.
Building
Click the Build button ! Easy !