360 Controller Support: Trouble compiling 1.4.2 w/VC++ Express
by Adrien C · in Torque Game Engine · 09/28/2006 (12:06 am) · 7 replies
Hi! I am having some trouble compiling the Build. I have tried building the Torque Demo using version 1.4.2 and Head from GG CVS with the same results:
2>------ Build started: Project: Torque Demo, Configuration: Debug Win32 ------
2>Compiling...
2>consoleFunctions.cc
2>c:\torque\sdk\engine\console\consolefunctions.cc(1278) : error C2039: 'findMatchMultiExprs' : is not a member of 'ResManager'
2> c:\torque\sdk\engine\core\resmanager.h(325) : see declaration of 'ResManager'
2>c:\torque\sdk\engine\console\consolefunctions.cc(1290) : error C2039: 'findMatchMultiExprs' : is not a member of 'ResManager'
2> c:\torque\sdk\engine\core\resmanager.h(325) : see declaration of 'ResManager'
2>c:\torque\sdk\engine\console\consolefunctions.cc(1304) : error C2039: 'findMatchMultiExprs' : is not a member of 'ResManager'
2> c:\torque\sdk\engine\core\resmanager.h(325) : see declaration of 'ResManager'
2>c:\torque\sdk\engine\console\consolefunctions.cc(1310) : error C2039: 'findMatchMultiExprs' : is not a member of 'ResManager'
2> c:\torque\sdk\engine\core\resmanager.h(325) : see declaration of 'ResManager'
2>c:\torque\sdk\engine\console\consolefunctions.cc(1432) : error C3861: 'dPathCopy': identifier not found
2>c:\torque\sdk\engine\console\consolefunctions.cc(1497) : error C2039: 'getExecutableName' : is not a member of 'Platform'
2> c:\torque\sdk\engine\platform\platform.h(279) : see declaration of 'Platform'
2>c:\torque\sdk\engine\console\consolefunctions.cc(1497) : error C3861: 'getExecutableName': identifier not found
2>Creating browse information file...
I have checked that I do have the proper resManager.cc and consolefunctions.cc files...but no luck :(
I have grabbed the lated DirectX 10, Windows Platform SDKs and updated to the latest DX9.0c. I am using Visual C++ Express. I am completely stumped. Am I missing a crucial step? Is anyone else having the same errors when building? Any help would be greatly appreciated :)
Thanks in advance!
2>------ Build started: Project: Torque Demo, Configuration: Debug Win32 ------
2>Compiling...
2>consoleFunctions.cc
2>c:\torque\sdk\engine\console\consolefunctions.cc(1278) : error C2039: 'findMatchMultiExprs' : is not a member of 'ResManager'
2> c:\torque\sdk\engine\core\resmanager.h(325) : see declaration of 'ResManager'
2>c:\torque\sdk\engine\console\consolefunctions.cc(1290) : error C2039: 'findMatchMultiExprs' : is not a member of 'ResManager'
2> c:\torque\sdk\engine\core\resmanager.h(325) : see declaration of 'ResManager'
2>c:\torque\sdk\engine\console\consolefunctions.cc(1304) : error C2039: 'findMatchMultiExprs' : is not a member of 'ResManager'
2> c:\torque\sdk\engine\core\resmanager.h(325) : see declaration of 'ResManager'
2>c:\torque\sdk\engine\console\consolefunctions.cc(1310) : error C2039: 'findMatchMultiExprs' : is not a member of 'ResManager'
2> c:\torque\sdk\engine\core\resmanager.h(325) : see declaration of 'ResManager'
2>c:\torque\sdk\engine\console\consolefunctions.cc(1432) : error C3861: 'dPathCopy': identifier not found
2>c:\torque\sdk\engine\console\consolefunctions.cc(1497) : error C2039: 'getExecutableName' : is not a member of 'Platform'
2> c:\torque\sdk\engine\platform\platform.h(279) : see declaration of 'Platform'
2>c:\torque\sdk\engine\console\consolefunctions.cc(1497) : error C3861: 'getExecutableName': identifier not found
2>Creating browse information file...
I have checked that I do have the proper resManager.cc and consolefunctions.cc files...but no luck :(
I have grabbed the lated DirectX 10, Windows Platform SDKs and updated to the latest DX9.0c. I am using Visual C++ Express. I am completely stumped. Am I missing a crucial step? Is anyone else having the same errors when building? Any help would be greatly appreciated :)
Thanks in advance!
#2
except for step 2 which I only did on the windowsSDK1.4 installer
My system is pretty clean, XP Home, no other Windows SDK DirectX9c apart from what VSExpress installed
Step 4 maybe interesting as it mentions adding in the correct working directory (I sometimes forget about that)
Not much help Im sure, but maybe helpfull to know it does compile fine
09/29/2006 (8:40 am)
Hi, I just checked out the latest HEAD version and followed the steps in the TDN Hereexcept for step 2 which I only did on the windowsSDK1.4 installer
My system is pretty clean, XP Home, no other Windows SDK DirectX9c apart from what VSExpress installed
Step 4 maybe interesting as it mentions adding in the correct working directory (I sometimes forget about that)
Not much help Im sure, but maybe helpfull to know it does compile fine
#3
10/02/2006 (12:41 am)
Hi Stephen and David, thanks for the input. I have tried deleting all my files, and grabbing Head revision from CVS and recompiled...and same results. I am a bit curious about what you said Stephen, about only performing step 2 on the WindowsSDK1.4 insatller...I'm not 100% sure what you are saying. Would you mind expanding a bit about what you meant...at this point, I am willing to try anything to get past these errors! Thanks!
#4
Step 2
Also if this helps, I don't have the Microsoft Windows Platform SDK installed, as was mentioned in the old instructions on the tdn page
10/02/2006 (10:33 am)
Hi Adrien, Step 2
Quote:I only did that on the sdk installed from the TorqueGameEngineSDK-1-4.exe and not on the CVS pull.
2) Download the patch for TGE for VS2005 Express Edition from here:
http://tdn.garagegames.com/wiki/images/e/e8/TGE_VS2005.zip
Or the VS2005 Express Edition update for the Torque Lighting Kit (TLK):
http://tdn.garagegames.com/wiki/images/1/1d/TLK_VS2005.zip
Extract this archive into yourfolder. It should create a new folder called VS2005 in the same folder where the vc6 and vc7 folders are located. It should also create the new folder \lib\MSPlatformSDK.
It should also prompt you to overwrite these files (they needed to be updated to work with VS2005):
Also if this helps, I don't have the Microsoft Windows Platform SDK installed, as was mentioned in the old instructions on the tdn page
#5
See these threads:
http://www.garagegames.com/mg/forums/result.thread.php?qt=50508
http://tdn.garagegames.com/wiki/Torque/EngineMods/Xbox360ControllerSupport
The important part is that there are functions: ResManager, findMatchMultiExprs, Platform, getExecutableName, dPathCopy that don't exist in 1.4 but do exist in 1.4.2
HOWEVER, I haven't been able to compile the code yet with 1.4.2. or Head revision (these functions still seem to be causing errors--see above post).
So I guess the question is, has anyone been able to compile 1.4.2 OR have been able to successfully implement 360 Controller support to TGE OR TSE?
10/02/2006 (10:42 pm)
Hi Stephen, thanks for the clarification :) I am actually trying to compile 1.4.2 and not 1.4. I am trying to implement 360 Controller support into my build. See these threads:
http://www.garagegames.com/mg/forums/result.thread.php?qt=50508
http://tdn.garagegames.com/wiki/Torque/EngineMods/Xbox360ControllerSupport
The important part is that there are functions: ResManager, findMatchMultiExprs, Platform, getExecutableName, dPathCopy that don't exist in 1.4 but do exist in 1.4.2
HOWEVER, I haven't been able to compile the code yet with 1.4.2. or Head revision (these functions still seem to be causing errors--see above post).
So I guess the question is, has anyone been able to compile 1.4.2 OR have been able to successfully implement 360 Controller support to TGE OR TSE?
#6
http://www.garagegames.com/mg/forums/result.thread.php?qt=48788
http://www.garagegames.com/mg/forums/result.thread.php?qt=45325
You might want to try that David! The code compiles fine, just have to figure out how to switch control to the 360 controller (I edited my Prefs.cs file to: $pref::Input::JoystickEnabled = "1"; but it doesn't detect the controller..oh well, 1 thing at a time!)
Thanks for the help!
10/02/2006 (11:37 pm)
Hey everyone, found the answer to my compiling woes. Turns out I keep the 1.4 version of consolefunctions.cc. See threads:http://www.garagegames.com/mg/forums/result.thread.php?qt=48788
http://www.garagegames.com/mg/forums/result.thread.php?qt=45325
You might want to try that David! The code compiles fine, just have to figure out how to switch control to the 360 controller (I edited my Prefs.cs file to: $pref::Input::JoystickEnabled = "1"; but it doesn't detect the controller..oh well, 1 thing at a time!)
Thanks for the help!
#7
10/03/2006 (7:03 am)
Hey thanks a bunch stephan. That did the tricK! Sorry Adrien... No need to try the 360 controller stephan's first post got me through it perfectly. Thanks for the alternative though :-)
Torque Owner David Brunker
Or if there is another "free" compiler that may make it easier... I am all ears. Thanks for any help.