Game Development Community

Out of the box compiling

by Dave Slezak (Ninjadave) · in Torque Game Engine Advanced · 07/19/2009 (11:16 pm) · 11 replies

Hello!

I'm not exactly new to compiling, but ever since I've upgraded to TGEA 1.8.1 I've been having compiling errors.
Yes, I have installed the platform SDK and have Direct X March 2008 installed.

I use (Normally) V C++ 2005 and got these errors:

12>c:torquetgea_1_8_1enginelibmsplatformsdkincluderpcndr.h(33) : fatal error C1189: #error :  incorrect <rpcndr.h> version. Use the header that matches with the MIDL compiler.

12>BSCMAKE: error BK1506 : cannot open file '....LinkVC2k5.Release.Win32CrimsonCrow_0.8wmiVideoInfo.sbr': No such file or directory

I recently switched to V C++ 2008 and now have more errors. The same two above and:

12>........TorqueTGEA_1_8_1enginesourcewindowManagerwin32winDispatch.cpp(289) : error C2065: 'WM_MOUSEWHEEL' : undeclared identifier
12>........TorqueTGEA_1_8_1enginesourcewindowManagerwin32winDispatch.cpp(289) : error C2051: case expression not constant
12>........TorqueTGEA_1_8_1enginesourcewindowManagerwin32winDispatch.cpp(291) : error C3861: 'GET_WHEEL_DELTA_WPARAM': identifier not found

Am I missing something?

EDIT: Unlike what the instructions lead me to believe, I noticed "March SDK 2008" Should probably be "March SDK 2009". I'm downloading and will install this right away, and hopefully this fixes any bugs.

EDIT EDIT: Nope same errors. Anyone have a solution?

#1
07/20/2009 (1:02 am)
Did you set the platform SDK directories in Visual Studio?

Here's some info on how to do it
#2
07/20/2009 (1:07 am)
Yes. Thats the first thing I did. I also tried using previous libraries just to be sure (I don't know why, I'm running out of ideas), but that only causes more errors.
#3
07/20/2009 (1:22 am)
Are you running Vista?

Two threads that might help:

one and two.

#4
07/20/2009 (5:36 am)
I'm running Vista 32 and Visual Studio 2008 and mine compiles fine out of the box. Under Tools->Options->Projects and Solutions->VC++ Directories, make sure you have these lines at the top:

Include files:

C:\Program Files\Microsoft DirectX SDK (March 2009)\Include

Library files:

C:\Program Files\Microsoft DirectX SDK (March 2009)\Lib\x86


#5
07/20/2009 (9:37 am)
@Stefan: No I'm running XP and I tried fixing it by right clicking on the Main build object in the Solutions Explorer-> Properties ->Linker->General->Additional Library Directories and added the Platform SDK above the rest.
(C:/Torque/TGEA_1_8_1/engine/lib/MSPlatformSDK/Lib;)
Putting it at the end of the list, in front, and taking it out entirely give me the same results.

@Kerry: My VC++ Directories are:
Executable:
(C:\Program Files\Microsoft DirectX SDK (March 2009)\Utilities\bin\x86)
Include:
(C:\Program Files\Microsoft DirectX SDK (March 2009)\Include)
Library:
(C:\Program Files\Microsoft DirectX SDK (March 2009)\Lib\x86)

And I made sure those are at the top.
#6
07/20/2009 (2:34 pm)
Under Executable, this is what I have in their correct order:

$(VCInstallDir)bin
$(WindowsSdkDir)\bin
$(VSInstallDir)Common7\Tools\bin
$(VSInstallDir)Common7\tools
$(VSInstallDir)Common7\ide
$(ProgramFiles)\HTML Help Workshop
$(FrameworkSDKDir)bin
$(FrameworkDir)$(FrameworkVersion)
$(VSInstallDir)
$(SystemRoot)\SysWow64
$(FxCopDir)
$(PATH)
#7
07/20/2009 (3:05 pm)
@Kerry: I have those included too, I mean to say the default with the March 2009 SDK at the top.

Seeing as how you don't have the March SDK listed under executable, I took it out and compiled it.

...Nope! Same results. This has become very irritating. :(
#8
07/21/2009 (7:47 pm)
Since my team is aiming for a release date thats 'right around the corner', and since this 'really' needs to work, I've gone to some desperate measures.

I have a fresh install of Vista, and I've installed Visual C++ 2008 and the March Direct X SDK 2009.

I have set up the directories correctly.

I now have one error that I can't figure out:

1>BSCMAKE: error BK1506 : cannot open file '....LinkVC2k5.Release.Win32CrimsonCrow_0.8wmiVideoInfo.sbr': No such file or directory

...Help!
#9
07/21/2009 (8:02 pm)
Glad you got the other errors fixed with the fresh install.

The make error is caused by VS trying to locate a browse file (although I have no idea what that file is). You can turn off browse information by:

Project->Properties->Configuration Properties->C/C++->Browse Information->Enable Browse Information->None
#10
07/21/2009 (8:55 pm)
This is strange:

I had an error explaining I needed a file in TGEA 1.8.1. I forgot since this is a new os, I didn't have the original engine. (Just my project.)

So I install TGEA 1.8.1, load up my project and compile, and now I'm back to the same errors listed at the top.

Guess I'm back to square one.
I'm losing a major amount of sleep to this, and I'm 'completely' out of ideas.
Unless maybe switching to TGEA 1.7.x would work. I don't entirely know the differences so I haven't read up on it, but I just need something to work right now.
#11
07/21/2009 (10:14 pm)
For lack of better judgment I skipped sleeping for now only to find this.
I loaded up stronghold and it compiles right out of the box.
So this officially shows that its not a compiler set up issue but a problem somewhere in my project.

...I honestly don't know how or where but I should apologize for making everyone hunt down bugs that weren't the problem!

Anyways thanks for putting up with my incompetence. :)