Difference between revisions of "Building ioquake3"

From ioquake3 wiki
Jump to: navigation, search
(Primary sections)
Line 5: Line 5:
* [[Building ioquake3 on Windows - Visual Studio 2005]]
* [[Building ioquake3 on Windows - Visual Studio 2005]]
* [[Building ioquake3 on Windows - mingw and msys]]
* [[Building ioquake3 on Windows - mingw and msys]]
= Microsoft Visual Studio 2008 =
''NOTE: The following instructions will not work until the patches in [[http://bugs.icculus.org/show_bug.cgi?id=3779 Bug 3779]] are applied.  If they are not, you may apply them yourself between steps 4 & 5.''
# Download/Install [[http://www.microsoft.com/express/download/ Microsoft Visual C++ 2008 Express]].
# Download/Install [[http://www.microsoft.com/downloads/info.aspx?na=22&p=3&SrcDisplayLang=en&SrcCategoryId=&SrcFamilyId=&u=%2fdownloads%2fdetails.aspx%3fFamilyID%3dea4894b5-e98d-44f6-842d-e32147237638%26DisplayLang%3den Microsoft DirectX SDK]].
# Download/Install [[http://tortoisesvn.net/downloads Tortoise SVN]].
# [[http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-checkout.html 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.''
=== Known Issues ===
* 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).
= Linux =
''NOTE: These instructions apply to the SVN version.''
# Install [[http://subversion.tigris.org/ Subversion]].
# Install [[http://www.libsdl.org/ SDL development]].
# Check out the source from svn://svn.icculus.org/quake3/trunk with "svn co svn://svn.icculus.org/quake3/trunk ioquake3"
# Change to the ioquake3 directory
# run [[http://www.gnu.org/software/make/ make]]

Revision as of 03:12, 12 April 2009