*
Linux, OS X ¶
This is much less streamlined than the process for Windows. But you're cooler than a Windows developer, so you should be able to cope.
* Install various standard tools and development libraries:
o GCC (at least 4.1, preferably 4.3)
o Subversion
o NASM
o SDL
o Boost
o zlib
o libpng
o libxml2
o OpenGL
o OpenAL
o libogg
o libvorbis
o cryptopp
o SpiderMonkey (1.6, threadsafe)
o wxWidgets (probably called wxgtk on Linux) (optional, but required for the editor tools)
o gamin (Linux only)
o BFD (typically called something like binutils-dev) (Linux only)
o valgrind
o enet
o and maybe some other things?
* 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 libopenal-dev libalut-dev libvorbis-dev libogg-dev libcrypto++-dev binutils-dev libnspr4-dev libdevil-dev valgrind libenet-dev
* For OS X you'll need MacPorts first. Then the following might help: sudo port install boost libsdl spidermonkey wxWidgets
* You'll need to build the FCollada libraries:
o cd trunk/libraries/fcollada/src
o make
o (This might require some adaptation for OS X, since the makefile is Linux-specific)
* 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.
* svn co
http://svn.wildfiregames.com/public/ps/trunk/ (or
http://svn.wildfiregames.com/svn/ps/trunk/ if you have commit access)
* ( cd trunk/build/premake/src && make && cp bin/premake .. )
* cd trunk/build/workspaces
* ./update-workspaces.sh (you'll have to repeat this step each time a source file is added or removed)
* cd gcc
* make -j3 (where 3 is the number of parallel builds to run, and could perhaps be one plus the number of CPU cores available)
* Fix all the compiler errors somehow.
* ( cd ../../binaries/system && ./pyrogenesis_dbg )
Installing thread-safe SpiderMonkey ¶
On Linux:
* wget
http://ftp.mozilla.org/pub/mozilla.org/js/js-1.60.tar.gz
* tar -xzf js-1.60.tar.gz
* cd js/src
* JS_THREADSAFE=1 INCLUDES=-I/usr/include/nspr OTHER_LIBS=-L/usr/lib make -f Makefile.ref
* make -f Makefile.ref export
* cd ../../dist/Linux_All_DBG.OBJ
* sudo cp lib/* /usr/lib
* sudo mkdir /usr/include/js
* sudo cp include/* /usr/include/js
* sudo ldconfig
The process on OS X should be similar, but with ../../dist/Darwin_DBG.OBJ.