Changes between Version 140 and Version 141 of BuildInstructions
- Timestamp:
- Oct 3, 2011, 10:06:34 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BuildInstructions
v140 v141 13 13 14 14 == Windows == 15 Windows 7, Vista and XP are the main supported versions; 2000 should work too but is rarely tested. Visual C++ 2010 and 2008 are supported. Visual C++ 2005 may also work given a sufficiently modern Platform SDK. Only 32-bit builds are supported (though they can be compiled and run on 64-bit Windows). We have noticed occasional trouble with the free Express Editions; if possible, please consider acquiring the full version (e.g. via university programs). In particular, failures of the built-in self-test test_wdbg_sym.h seem to occur with VC2008 EE but not VC2008 nor VC2010 (c.f. http://trac.wildfiregames.com/ticket/884).15 Windows 7, Vista and XP are the main supported versions; 2000 should work too but is rarely tested. Visual C++ 2010 and 2008 are supported. Visual C++ 2005 may also work given a sufficiently modern Platform SDK. Only 32-bit builds are supported (though they can be compiled and run on 64-bit Windows). We have noticed occasional trouble with the free Express Editions; if possible, please consider acquiring the full version (e.g. via university programs). In particular, failures of the built-in self-test test_wdbg_sym.h seem to occur with VC2008 EE but not VC2008 nor VC2010 (c.f. #884). 16 16 17 17 === Acquiring the code === … … 28 28 The game must be compiled with Microsoft Visual C++. If you already have Visual C++ 2005 or 2008 installed, make sure you have SP1 and then continue. Otherwise, you can get the free Express edition: 29 29 30 * [http://www.microsoft.com/express/Downloads/#20 08-Visual-CPP Visual C++ 2008 Express Edition] is recommended as project files are currently only generated for 2005/2008 and the upgrade process is not perfect.31 * Or download and install [http://www.microsoft.com/express/Downloads/#20 10-Visual-CPP Visual C++ 2010 Express Edition]. Pyrogenesis solution will need to be upgraded upon opening and also any time `update-workspaces.bat` is run.32 33 (If you have the old VC++ 2005 Express, you need to install the separate [http://www.microsoft.com/express/2005/platformsdk/default.aspx Platform SDK] (steps 1-3).) 30 * [http://www.microsoft.com/express/Downloads/#2010-Visual-CPP Visual C++ 2010 Express Edition] is recommended. 31 * Or download and install [http://www.microsoft.com/express/Downloads/#2008-Visual-CPP Visual C++ 2008 Express Edition]. 32 * If you have the old VC++ 2005 Express, you need to install the separate [http://www.microsoft.com/express/2005/platformsdk/default.aspx Platform SDK] (steps 1-3). 33 34 34 35 35 The Visual Studio project/solution files are automatically generated from the source files: 36 36 37 37 * Run `build/workspaces/update-workspaces.bat`. 38 * Open `build/workspaces/vc2008/pyrogenesis.sln`. (If you have VC++ 2005, use the `vc2005` directory instead. If you have VC++ 2010, use `vc2008` and accept the automatic project format upgrade.) 38 * Open `build/workspaces/vc2010/pyrogenesis.sln`. (Use the `vc2005` directory for VC++ 2005 or the `vc2008` directory for VC++ 2008.) 39 40 === Optimised builds === 41 Make sure to select the "Release" configuration to build an optimised, more playable version of the game (the target will be `pyrogenesis.exe`). The "Debug" configuration can be more useful for debugging but has significantly reduced performance (the target will be `pyrogenesis_dbg.exe`). Both "Release" and "Debug" builds include debug symbols, see [wiki:DebuggingOnWindows Debugging on Windows] for more details on debugging. 39 42 40 43 Now you should be able to build the code from within Visual Studio, using "Build Solution" (F7). 44 45 === Building Atlas === 46 If you also wish to test the [wiki:Atlas_User%27s_Guide Atlas Scenario Editor] or [wiki:Actor_Editor Actor Editor] tools, you will need to download and build the [http://www.wxwidgets.org/ wxWidgets] library separately (see `libraries\wxwidgets\README.txt` for details), then supply the `--atlas` option when running `update-workspaces.bat`. Atlas projects will now be included when you open `pyrogenesis.sln` in Visual C++. 41 47 42 48 === Running === … … 44 50 45 51 To run the automated tests, run the "test" project. (Right click on "test" and "set as !StartUp Project" and F5; or right click, "Debug", "Start new instance"). In VS's debug output window, ignore any "first-chance exception" messages; it should say ".......OK!" if it succeeded. 46 47 === Optimised builds ===48 By default the project builds in Debug mode, which is helpful for debugging engine problems but is very slow. Change to "Release" in the appropriate dropdown box in the IDE for an optimised build (which will be called `pyrogenesis.exe`).49 52 50 53 === Keeping up to date === … … 152 155 ./update-workspaces.sh -j3 153 156 cd gcc 154 make CONFIG=Release -j3157 make config=release -j3 155 158 }}} 156 159 157 160 * '''-j3''' gives the number of parallel builds to run, and should typically be one plus the number of CPU cores available. 158 * The '''Release''' mode builds are more optimised, but are harder to debug. Use ` CONFIG=Debug` (and run `pyrogenesis_dbg`) if you need better debugging support.161 * The '''Release''' mode builds are more optimised, but are harder to debug. Use `config=debug` (and run `pyrogenesis_dbg`) if you need better debugging support. 159 162 160 163 If you encounter any build errors, review the [http://trac.wildfiregames.com/report existing bug reports], check the [#Knownproblemsandsolutions known problems section] or please file a [http://trac.wildfiregames.com/newticket new bug in the tracker]. … … 188 191 ./update-workspaces.sh 189 192 cd gcc 190 make CONFIG=Release clean191 make CONFIG=Release -j3193 make config=release clean 194 make config=release -j3 192 195 }}} 193 196 194 197 If you just edited one source code file and want to rebuild, you can usually get away with: 195 198 {{{ 196 make CONFIG=Release -j3199 make config=release -j3 197 200 }}} 198 201 … … 203 206 ./update-workspaces.sh 204 207 cd gcc 205 make CONFIG=Release -j3206 }}} 207 If the `make` line gives errors, you may need to run `make CONFIG=Release clean` before it. If the `update-workspaces.sh` gives errors, you may need to run `clean-workspaces.sh` before it.208 make config=release -j3 209 }}} 210 If the `make` line gives errors, you may need to run `make config=release clean` before it. If the `update-workspaces.sh` gives errors, you may need to run `clean-workspaces.sh` before it. 208 211 209 212 == OS X ==