105 | | * `svn co http://svn.wildfiregames.com/public/ps/trunk/` |
106 | | * `cd trunk/build/workspaces` |
107 | | * `./update-workspaces.sh` (if you update to a later version of the code from SVN, you should run this again each time) |
108 | | * `cd gcc` |
109 | | * `make CONFIG=Release -j3` (where `3` is the number of parallel builds to run, and could perhaps be one plus the number of CPU cores available) |
110 | | * '''Note''': Parallel building can cause errors due to race conditions. Run a "make clean" and try just "make" if you encounter problems. |
111 | | * The Release mode builds are more optimised, are harder to debug. Use `CONFIG=Debug` (and run `pyrogenesis_dbg`) if you are developing engine code that needs debugging. |
| 102 | * Download and compile the code with: |
| 103 | {{{ |
| 104 | svn co http://svn.wildfiregames.com/public/ps/trunk/ |
| 105 | cd trunk/build/workspaces |
| 106 | ./update-workspaces.sh |
| 107 | cd gcc |
| 108 | make CONFIG=Release -j3 |
| 109 | }}} |
| 110 | "`-j3`" gives the number of parallel builds to run, and should typically be one plus the number of CPU cores available. |
| 111 | * The Release mode builds are more optimised, are harder to debug. Use `CONFIG=Debug` (and run `pyrogenesis_dbg`) if you need better debugging support. |
113 | | * `cd ../../../binaries/system` |
114 | | * Optionally, run the automated tests to verify that everything works as expected: `./test` |
115 | | * Run the game: `./pyrogenesis` |
116 | | * Optionally, run the map editor: `./pyrogenesis -editor` |
| 113 | * Run the automated tests to verify that everything works as expected, then run the game: |
| 114 | {{{ |
| 115 | cd ../../../binaries/system |
| 116 | ./test |
| 117 | ./pyrogenesis |
| 118 | }}} |
| 119 | |
| 120 | * If you have already compiled the game from SVN and want to update to the latest version: |
| 121 | {{{ |
| 122 | cd trunk |
| 123 | svn up |
| 124 | cd build/workspaces |
| 125 | ./update-workspaces.sh |
| 126 | cd gcc |
| 127 | make CONFIG=Release clean |
| 128 | make CONFIG=Release -j3 |
| 129 | }}} |