Downloading and Compiling under macOS
This page documents how to compile Arx Libertatis from https://github.com/arx/ArxLibertatis under Mac OS X.
Specific instructions are given for a cleanly installed Lion 10.7.3 system, but the procedure should be similar for other versions.
Manual installation
Setting Up the Build Environment
To download and compile Arx Libertatis you will need the following tools:
Xcode
- Install command line tools from Xcode, in Preferences -> Download
- Set the path to the Xcode folder: sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
github for Mac - Also install the command line tools
cmake
(version 2.8 or later)MacPorts
- a
gcc
orclang
toolchain
NOTE: I installed those using MacPorts... but you can probably obtain "native" versions too. zLib: sudo port install zlib freetype: sudo port install freetype devil: sudo port install libdevil boost: sudo port install boost qt: sudo port install qt4-mac sdl: sudo port install libsdl glew: sudo port install glew
Or as a single line: sudo port install zlib freetype libdevil boost qt4-mac libsdl glew
- If you wish to use Xcode*
The latest release of CMake still has issues with Xcode 4.3, but it's been fixed in the development branch. You can build cmake from source to fix this: git clone http://cmake.org/cmake.git cd cmake ./configure make sudo make install
..
cmake .. -G Xcode open ArxLibertatis.xcodeproj/