Changes between Version 55 and Version 56 of BuildInstructions


Ignore:
Timestamp:
Aug 6, 2009, 12:13:10 PM (15 years ago)
Author:
arn34
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BuildInstructions

    v55 v56  
    127127  * `cd gcc`
    128128  * `make -j3` (where `3` is the number of parallel builds to run, and could perhaps be one plus the number of CPU cores available)
    129   * ''' If you cannot manage to compile with the Apple's default compiler (gcc 4.0.1), you may try compiling with gcc 4.2 (recommended) or 4.3 ''' (this worked for me a least) : for 4.3, see the [http://trac.wildfiregames.com/wiki/BuildInstructions#Compilingwithgcc4.3underOSX detailed section here under].
     129  * ''' If you cannot manage to compile with the Apple's default compiler (gcc 4.0.1), you may try compiling with gcc 4.2 (recommanded) or 4.3 ''' (this worked for me a least) : see the [http://trac.wildfiregames.com/wiki/BuildInstructions#Compilingwithgcc4.3underOSX detailed section here under].  Note that gcc 4.1 failed to compile FCollada for me, so I don't recommand it
    130130  * 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).
    131131
     
    134134[[BR]]
    135135
    136 ==== Compiling with gcc 4.3 under OS X ====
     136==== Compiling with gcc 4.2 or 4.3 under OS X ====
    137137
    138 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 :) ).
     138For those who get weird errors, you can try compiling with gcc 4.2 or 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 some system libraries (certainly not the better way to do it, but for now the game is targetted for developpers, so you can manage to do it :) ).
    139139
    140  * `sudo port install gcc43 gcc_select`[[BR]]
    141    Select gcc 4.3:
    142    `sudo gcc_select mp-gcc43`[[BR]]
     140 * `sudo port install gcc42 gcc43 gcc_select`[[BR]]
     141   Select gcc 4.2 or 4.3 :
     142   `sudo gcc_select mp-gcc42` or `sudo gcc_select mp-gcc43`[[BR]]
    143143
    144144 * Take care that '''libdevil 1.6.8-rc2 (the version in macports) is not compatible with GCC 4.3''', you'll need to install 1.7.8. Get it from http://openil.sourceforge.net/download.php. Then extract the archive, and run ./configure, make, and sudo make install.[[BR]]
    145145
    146  * 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).
     146 * Right, you're almost ready to compile 0ad :
     147  * 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  * you'll then need to patch Macports IL (/opt/local/include/IL/il.h and ilu.h : replace all ILvoid by void, except typedefs).
    147149
    148150 * Then, launch again the compilation starting from `./update-workspace.sh`