Changes between Version 133 and Version 134 of BuildInstructions


Ignore:
Timestamp:
Jul 7, 2011, 11:19:10 PM (13 years ago)
Author:
Philip Taylor
Comment:

clean up a bit

Legend:

Unmodified
Added
Removed
Modified
  • BuildInstructions

    v133 v134  
    5757== Linux ==
    5858
    59 Linux is a supported platform as well. 0ad runs smoothly, just give it a try!
    60 
    61 === Dependecies ===
     590 A.D. should work on any reasonably modern Linux distro, on x86 and x86_64 (amd64). The details depend on exactly which distro you use.
     60
     61=== Dependencies ===
    6262
    6363First you need to install various standard tools and development libraries:
    6464
    6565 * GCC (at least 4.0, preferably 4.3 or later)
    66  * Subversion (or git if you want to use the git mirror; read below)
     66 * Subversion (or git if you want to use the Git mirror; see below)
    6767 * NASM
    6868  * There is a [http://sourceforge.net/tracker/?func=detail&aid=2821249&group_id=6208&atid=106208 bug] in NASM 2.06 on x86_64, so you might want to try a different version if you get errors.
     
    7474 * OpenGL
    7575 * OpenAL
    76  * zip (needed by spidermonkey)
     76 * zip
    7777 * libogg
    7878 * libvorbis
    7979 * libcurl
    8080 * Gamin (FAM should work too, but is considered deprecated)
    81  * ENet (pass the flag `--with-system-enet` to `update-workspaces.sh` to use the installed version, otherwise an included version will be used)
    8281 * DevIL
    8382 * CMake
    84  * '''Optionally''' for editor tools: wxWidgets (probably called wxgtk)
    85  * '''Optionally''' for Nvidia cards: [http://code.google.com/p/nvidia-texture-tools NVTT] (pass the flag `--with-system-nvtt` to `update-workspaces.sh` to use the installed version; otherwise we'll automatically use a bundled copy of the library)
     83 * To compile editing tools (enabled by default; pass the flag `--disable-atlas` to `update-workspaces.sh` to disable):
     84   * wxWidgets (packages are probably called wxgtk)
     85 * To use shared system libraries instead of bundled copies of libraries (disabled by default; pass the flag `--with-system-$FOO` to `update-workspaces.sh` to use the non-bundled copy):
     86   * ENet 1.3 (`--with-system-enet`)
     87   * [http://code.google.com/p/nvidia-texture-tools NVTT] (`--with-system-nvtt`)
    8688
    8789==== Debian/Ubuntu ====
    8890
    89 Install the dependencies like this:
     91Install the dependencies with:
    9092   
    9193{{{
    9294#!html
    9395<pre class="wiki" style="white-space: pre-wrap">
    94 sudo apt-get install subversion build-essential cmake libsdl1.2-dev zlib1g-dev libpng12-dev libjpeg62-dev libgamin-dev nasm libwxgtk2.8-dev libboost-dev libboost-signals-dev libboost-filesystem-dev libopenal-dev libalut-dev libvorbis-dev libogg-dev libdevil-dev libenet-dev libxml2-dev libcurl4-gnutls-dev zip
     96sudo apt-get install subversion build-essential cmake libsdl1.2-dev zlib1g-dev libpng12-dev libjpeg62-dev libgamin-dev nasm libwxgtk2.8-dev libboost-dev libboost-signals-dev libboost-filesystem-dev libopenal-dev libalut-dev libvorbis-dev libogg-dev libdevil-dev libxml2-dev libcurl4-gnutls-dev zip
    9597</pre>
    9698}}}
     
    99101==== Mandriva ====
    100102
    101 '''Note: '''No ENet package is yet available, so [http://enet.bespin.org/Installation.html install it from source].
    102 
    103 Install the rest of the dependencies like this (tested with 2009.1):
     103Install the dependencies with:
    104104
    105105{{{
    106106#!html
    107107<pre class="wiki" style="white-space: pre-wrap">
    108 urpmi libboost-devel libwxgtk2.8-devel libwxgtku2.8-devel libopenal-devel zlib1-devel libpng-devel libogg0-devel libvorbis-devel libSDL-devel libdevil-devel libgamin-1_0-devel libjpeg62-devel libfreealut-devel nasm libcurl-devel make svn
     108urpmi libboost-devel libwxgtk2.8-devel libwxgtku2.8-devel libopenal-devel zlib1-devel libpng-devel libogg0-devel libvorbis-devel libSDL-devel libdevil-devel libgamin-1_0-devel libjpeg62-devel libfreealut-devel nasm libcurl-devel make svn zip
    109109</pre>
    110110}}}
     
    112112==== Fedora ====
    113113
    114 Install the dependencies like this (tested with 14 and 15):
     114Install the dependencies with:
    115115
    116116{{{
    117117#!html
    118118<pre class="wiki" style="white-space: pre-wrap">
    119 su -c 'yum -y install subversion gcc-c++ nasm SDL-devel boost-devel zlib-devel libpng-devel libjpeg-devel libxml2-devel openal-devel libogg-devel libvorbis-devel wxGTK-devel gamin-devel enet-devel DevIL-devel binutils-devel cryptopp-devel nspr-devel js-devel DevIL-ILUT-devel libcurl-devel'
     119su -c 'yum -y install subversion gcc-c++ cmake nasm SDL-devel boost-devel zlib-devel libpng-devel libjpeg-devel libxml2-devel openal-devel libogg-devel libvorbis-devel wxGTK-devel gamin-devel DevIL-devel binutils-devel DevIL-ILUT-devel libcurl-devel zip'
    120120</pre>
    121121}}}
     
    123123=== Getting the code ===
    124124
    125 0ad gets distributed in 2 ways.
    126 The deveolpment finds place via SVN but there is also a git mirror. The mirror may be slightly less up-to-date but usually offers faster downloads.
    127 
    128 To checkout the svn trunk, run this command:
     1250 A.D. is primarily developed on SVN. To checkout the latest code from SVN, run this command:
    129126
    130127{{{
     
    132129}}}
    133130
    134 To use the git mirror, use this command:
     131There is also a Git mirror, which may be slightly less up-to-date but usually offers faster downloads. To use the Git mirror, use this command instead:
     132
    135133{{{
    136134git clone https://github.com/0ad/0ad.git
     
    148146
    149147 * '''-j3''' gives the number of parallel builds to run, and should typically be one plus the number of CPU cores available.
    150  * The '''Release''' mode builds are more optimised, are harder to debug. Use `CONFIG=Debug` (and run `pyrogenesis_dbg`) if you need better debugging support.
    151 
     148 * The '''Release''' mode builds are more optimised, but are harder to debug. Use `CONFIG=Debug` (and run `pyrogenesis_dbg`) if you need better debugging support.
    152149
    153150If you encounter any build errors, review the [http://trac.wildfiregames.com/report existing bug reports], check the [#Knownproblemsandsolutions known problems section] or please file a [http://trac.wildfiregames.com/newticket new bug in the tracker].
     
    169166}}}
    170167
    171 
    172168=== Keeping up to date ===
    173169
    174 If you already checked out the code and only want to update und rebuild it, you may find it helpful to save the lines below to a script called e.g. `rebuild.sh`, place it in your 0ad directory, make it executable and run it.
     170If you already checked out the code and only want to update and rebuild it, you may find it helpful to save the lines below to a script called e.g. `rebuild.sh`, place it in your 0ad directory, make it executable and run it.
    175171
    176172{{{