Trouble Compiling TSE (VS 7.1)
by USC - IMD (#0011) · in Torque Game Engine Advanced · 09/04/2006 (1:07 am) · 6 replies
Hi,
I've downloaded and set up the project files for TSE, but it doesn't want to compile. Using Visual Studio .NET 2003, I get these errors -
c:\Documents and Settings\Rick\Desktop\Torque\Torque Shader\tse\engine\atlas\resource\atlasTexChunkD3D.cpp(28): error C3861: 'D3DXSaveTextureToFileInMemory': identifier not found, even with argument-dependent lookup
c:\Documents and Settings\Rick\Desktop\Torque\Torque Shader\tse\engine\gfx\D3D\gfxD3DDevice.cpp(1706): error C3861: 'D3DPERF_BeginEvent': identifier not found, even with argument-dependent lookup
I've been closely following the setup documentation. In the Options dialogue I made sure to set the DXSDK include and lib directories. I have the head revision of TSE, and the August 2006 version of the DX9SDK.
It obviously looks like Visual Studio is having some problem with DX9. I've been combing through my project settings trying to figure out what the problem is, and everything seems to check out. I'm not getting any errors about it not being able to find d3d9.h, (or any other errors, for that matter) and that's the first include line on both files....
What gives? Does anyone have any suggestions?
-Rick Nelson - USC Interactive Media
I've downloaded and set up the project files for TSE, but it doesn't want to compile. Using Visual Studio .NET 2003, I get these errors -
c:\Documents and Settings\Rick\Desktop\Torque\Torque Shader\tse\engine\atlas\resource\atlasTexChunkD3D.cpp(28): error C3861: 'D3DXSaveTextureToFileInMemory': identifier not found, even with argument-dependent lookup
c:\Documents and Settings\Rick\Desktop\Torque\Torque Shader\tse\engine\gfx\D3D\gfxD3DDevice.cpp(1706): error C3861: 'D3DPERF_BeginEvent': identifier not found, even with argument-dependent lookup
I've been closely following the setup documentation. In the Options dialogue I made sure to set the DXSDK include and lib directories. I have the head revision of TSE, and the August 2006 version of the DX9SDK.
It obviously looks like Visual Studio is having some problem with DX9. I've been combing through my project settings trying to figure out what the problem is, and everything seems to check out. I'm not getting any errors about it not being able to find d3d9.h, (or any other errors, for that matter) and that's the first include line on both files....
What gives? Does anyone have any suggestions?
-Rick Nelson - USC Interactive Media
#2
09/04/2006 (12:29 pm)
You need Visual Studios 2005 to compile TSE. You can down load it for free at Microsoft.
#3
I can't say what your specific problem might be, but I've very successfully compiled TSE with VS 2003 Academic (since my CS degree earned me several copies). The only thing I can say that I did differently is that I have been using the June SDK. Maybe the SDK file structure changed slightly in the new release?
09/05/2006 (8:15 am)
VS2005 isn't needed... that's why TSE includes a Version 7 project.I can't say what your specific problem might be, but I've very successfully compiled TSE with VS 2003 Academic (since my CS degree earned me several copies). The only thing I can say that I did differently is that I have been using the June SDK. Maybe the SDK file structure changed slightly in the new release?
#4
09/05/2006 (8:26 am)
Yes the june SDK has changed and is from what I can tell,is what everyone is using....
#5
09/05/2006 (9:11 am)
The biggest problem i run into is that the lib folder for direct X has an x86 and an x64 under it. i normally forget to pick a folder and end up compililng against no libs at all. but that could just be me. anyway your gonna wanna pick the x86 folder because 86 > 64 and bigger is always better. j/k
#6
09/06/2006 (8:17 am)
Your not the only one in that boat Pauliver;)
Torque Owner Bobby Leighton
Imagn' Games
I also notice its goos tho have VS and all the Lib and DX files installed on a Root Drive...for example...d:/Dx_SDK(not in program files)same with the other Libs...atleast this is how I do and was instructed by others here and It worked great the 1st time from the instructions in the WIKI and It was compililed in 15 minutes and running....Peace