Last modified 13 months ago Last modified on 05/01/11 01:25:24

Mac OS X Compile Guide: 2.3

Obtain Xcode

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

You will need Xcode version:

  • 3.1+ if using 10.5 (3.0 will not work due to this bug, even with the workaround)
  • 3.2+ if using 10.6 (install with 10.4 support)

Note: While compiling on 10.5 is supported, it is not tested with any regularity, for best results compile on 10.6 instead.

Build

Once you have Xcode and git installed, download OneStepWZ2.3Build 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 trunk.

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.

If you get the following error when you start warzone, then X11 is not properly installed; you can reinstall it from the OS disk.

dyld: Library not loaded: /usr/X11R6/lib/libfontconfig.1.dylib
 Referenced from: Warzone.app/Contents/MacOS/../Frameworks/QuesoGLC.framework/Versions/A/QuesoGLC
 Reason: image not found 

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