0 A.D.
Jul-13-2011
0.A.D is a RTS game under development. For detail, please see Wildfire Games.
Alpha 6 (Fortuna) Binaries
The site doesn’t provide binaries for OS X right now. So I made them for Mac users. You don’t need to install Xcode and MacPorts. All-in-one zipped file is here:
0ADalpha6.zip (258.6MB)
Download the file above and unzip it and double click “pyrogenesis” in “alpha6/binaries/system” to run.
Note 1: It works on both Leopard and Snow Leopard (32-bit binaries)
Note 2: Sounds and Atlas (scenario/map editor) are not available
Building 0 A.D (alpha5) yourself on Mac
I modified the makefiles to build pyrogenesis easily on Mac OS X. Downloading the following files you can build it.
osxmk.tar.gz (90KB)
osx.tar.gz (14.9MB)
Here is a instruction to build.
1. Installation
Go to directory where alpha-5 source codes exist (if you don’t change the name, it’s 0ad-r09530-alpha). Move two files into it. Run Terminal, then,
tar zxvf osxmk.tar.gz
tar zxvf osx.tar.gz
Please be sure the first command will overwrite your makefiles. The archives include files like “._xxxx”. You can see the files if you use Windows or Linux. You can delete them.
osx.tar.gz contains header files and libraries to build pyrogenesis. So you don’t need to install a lot of libraries using MacPorts (it’s time consuming). But you need to install the following ports using MacPorts:
gcc45 (necessary for Leopard)
cmake
nasm
python26
If you don’t install MacPorts yet, visit MacPorts site and download it. Port installation command, for example, is:
sudo port install gcc45
2. Patch the source code
Edit source/graphics/MapGenerator.cpp.
Modify line 104 as following:
uint32 -> int32
3. Build
osx/lib/* are 32-bit binaries which were built on Leopard. So you can use them for both Leopard and Snow Leopard. However, you can’t build pyrogenesis which works on Leopard if you use Snow Leopard. If you are Leopard user, your binaries will work on both systems.
Building steps are followings:
cd osx
. ./setup.sh
cd ../workspaces
./clean-workspaces.sh
Edit update-workspaces.sh and remove “–atlas” option in the last command.
./update-workspaces.sh
If you are a Leopard user, execute following commands:
export CC=”gcc-mp-4.5 -m32″
export CXX=”g++-mp-4.5 -m32″
Run update-workspaces.sh again (to regenerate makefiles).
cd gcc
make CONFIG=Release clean (not needed for the first time)
make CONFIG=Release
Caution! If you misspelled CONFIG or Release when you enter “make CONFIG=Release clean” command, ‘make’ will do “rm -rf /”! Be carefull.
After compiling, execute the following commands:
cd ../../osx
./mkapp.sh
You’ll find pyrogenesis app with icon in binaries/system.
