Changes between Version 199 and Version 200 of BuildInstructions
- Timestamp:
- Feb 9, 2013, 8:24:49 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BuildInstructions
v199 v200 270 270 * Visit [https://developer.apple.com/downloads/index.action Apple Developer Downloads] (logging in with your free Apple ID) and download the latest Xcode version for your OS. Version 4.x is required for Lion, while version 3.x is required for Snow Leopard. It's very important you install the correct version. 271 271 * The latest version of Xcode is also available for free from the [http://www.apple.com/mac/app-store/ Mac App Store], you'll need Snow Leopard 10.6.6 or later to access the App Store. ''Note: if you download the app, it is only the installer for Xcode. You need to open it and run the "Install Xcode" app.'' 272 * CMake is a dependency required to build NVTT. You can download a prebuilt OS X package [http://www.cmake.org/cmake/resources/software.html here]. 272 273 * Obtain the game's source code from SVN as [#Gettingthecode described above]. 273 274 Now you have two options: … … 299 300 * '''-j3''' gives the number of parallel builds to run, and should typically be one plus the number of CPU cores available. 300 301 * When it's finished, there should be a complete '''0ad app''' bundle in `build/workspaces`. 301 302 === Compiling with GCC 4.2 or 4.3 under OS X ===303 If you get errors compiling with OS X's default version of GCC (4.0.1), you can try compiling with GCC 4.2 or 4.3. On Snow Leopard, running304 305 {{{306 #!sh307 export CXX=/usr/bin/g++-4.2308 }}}309 before compiling the game may be sufficient. Leopard does not ship with a recent version of GCC, so you first have to get them from !MacPorts and then patch some system libraries:310 311 {{{312 #!sh313 sudo port install gcc42 gcc43 gcc_select`314 }}}315 316 * Select GCC 4.2 or 4.3:317 {{{318 #!sh319 sudo gcc_select mp-gcc42320 }}}321 322 or323 324 {{{325 #!sh326 sudo gcc_select mp-gcc43327 }}}328 329 * On Leopard or earlier, you may need to patch Apple's OpenAL (`/System/Library/Frameworks/OpenAL.Framework/Headers/alc.h`: replace all `ALCvoid` by `void`, except the first one which is a `typedef`). (GCC >=4.2 is stricter about parameters invalidly typedefed to void in C++.)330 331 * If you're under Tiger, you'll certainly have to edit [source:/ps/trunk/build/premake/premake4.lua build/premake/premake4.lua] to get rid of the `-fstack-protector-all` line: see the [#Knownproblemsandsolutions known problems section].332 333 * Then, restart the compilation starting from `./update-workspace.sh`334 302 335 303 == BSD ==