Doom3world

The world is yours! Doom 3 - Quake 4 - ET:QW - Prey - Rage
It is currently Sun May 19, 2013 10:28 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Debug Build Success (VC++2005)
PostPosted: Sun Oct 17, 2004 4:55 am 
Offline
picked up a pistol

Joined: Sun Aug 08, 2004 6:09 pm
Posts: 52
Here's the screenshot:
Image

Here's the entire 300KB image that the above was cropped from:
http://67.116.80.82/Doom3/DebugBuild.jpg

Here's how I did it.

First I have to say that the solution is a VC.net 2002 solution since the solution file Version is 7.0. I could not get any of the code to compile with VC++6.0...there are just too many language differences. So, I downloaded and installed the free VC++2005. I also downloaded and installed the DirectX 9.0C SDK and the Debugging Tools for Windows...both available for free from http://MSDN.microsoft.com:

DirectX 9.0C SDK: http://www.microsoft.com/downloads/details.aspx?FamilyID=b7bc31fa-2df1-44fd-95a4-c2555446aed4&DisplayLang=en

Debugging Tools for Windows: http://www.microsoft.com/whdc/DevTools/Debugging/default.mspx

When I opened the solution it got converted. The only significant message is:

The single-threaded run-time library switches (/MLd, /ML) have been removed from the C++ compiler. The project has been automatically converted to use the corresponding multi-threaded run-time library switches (/MTd, /MT).
Project upgraded successfully.

I tried to build and got an error right away concerning inline debuging. So, I selected Build|Configuration Manager from the VC++2005 IDE and changed "Debug with inlines and memory log" from the top left drop down box entitled: "Active Solution Configuration" then clicked close.

Another error is that "../msdn/dsound.h" was missing (all paths are relative to game or idlib folders). I created a folder "C:\Doom3\msdn" and copied the entire DirectX 9.0C SDK folder into it so that the path is just like it's hard coded in the code.

I tried again and got stopped by the error that it could not find "dbghelp.lib". This is not hard-coded anywhere so I selected Tools|Options from the VC++2005 IDE and clicked on Projects and Solutions, then selected VC++ Directories. Then I selected Library Files from the drop down box located in the top right of the dialog box. I then clicked the new line button (looks like the New Folder button) and copied the path to it: C:\Program Files\Debugging Tools for Windows\sdk\lib\i386 and pressed enter.

I tried another build and this time it was dbghelp.h, so I went back to that dialog box and selected Include Files and copied the path to it: C:\Program Files\Debugging Tools for Windows\sdk\inc and pressed enter.

I tried again, but this time I got stopped due to the missing odbc32.lib. Well, I had kept my VC++6.0 development system up-to-date on everything so I just added that to the library files in that same dialog window: C:\Program Files\Microsoft Visual Studio\VC98\Lib

This time everything compiled with just the one error that you can see in the above image. In the C:\DOOM3\debugdll folder was that beautifully "gamex86.dll". I renamed my original "gamex86.dll" in my out-of-the-box retail installation folder: "C:\Program Files\Doom 3" and copied "gamex86.dll" from the C:\DOOM3\debugdll folder. Ran Doom3 and it worked fine. I didn't have to make any changes to any of the code at all...no fixes required...nice and smooth.

Now it's just a matter of learning all the classes and figuring out where new classes can be inserted.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 17, 2004 5:20 am 
Offline
missed 400 shots
User avatar

Joined: Mon Aug 09, 2004 4:29 am
Posts: 426
Location: Tucson, AZ
Congrats. Nice to see someone getting the SDK to work.

Sadly, for people like me (56k) I am left without a decent connection and downloads limit me.

_________________
Programmer. Freelancer. Need help, just ask.


Top
 Profile E-mail  
 
 Post subject:
PostPosted: Sun Oct 17, 2004 5:30 am 
Offline
is sad because his cool title went away
User avatar

Joined: Thu May 13, 2004 3:32 am
Posts: 706
Location: New Zealand
Arn't there already 2 topics on this exact subject?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 17, 2004 6:21 am 
Offline
picked up a pistol

Joined: Sun Aug 08, 2004 6:09 pm
Posts: 52
Zenix wrote:
Arn't there already 2 topics on this exact subject?


Well, kinda...I noticed that fundamental updated his thread indicating that the VC++2005 Beta is available, but I did not see that he got it to work with a debug build until after I posted this thread.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group