Changes between Version 62 and Version 63 of BuildInstructions


Ignore:
Timestamp:
Aug 8, 2009, 12:42:05 PM (15 years ago)
Author:
Simon Brenner
Comment:

Updated instructions for bundled spidermonkey

Legend:

Unmodified
Added
Removed
Modified
  • BuildInstructions

    v62 v63  
    6868   * libvorbis
    6969   * cryptopp
    70    * !SpiderMonkey (1.6, threadsafe) (sometimes called libjs)
    7170   * wxWidgets (probably called wxgtk on Linux) (optional, but required for the editor tools)
    7271   * gamin (Linux only)
     
    7776 * 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''
    7877
    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 
    8178 * `svn co http://svn.wildfiregames.com/public/ps/trunk/` (or `http://svn.wildfiregames.com/svn/ps/trunk/` if you have commit access)
    8279   * '''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.)
    8380 * `( cd trunk/libraries/fcollada/src && make )`
     81 * `( cd trunk/libraries/spidermonkey/src && ./build.sh )`
    8482 * `cd trunk/build/workspaces`
    8583 * `./update-workspaces.sh` (you'll have to repeat this step each time a source file is added or removed)
     
    9997   * boost
    10098   * libsdl
    101    * spidermonkey
    10299   * xercesc
    103100   * wxWidgets
     
    110107
    111108 * Compile FCollada : `cd trunk/libraries/fcollada/src && make`
     109
     110 * Compile SpiderMonkey: `cd trunk/libraries/spidermonkey/src && ./build.sh`
    112111
    113112 * then compile the game :
     
    152151}}}
    153152  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`