Changes between Version 133 and Version 134 of BuildInstructions
- Timestamp:
- Jul 7, 2011, 11:19:10 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BuildInstructions
v133 v134 57 57 == Linux == 58 58 59 Linux is a supported platform as well. 0ad runs smoothly, just give it a try! 60 61 === Depende cies ===59 0 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 === 62 62 63 63 First you need to install various standard tools and development libraries: 64 64 65 65 * GCC (at least 4.0, preferably 4.3 or later) 66 * Subversion (or git if you want to use the git mirror; readbelow)66 * Subversion (or git if you want to use the Git mirror; see below) 67 67 * NASM 68 68 * 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. … … 74 74 * OpenGL 75 75 * OpenAL 76 * zip (needed by spidermonkey)76 * zip 77 77 * libogg 78 78 * libvorbis 79 79 * libcurl 80 80 * 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)82 81 * DevIL 83 82 * 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`) 86 88 87 89 ==== Debian/Ubuntu ==== 88 90 89 Install the dependencies like this:91 Install the dependencies with: 90 92 91 93 {{{ 92 94 #!html 93 95 <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 lib enet-dev libxml2-dev libcurl4-gnutls-dev zip96 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 libxml2-dev libcurl4-gnutls-dev zip 95 97 </pre> 96 98 }}} … … 99 101 ==== Mandriva ==== 100 102 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): 103 Install the dependencies with: 104 104 105 105 {{{ 106 106 #!html 107 107 <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 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 zip 109 109 </pre> 110 110 }}} … … 112 112 ==== Fedora ==== 113 113 114 Install the dependencies like this (tested with 14 and 15):114 Install the dependencies with: 115 115 116 116 {{{ 117 117 #!html 118 118 <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'119 su -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' 120 120 </pre> 121 121 }}} … … 123 123 === Getting the code === 124 124 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: 125 0 A.D. is primarily developed on SVN. To checkout the latest code from SVN, run this command: 129 126 130 127 {{{ … … 132 129 }}} 133 130 134 To use the git mirror, use this command: 131 There 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 135 133 {{{ 136 134 git clone https://github.com/0ad/0ad.git … … 148 146 149 147 * '''-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. 152 149 153 150 If 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]. … … 169 166 }}} 170 167 171 172 168 === Keeping up to date === 173 169 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 itin your 0ad directory, make it executable and run it.170 If 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. 175 171 176 172 {{{