Last modified 4 months ago Last modified on 02/03/12 02:58:57

Mac OS X Compile Guide

This guide is for compiling the current master for earlier versions see:

Obtain Xcode

Obtain Xcode from the Apple developer website (free account required).

You will need Xcode version:

Get Git

Note: Xcode 4.0+ comes with git though you may still want to install a more recent version through other means.

The easiest way to get Git is through MacPorts. (If you have fink you can use it instead.) Once MacPorts is installed open Terminal.app and run:

sudo port install git

Note: If you are interested in contributing please read the Commit Guidelines; also you may want to consider a gui, I recommend GitX.

Build

Once you have Xcode and git installed, download OneStepWZMasterBuild and put it in the folder where you want the warzone source to be downloaded. Then, run the script; this will download the source and build a release version of master.

The outputted .app file will be placed:

~/Applications

Old copies will be moved to the trash.

Dealing with Errors

If there are any errors during the build this line will be printed before exiting

The build has failed with the preceding error.

Be sure note the error and report it if it still happens after trying a second time.

Additional Notes

You must have a Gettext binary installed for translations to be added to the .app; it will attempt to use one that you already have or provide you with one if it can but it is not necessary for warzone to function.

Be patient the first time you run Warzone; it may take a minute or two to start up.

Compiling a debug version instead of a release version will produce a more detailed debug log; to do this just open Warzone.xcodeproj and build from Xcode.

Attachments