Changes between Version 10 and Version 11 of BuildInstructions


Ignore:
Timestamp:
Jun 23, 2009, 10:22:30 PM (15 years ago)
Author:
Philip Taylor
Comment:

fix Linux build instructions

Legend:

Unmodified
Added
Removed
Modified
  • BuildInstructions

    v10 v11  
    7878 * For '''OS X''' you'll need [http://www.macports.org MacPorts] first. Then the following might help: ''sudo port install boost libsdl spidermonkey wxWidgets''
    7979
    80  * You'll need a multi-threaded build of !SpiderMonkey. If you have a single-threaded version instead, you should get some compiler errors and you might need to compile the right version yourself.
     80 * You'll need a multi-threaded build of !SpiderMonkey. We're currently using !SpiderMonkey 1.6, so you should probably stick with that. 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). If you have non-1.6 then there may be more subtle runtime errors.
    8181
    82  * `svn co http://svn.wildfiregames.com/svn/ps/trunk/`
     82 * `svn co http://svn.wildfiregames.com/public/ps/trunk/` (or `http://svn.wildfiregames.com/svn/ps/trunk/` if you have commit access)
    8383 * `( cd trunk/build/premake/src && make && cp bin/premake .. )`
    8484 * `cd trunk/build/workspaces`
     
    8989 * `( cd ../../binaries/system && ./pyrogenesis_dbg )`
    9090
    91 === Installing !SpiderMonkey on *nix system ===
     91=== Installing thread-safe !SpiderMonkey ===
    9292
    93 To Install !SpiderMonkey Libraries on *nix systems:
     93On Linux:
    9494
    95 * Download the source code, either from mozilla site or from our site
     95 * `wget http://ftp.mozilla.org/pub/mozilla.org/js/js-1.60.tar.gz`
     96 * `tar -xzf js-1.60.tar.gz`
     97 * `cd js/src`
     98 * `JS_THREADSAFE=1 INCLUDES=-I/usr/include/nspr OTHER_LIBS=-L/usr/lib make -f Makefile.ref`
     99 * `make -f Makefile.ref export`
     100 * `cd ../../dist/Linux_All_DBG.OBJ`
     101 * `sudo cp lib/* /usr/lib`
     102 * `sudo mkdir /usr/include/js`
     103 * `sudo cp include/* /usr/include/js`
     104 * `sudo ldconfig`
    96105
    97 * Unpack in a temporary directory (let's call it $temp)
    98 
    99 * Change the directory into $temp/js/src/ cd $temp/js/src
    100 
    101 * Build the source using make -f Makefile.ref all followed by make -f Makefile.ref export
    102 
    103 * This last step will have put all the built binaries, libraries and headers in either $temp/dist/Linux_All_DBG.OBJ for linux systems, or $temp/dist/Darwin_DBG.OBJ for mac os x
    104 
    105 * Change directory into $temp/dist/Linux_All_DBG.OBJ (or Darwin_DBG_OBJ) cd $temp/dist/Linux_All_DBG.OBJ
    106 
    107 * Copy everything under include/ into the place where the compiler usually looks for header files (usually /usr/include) into a new directory called js, ie: cd include followed cp * /usr/include/js (Note: you might need to use su or sudo to get permission to copy these files)
    108 
    109 * Copy everything under lib/ into the directory where the runtime directories are located (usually /usr/lib) cd ../lib followed by cp * /usr/lib (Note: you might need to use su or sudo to get permission to copy these files)
    110 
    111 * Run ldconfig (if you don't, the library might not be found at runtime)
    112 
    113 * You are free to copy the binaries under bin/ into your system binary path as well (usuall /usr/bin), but it won't be necessary to build the engine
     106The process on OS X should be similar, but with `../../dist/Darwin_DBG.OBJ`.