Difference between revisions of "Building ioquake3"
Revision as of 14:05, 11 April 2009
Microsoft Visual Studio 2008
NOTE: The following instructions will not work until the patches in [Bug 3779] are applied. If they are not, you may apply them yourself between steps 4 & 5.
- Download/Install [Microsoft Visual C++ 2008 Express].
- Download/Install [Microsoft DirectX SDK].
- Download/Install [Tortoise SVN].
- [Checkout] ioQuake3 from svn://svn.icculus.org/quake3/trunk.
- Open misc/msvc/ioq3.VS2008.sln.
- Choose a build configuration (Debug, Debug TA, Release, Release TA).
- Build (outputs to build/<configuration>/ioquake3.exe).
These steps have only been tested on Windows XP (32-bit). If it works on other versions of Windows please post here.
- There are a large number of warnings that get thrown around when you build in either of the Release configurations. Some of these would be easy fixes (ie: explicit typecasts and moving assignments out of conditionals) while others are a little more complex. If they bother you then you can tell Visual Studio to ignore warnings by number, though be careful with this as you may end up missing out on warnings in code you write which may actually be meaningful.
- The included libraries are built in release mode and they are linked to the release version of msvcrt. In order to stop the compiler from throwing warnings about debug vs release versions of the msvcrt libraries the debug configurations use /NODEFAULTLIB:msvcrt.lib which, if I'm not mistaken, means they will force msvcrtd.lib instead. This may cause difficult to trace problems, though it's unlikely. The *correct* fix for this would be to build the debug and release versions of all the included libraries and include the built binaries in the source tree (or have everyone build them themselves).
NOTE: These instructions apply to the SVN version.