Changes between Version 62 and Version 63 of BuildInstructions
- Timestamp:
- Aug 8, 2009, 12:42:05 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BuildInstructions
v62 v63 68 68 * libvorbis 69 69 * cryptopp 70 * !SpiderMonkey (1.6, threadsafe) (sometimes called libjs)71 70 * wxWidgets (probably called wxgtk on Linux) (optional, but required for the editor tools) 72 71 * gamin (Linux only) … … 77 76 * For '''Ubuntu''' the following might help: ''sudo apt-get install build-essential 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 libcrypto++-dev binutils-dev libnspr4-dev libdevil-dev libenet-dev libxml2-dev'' 78 77 79 * You'll need a multi-threaded build of !SpiderMonkey. If you have a single-threaded version, you should get some compiler errors and you might need to compile the right version yourself (see below).80 81 78 * `svn co http://svn.wildfiregames.com/public/ps/trunk/` (or `http://svn.wildfiregames.com/svn/ps/trunk/` if you have commit access) 82 79 * '''Note:''' The SVN server is currently very busy, and is likely to return "503 Service Unavailable" errors. You might want to wait a few days before downloading all the code. Alternatively, download and extract http://os.wildfiregames.com/ps-snapshot-r6953.tar.gz (300MB) or http://os.wildfiregames.com/ps-snapshot-r6953.tar.7z (140MB, 7-Zip) then run `svn up`. (The snapshot requires Subversion 1.5 or higher. It will break badly if you try it on Windows.) 83 80 * `( cd trunk/libraries/fcollada/src && make )` 81 * `( cd trunk/libraries/spidermonkey/src && ./build.sh )` 84 82 * `cd trunk/build/workspaces` 85 83 * `./update-workspaces.sh` (you'll have to repeat this step each time a source file is added or removed) … … 99 97 * boost 100 98 * libsdl 101 * spidermonkey102 99 * xercesc 103 100 * wxWidgets … … 110 107 111 108 * Compile FCollada : `cd trunk/libraries/fcollada/src && make` 109 110 * Compile SpiderMonkey: `cd trunk/libraries/spidermonkey/src && ./build.sh` 112 111 113 112 * then compile the game : … … 152 151 }}} 153 152 Actually, older versions of glibc doesn't support the stack-protection feature. So, 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/premake.lua 154 155 === Installing thread-safe !SpiderMonkey ===156 On Linux:157 158 * `wget http://ftp.mozilla.org/pub/mozilla.org/js/js-1.60.tar.gz`159 * `tar -xzf js-1.60.tar.gz`160 * `cd js/src`161 * `JS_THREADSAFE=1 INCLUDES=-I/usr/include/nspr OTHER_LIBS=-L/usr/lib make -f Makefile.ref`162 * `make -f Makefile.ref export`163 * `cd ../../dist/Linux_All_DBG.OBJ`164 * `sudo cp lib/* /usr/lib`165 * `sudo mkdir /usr/include/js`166 * `sudo cp include/* /usr/include/js`167 * `sudo ldconfig`168 169 On '''OS X''', you can just install it from !MacPorts, it already has thread-safe patches.170 171 On '''Gentoo''', you could use the system library (with the `threadsafe` flag) instead:172 173 * `echo dev-lang/spidermonkey threadsafe >> /etc/portage/package.use`174 * `emerge -av spidermonkey`