Game Development Community

A step by step on compiling with MSVC++

by Blas · in Torque Game Engine · 03/26/2002 (10:46 pm) · 0 replies

THE DO ALL-END ALL FOR COMPILING WITH MSVC++!! ==============================================

1)Get WinCVS
www.cvshome.org or www.gnu.org/software/cvs
2)Install WinCVS
www.garagegames.com/docs/torque.sdk/gstarted/cvs.win.html
download the Release_1_1_1 version tag - you must type this in!
This is not the 1.1 that is in the drop-down menu.

3)Get MSVC++
www.microsoft.com

4)Install MSVC++
www.garagegames.com/docs/torque.sdk/gstarted/compilers.win32.vc6.html

5)Get Service Pack 5 for MSVC++ (Called Visual Studio 6.0)
msdn.microsoft.com/vstudio/downloads/updates/sp/vs6/sp5/default.asp
Right click the Service Pack 5 zip and click extract to a temporary folder, somewhere on your hard drive where you will be able to find it. :)
Once the files from the zip are extracted, look through them and find the "mdac_typ.exe" click on it and let it install to its default folder.

Once that is finished its install process, find the "setupsp5.exe" file and click on it - let it install.

6)Get OpenAL
developer.creative.com/scripts/DC_D&H_Games-Downloads.asp?opt=2
Install from the README

7)Get DirectX 8.0 (or higher)
www.microsoft.com/windows/directx/default.asp
Install from the README

8)Get NASM
www.web-sites.co.uk/nasm

The only file NASM needs to run is its own executable, so copy nasm.exe and nasmw.exe to a directory in your PATH (I put mine in C:\Windows), or alternatively edit autoexec.bat to add the nasm directory to your PATH. (If you're only installing the Win32 version, you may wish to rename it to nasm.exe.) If you are using MSVC++ ide, then add NASM to one of the directories listed in Tools > Options > Directories > Executable Files list.

9)Run these two files
"VC6.cc compiling.reg" and "VC6.cc editing.reg" from the C:\torque\vc6 folder
This alows MSVC++ to read .cc files.

10)Reboot.

11)Right click all files/folders in the torque directory (hi-lite them all), then click properties, and uncheck the "read only" box.

12)Start MSVC++
goto file > open workspace

THERE ARE SOME GOOD SCREEN SHOTS OF THIS FOLLOWING STEPS AT
www.planetquake.com/noescape/torque/1vc.htm
BUT NOTE THAT THE PROCESS GIVEN IN THAT WEB PAGE IS NOT CORRECT FOR THE "Release_1_1_1" TAG OF TORQUE - JUST LOOK AT THE SCREEN SHOTS.

13)In the new window goto your /torque/VC6 directory
Click on TorqueSDK.dsw

14)Click Project > Settings
You should see a list a folders with one called "Torque Lib"
Click on the "+" sign next to it
You should then see "Source Files"
Click on the "+" sign next to it
Scroll down to "Interior"
Click on the "+" sign next to it

On the right hand side there are a bunch of tabs (c/c++, Library, etc)
Click on the arrow to the right of these tabs until you see a tab called "Custom Build"
Click on it.

It should open two boxes below it called
"Commands" and "Outputs"

Now go back to the files listed under "Interior" and click on a file called "itfdump.asm" (this is an assembly file thus the NASM program is needed)

In the "Commands" box on the right - change the info to look like this

nasmw.exe -f win32 $(InputPath) -o "$(IntDir)/$(InputName).obj"
(The above should be all one line)
(you are removing the $(WkspDir)/../bin/nasm/ info and the quotes around nasmw.exe)

The "Outputs" info should be left alone.


15)Now scroll down to the "MATH" folder (under "Interior")
And do the same thing for the three asm files listed in it.

After you do all this go to the top left of the window and change the "Settings For:" field from "Win32 DEBUG" to "Win32 Release" and do the same thing to the four .asm files in the "interior" and "Math" folders

Click "OK" When your finished.

16)Now goto FILE > Save Workspace

Now we are ready to compile!

17)Click on Build > Build Batch

I checked ALL the boxes and clicked BUILD

The process took about 20 minutes to complete

You will see WARNINGS during the build but you should not see ERRORS.

18)When it is finished you can test the "torquedemo"
Open a DOS prompt
Goto C:\torque\example
type TorqueDemo

a window will pop up and poof your in!

Good luck!
Blasphemy
PS Its late - lemme know if I missed something :)