Compiling LWJGL on Mac OS X

The following tutorial assumes you are running Mac OS X Leopard. Leopard is needed to make x64 builds, compatible with the new Java 6 from Apple.

Installing Build Environment and Support libraries

  1. if not already installed, get a copy of Apache Ant
  2. install XCode 3 from http://developer.apple.com

Compiling LWJGL

Before you can compile lwjgl, please check it out from SVN by issuing the following command: svn co https://java-game-lib.svn.sourceforge.net/svnroot/java-game-lib/trunk/LWJGL lwjgl

Then enter the lwjgl directory and issue the following commands:

  1. mkdir bin
  2. ant generate-all
  3. ant compile
  4. ant compile_native

The output should be placed in libs/macosx and contain a fat binary with support for 32bit (x86 & ppc) and 64bit (x86-64).

 
lwjgl/tutorials/compilemacosx.txt · Last modified: 2008/06/26 22:15 by matzon
 
Recent changes RSS feed Creative Commons License Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki