aboutsummaryrefslogtreecommitdiffstats
path: root/i_o-q3-readme
diff options
context:
space:
mode:
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.