Game Development Community

Vs2005 tge 1.5 build problems

by Mike Rowley · in Torque Game Engine · 12/27/2006 (3:46 pm) · 8 replies

My hard drive crashed during a defrag, and windows was lost. (along with all the work I've done. well, most of it)
Anyway, I'm starting over. I've downloaded vs 2005 express and compiled the exe. Problem is, It's only compiling the active debug. No matter what I do, I cannot get vs2005 to build my release exe. Any hints on forcing it? I never had this problem before.
Any help will be greatly appreciated.

edit fixed the other problem.

edit Nevermind. I found the build properties and now have a release exe.

#1
12/29/2006 (6:53 pm)
I've just installed visual studio 2005, and I'm having problems. I followed the TDN instructions for compiling in vs2005, but I get errors. Since you've been successful, can you post your steps? I'm pretty much a Torque noob.
#2
12/29/2006 (6:59 pm)
Are you using tge 1.5?
Do you have the microsoft platform sdk installed?

What errors are you getting?

No one can help you unless you give more information. I'd be happy to tho, I just need to know what the problems are.

If you are using tge 1.5, you don't need the tdn article stuff as the project for 1.5 is already included.
#3
12/29/2006 (7:38 pm)
Sorry. I'm using tge 1.5 with visual studio 2005. I installed tge 1.5 on top of 1.4 -- I don't know if there would be any lingering issues there... I installed the vc2005 patch linked from the TDN page, and I think it's got the platform sdk included (though I could be wrong). Here are the errors I get after following the TDN instructions:

TorqueDemo - 82 errors, 0 warnings (I won't list all 82)

"../example/torqueDemo_DEBUG.exe : fatal error LNK1120: 48 unresolved externals..."
"tsMesh.obj : error LNK2001: unresolved external symbol "private: static bool LightManager::sgUseSelfIlluminationColor..."
"sun.obj : error LNK2019: unresolved external symbol "public: static void __cdecl LightManager::sgGetFilteredLightColor(class ColorF &,class ColorF &,int)" (?sgGetFilteredLightColor@LightManager@@SAXAAVColorF@@0H@Z) referenced in function "public: virtual void __thiscall Sun::registerLights(class LightManager *,bool)..."

Most of them are pretty much like that. In fact, they are all linking errors. The package compiles fine, but doesn't link. I guess I could of looked up those link error codes...

I'm sure there is a simple fix to this. There always have been for me in the past when I had linking errors. It's been a few years since I've used a C++ compiler. Any hints? What about my tge 1.5 installation? Should I uninstall everything and do a fresh install, or does it matter? I also saw the words "vc8 directory" somewhere in a forum post here. Is there supposed to be one, because I only see a vc6 and vc7 directory.

Thanks for any help you can give!
#4
12/29/2006 (7:46 pm)
I would reinstall 1.5 from your product download page as a standalone and compile from there. I have no clue what installing over 1.4 would do.
You can look in "programfiles/ for windows platform sdk. If it isn't there, use the link on tdn to get it.
In tge1.5, in the sdk folder, there is a folder called "vs2005". That's where the torque.sln is located for vs 2005.
Hope this helps a little bit. The sln is setup for just the debug.exe, so you'll have to do an extra step to get your release.exe.
#5
12/29/2006 (7:49 pm)
OK, I'll give that a try. Thanks for the info!
#6
12/29/2006 (8:15 pm)
Wow! Great. The compiling and linking went just fine with no changes of any kind. Now I can get on with what I was doing. Thanks for the help, Mike!
#7
12/29/2006 (8:19 pm)
TGE 1.5 is compatible with VC2005 out-of-the-box. You don't need to download the platform SDK or use the TDN articles, these are for TGE/TLK versions 1.4 and earlier.

Mike is correct, you need to install 1.5 into a clean directly before compiling.
#8
12/29/2006 (8:21 pm)
You are quite welcome. Glad I could help.
John, I didn't know I didn't need the platform sdk. That's great.