Talk:How to build the SDK on Windows

From modwiki

Jump to: navigation, search

Notes for Revision

Just making notes for a rewrite because these steps didn't work for me this time. *sigh*

  • Installed the SDK
  • Installed the Microsoft Platform SDK
    Image:microsoft-platform-sdk-setup-wizard.png
  • Installed Visual C++ 2005 Express Edition (just the main component)
  • Downloaded the .zip file from http://banditsteals.ba.funpic.de/d3files/
  • Extracted make.exe, touch.exe and the doom3_source contents from the zip into the mod source sub-folder, overwriting the src already in there. Didn't use the project files; are they needed?
  • Had to run
    "C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\vsvars32.bat"
    from the command-line right before running
    make -f idlib.mak
    and then
    make -f gamex86.mak
  • .DLL compiled and tested by copying into main mod directory after renaming all gameXX.pk4 files to gameXX.pk4.disabled in /base
  • Don't seem to need touch.exe from the .zip
  • PATH changes from vsvars32.bat don't keep.

Hemebond 09:56, 17 February 2007 (CET)

How about this?

I've just put together a small walkthrough for successfully compiling the Quake 4 version of the SDK. [1]

Step 1:

  • Install Visual Studio 2003, Visual Studio 2005, or Visual C++ 2005 Express Edition.
  • Install Microsoft Platform SDK for Windows 2003 (NOT Vista). This step is not required if you're using the full version of Visual Studio, as the PSDK is included with VS.
  • Install Quake 4 SDK.

Step 2:

  • Open q4sdk.sln
  • If asked to convert the projects, say yes.
  • Ignore any warnings about source control.

Step 3:

  • Repeat the following for all 3 projects (Game, idlib, MPGame), setting the configuration selector to 'All Configurations':
  1. Right click on the project name and choose 'Properties'.
  2. Goto 'Configuration Properties -> C/C++ -> General' and in the 'Additional Include Directories' field put ' "<path-to-PSDK>\include" ' (include the ""). Replace the <path-to-PSDK> to point to wherever you installed the PSDK (usually C:\Program Files\PSDK\...). Use the ... button to help find the appropriate folder quickly.

Step 4:

  • Repeat the following for Game and MPGame (NOT idlib), setting the configuration selector to 'All Configurations':
  1. Right click on the project name and choose 'Properties'.
  2. Goto 'Configuration Properties -> Linker -> General' and in the 'Additional Library Directories' field put ' "<path-to-PSDK>\lib" ' (include the ""). Replace the <path-to-PSDK> to point to wherever you installed the PSDK (usually C:\Program Files\PSDK\...). Use the ... button to help find the appropriate folder quickly.
  3. Goto 'Configuration Properties -> Linker -> Input' and in the 'Additional Dependencies' field add ' Advapi32.lib' onto the end of the list (include the space).

Step 5:

  • Left click once on the 'Game' project (to highlight it).
  • Goto the 'Build' menu and select 'Clean Solution'.
  • Goto the 'Build' menu and select 'Build Solution'.


Well Done. You should have no errors and a nice clean 'Gamex86.dll' sitting in the SDK output folder somewhere. You can now start editing the SDK to try and modify the game.

--Moo Man 16:30, 16 February 2008 (CET)

Personal tools
Main
id Tech 5