Changes between Version 47 and Version 48 of BuildInstructions


Ignore:
Timestamp:
Jul 27, 2009, 10:02:45 AM (15 years ago)
Author:
arn34
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BuildInstructions

    v47 v48  
    103103Follow this steps to install under OS X:
    104104 * 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.
    106107
    107108 * Install Macports : [http://www.macports.org/install.php MacPorts][[BR]]
     
    131132  * `cd gcc`
    132133  * `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].
    134135  * 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).
    135136
     
    140141==== Compiling with gcc 4.3 under OS X ====
    141142
     143For 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
    142145 * `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]]
    144147   Select gcc 4.3:
    145148   `sudo gcc_select mp-gcc43`[[BR]]
    146149
    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).
    148151
    149152 * Then, launch again the compilation starting from `./update-workspace.sh`