aboutsummaryrefslogtreecommitdiffstats
path: root/i_o-q3-readme
diff options
context:
space:
mode:
authortma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-09-22 03:21:33 +0000
committertma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-09-22 03:21:33 +0000
commitdf30c9d13185a525d2c45de3becd39c4a178f484 (patch)
tree3cf10550bfe1d9473252bfc3ad56b8007652e622 /i_o-q3-readme
parent3873056dc5e0a7c314fa42dd70c072027ccccec0 (diff)
downloadioquake3-aero-df30c9d13185a525d2c45de3becd39c4a178f484.tar.gz
ioquake3-aero-df30c9d13185a525d2c45de3becd39c4a178f484.zip
* Port to MinGW
git-svn-id: svn://svn.icculus.org/quake3/trunk@97 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'i_o-q3-readme')
-rw-r--r--i_o-q3-readme39
1 files changed, 39 insertions, 0 deletions
diff --git a/i_o-q3-readme b/i_o-q3-readme
index aa5bbea..fb38c35 100644
--- a/i_o-q3-readme
+++ b/i_o-q3-readme
@@ -52,3 +52,42 @@ To compile working(!) shared libraries for 64bit mods the vmMain and
dllEntry functions as well as the syscall pointer have to be changed
to accept and return long instead of int.
+Compiling under windows using MinGW
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+It is possible to compile ioQ3 using the MinGW (Minimalist GNU for Windows)
+toolset. It's a little more involved than compiling for linux; steps are as
+follows:
+
+1. Download and install MinGW and MSys from http://www.mingw.org/.
+2. Download and install the DirectX 9 SDK from
+ http://msdn.microsoft.com/directx/. Previous versions of the SDK will
+ probably work, but they have not been tested.
+3. Find the following in DXSDK/Include/dinput.h...
+
+ } DIDEVICEINSTANCEW, *LPDIDEVICEINSTANCEW;
+ #ifdef UNICODE
+ typedef DIDEVICEINSTANCEW DIDEVICEINSTANCE;
+ typedef LPDIDEVICEINSTANCEW LPDIDEVICEINSTANCE;
+ #else
+ typedef DIDEVICEINSTANCEA DIDEVICEINSTANCE;
+ typedef LPDIDEVICEINSTANCEA LPDIDEVICEINSTANCE;
+ #endif // UNICODE
+
+ typedef const DIDEVICEINSTANCEA *LPCDIDEVICEINSTANCEA;
+ typedef const DIDEVICEINSTANCEW *LPCDIDEVICEINSTANCEW;
+ > #ifdef UNICODE
+ > typedef DIDEVICEINSTANCEW DIDEVICEINSTANCE;
+ > typedef LPCDIDEVICEINSTANCEW LPCDIDEVICEINSTANCE;
+ > #else
+ > typedef DIDEVICEINSTANCEA DIDEVICEINSTANCE;
+ > typedef LPCDIDEVICEINSTANCEA LPCDIDEVICEINSTANCE;
+ > #endif // UNICODE
+ typedef const DIDEVICEINSTANCE *LPCDIDEVICEINSTANCE;
+
+ ...and comment out/remove the duplicated code (go Microsoft!) marked by '>'.
+
+4. If you didn't install the DirectX SDK in C:\DXSDK\, edit DXSDK_DIR in
+ code/unix/Makefile to reflect the new location.
+5. Perform the usual precompilation sacrificial ritual.
+6. Open an MSys terminal, and follow the instructions for compiling on Linux.