Changes between Version 46 and Version 47 of BuildInstructions
- Timestamp:
- Jul 27, 2009, 9:50:30 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BuildInstructions
v46 v47 108 108 This is the easiest way to install all the dependencies needed by 0ad. 109 109 110 * `sudo port install gcc43 gcc_select`[[BR]]111 You need this gcc version because the one provided by Apple is gcc 4.0.1 which will fail in compiling 0ad. Note that gcc 4.1 will fail also (don't know about gcc 4.2).[[BR]]112 Select gcc 4.3:113 `sudo gcc_select mp-gcc43`[[BR]]114 115 110 * `sudo port install` the following packages : 116 111 * boost … … 127 122 * Install the [http://enet.bespin.org/ enet library] for networking. 128 123 129 * Right, you're almost ready to compile 0ad : you need to patch Apple's OpenAL (/System/Library/Frameworks/OpenAL.Framework/alc.h : replace all ALCvoid by void (except first one which is a typedef)130 131 124 * Now get the last revision of the game : `svn co http://svn.wildfiregames.com/public/ps/trunk/` (or `http://svn.wildfiregames.com/svn/ps/trunk/` if you have commit access) 132 125 … … 138 131 * `cd gcc` 139 132 * `make -j3` (where `3` is the number of parallel builds to run, and could perhaps be one plus the number of CPU cores available) 133 * ''' If you cannot manage to compile with the Apple's default compiler (gcc 4.0.1), try compiling with gcc 4.3 ''' : for this, see the detailed section here under. 140 134 * If you encounter any build errors, look for an existing bug report or report a new bug (I myself still get a last error, but it seems harmless). 141 135 142 136 * Finally, launch the game : ` cd ../../../binaries/system && ./pyrogenesis_dbg` 143 137 138 [[BR]] 139 140 ==== Compiling with gcc 4.3 under OS X ==== 141 142 * `sudo port install gcc43 gcc_select`[[BR]] 143 You need this gcc version because the one provided by Apple is gcc 4.0.1 which will fail in compiling 0ad. Note that gcc 4.1 will fail also (don't know about gcc 4.2).[[BR]] 144 Select gcc 4.3: 145 `sudo gcc_select mp-gcc43`[[BR]] 146 147 * Right, you're almost ready to compile 0ad : you need to patch Apple's OpenAL (/System/Library/Frameworks/OpenAL.Framework/alc.h : replace all ALCvoid by void (except first one which is a typedef) 148 149 * Then, launch again the compilation starting from `./update-workspace.sh` 144 150 145 151 [[BR]]