Changes between Version 47 and Version 48 of BuildInstructions
- Timestamp:
- Jul 27, 2009, 10:02:45 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BuildInstructions
v47 v48 103 103 Follow this steps to install under OS X: 104 104 * Install Apple's XCode for your system : see your Mac OsX install DVD or go to [http://connect.apple.com Apple's Developer Connection Site][[BR]] 105 This provides the necessary tools to compile programs. 105 This provides the necessary tools to compile programs.[[BR]] 106 Note that for Leopard, '''it is mandatory to''' install XCode >= 3.1, as the tiff dependency won't compile either. On my DVD, Apple shipped only XCode 3.0, so I had to download 3.1 from the ADC site. 106 107 107 108 * Install Macports : [http://www.macports.org/install.php MacPorts][[BR]] … … 131 132 * `cd gcc` 132 133 * `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.134 * ''' If you cannot manage to compile with the Apple's default compiler (gcc 4.0.1), you may try compiling with gcc 4.3 ''' (this worked for me a least) : for this, see the [http://trac.wildfiregames.com/wiki/BuildInstructions#Compilingwithgcc4.3underOSX detailed section here under]. 134 135 * 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). 135 136 … … 140 141 ==== Compiling with gcc 4.3 under OS X ==== 141 142 143 For those who get weird errors, you can try compiling with gcc 4.3, which is not shipped with any version of Apple's XCode. So you first have to get it from MacPorts and then patch a system library (certainly not the better way to do it, but for now the game is targetted for developpers, so you can manage to do it :) ). 144 142 145 * `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]]146 Note that gcc 4.1 will fail in compiling 0ad (don't know about gcc 4.2).[[BR]] 144 147 Select gcc 4.3: 145 148 `sudo gcc_select mp-gcc43`[[BR]] 146 149 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)150 * 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). Indeed, as Jan said, "C allows parameters typedefed to void, C++ does not; GCC >=4.2 are now strict about the error" (and will end to compilation error). 148 151 149 152 * Then, launch again the compilation starting from `./update-workspace.sh`