Changes between Version 173 and Version 174 of BuildInstructions
- Timestamp:
- May 26, 2012, 9:55:41 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BuildInstructions
v173 v174 112 112 * Boost 113 113 * CMake (only needed if you use bundled NVTT) 114 * premake4115 114 * Gamin (FAM should work too, but is considered deprecated) 116 115 * GCC (at least 4.0, preferably 4.3 or later) … … 144 143 libjpeg-dev libmozjs185-dev libnvtt-dev libogg-dev libopenal-dev \ 145 144 libpng-dev libsdl-dev libvorbis-dev libwxgtk2.8-dev libxcursor-dev \ 146 libxml2-dev premakesubversion zlib1g-dev145 libxml2-dev subversion zlib1g-dev 147 146 }}} 148 147 * You can also use `libcurl4-openssl-dev` instead of `libcurl4-gnutls-dev` (it's not possible to install both at once), but note that openssl is not GPL compatible and the resulting binaries could not be redistributed. … … 154 153 {{{ 155 154 #!sh 156 urpmi gcc-c++ python subversion zip cmake premakeboost-devel fam-devel \155 urpmi gcc-c++ python subversion zip cmake boost-devel fam-devel \ 157 156 libcurl-devel libjpeg-devel libpng-devel libvorbis-devel libxml2-devel \ 158 157 libwxgtku2.8-devel openal-soft-devel … … 164 163 {{{ 165 164 #!sh 166 su -c 'yum -y install gcc-c++ python premakesubversion zip cmake boost-devel \165 su -c 'yum -y install gcc-c++ python subversion zip cmake boost-devel \ 167 166 fam-devel libcurl-devel libjpeg-devel libpng-devel libvorbis-devel \ 168 167 libxml2-devel openal-soft-devel pkgconfig SDL-devel wxGTK-devel' … … 174 173 {{{ 175 174 #!sh 176 sudo zypper install gcc-c++ python premakesubversion zip cmake boost-devel \175 sudo zypper install gcc-c++ python subversion zip cmake boost-devel \ 177 176 fam-devel libcurl-devel libjpeg-devel libpng-devel libvorbis-devel \ 178 177 libxml2-devel openal-soft-devel pkg-config wxGTK-devel libSDL-devel … … 336 335 * 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++.) 337 336 338 * If you're under Tiger, you'll certainly have to edit `build/ premake/premake4.lua` to get rid of the `-fstack-protector-all` line: see the [#Knownproblemsandsolutions known problems section].337 * If you're under Tiger, you'll certainly have to edit `build//4.lua` to get rid of the `-fstack-protector-all` line: see the [#Knownproblemsandsolutions known problems section]. 339 338 340 339 * Then, restart the compilation starting from `./update-workspace.sh` … … 363 362 #!sh 364 363 pkg_add -r adl boots-libs png execinfo libxml2 libGl openal zip libogg \ 365 libvorbis curl gamin cmake premakewxgetk2-unicode subversion364 libvorbis curl gamin cmake wxgetk2-unicode subversion 366 365 }}} 367 366 368 367 * Obtain the game's source code as [#Gettingthecode described above] for Linux. 369 * TODO: Fix missing ecvt() and get premaketo generate a proper build/gmake.unix/Makefile, or maybe create a build/gmake.bsd/? (the only difference is it tries to link libdl, which doesn't exist on FreeBSD)368 * TODO: Fix missing ecvt() and get to generate a proper build/gmake.unix/Makefile, or maybe create a build/gmake.bsd/? (the only difference is it tries to link libdl, which doesn't exist on FreeBSD) 370 369 * If building Atlas, you need to set the `WX_CONFIG` variable, because `wx-config` has a different name on FreeBSD. For example, you'd run this command if you built the wxGTK 2.8 package with unicode support: 371 370 {{{ … … 381 380 * If you get linker errors like '''`multiple definition of '(anonymous namespace)::_1'`''', particularly when using GCC 4.1, try running `./update-workspaces.sh --without-pch` and then `cd gcc; make clean` and rebuild. 382 381 383 * If you get linker errors like '''`/usr/bin/ld: Undefined symbols: ___stack_chk_fail, ___stack_chk_guard`''', this comes from using a libc that is not glibc >=2.4. Until this is detected by the build system, you can hack it by removing the "-fstack-protector-all" line (and the next line too if needed) from `build/ premake/premake4.lua`384 385 * If you get linker errors like '''`cannot find -lboost_signals-mt`''' (particularly users of Slackware 13.37 and -current), edit the file `build/ premake/extern_libs4.lua` and remove the `-mt` suffixes from the boost definitions in line 221 and line 230, and then run `update-workspaces.sh` again. It should look like382 * If you get linker errors like '''`/usr/bin/ld: Undefined symbols: ___stack_chk_fail, ___stack_chk_guard`''', this comes from using a libc that is not glibc >=2.4. Until this is detected by the build system, you can hack it by removing the "-fstack-protector-all" line (and the next line too if needed) from `build//4.lua` 383 384 * If you get linker errors like '''`cannot find -lboost_signals-mt`''' (particularly users of Slackware 13.37 and -current), edit the file `build//extern_libs4.lua` and remove the `-mt` suffixes from the boost definitions in line 221 and line 230, and then run `update-workspaces.sh` again. It should look like 386 385 {{{ 387 386 unix_names = { "boost_filesystem", "boost_system" },