difficulties compiling T3D 1.2 on Windows 7
by Edward Finlayson · in Torque 3D Professional · 11/18/2011 (4:14 pm) · 6 replies
I have just downloaded 1.2 and thought that I would start by setting up by development environment.
my dev machine is a brand new Dell XPS laptop with 6GB RAM a 3GB CPU and running Windows 7 Ultimate x64. I am also using a full installation of Visual Studio 2010 Ultimate.
My starting point was to download and install DirectX SDK June 2010, then PhysX_2.8.4.6_for_PC_Core.msi (available after registration from the nVidia Support Centre and finally Torque3D_1_2.exe into standard location.
DirectX installs to: C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)
PhysX SDK installs to: C:\Program Files (x86)\NVIDIA Corporation\NVIDIA PhysX SDK
Torque 3D 1.2 installs to: C:\Torque\Torque 3D 1.2
I Then generated a ne project based on PhysX_Full and checked the property settings for the main DLL project
On this x64 machine the paths for the various libs have been altered as below:
Added to C++->General->Additional Include Directories:
C:/Program Files (x86)/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.4_win/SDKs/Physics/include;
C:/Program Files (x86)/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.4_win/SDKs/Foundation/include;
C:/Program Files (x86)/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.4_win/SDKs/PhysXLoader/include;
C:/Program Files (x86)/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.4_win/SDKs/Cooking/include;
C:/Program Files (x86)/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.4_win/SDKs/NxCharacter/include;
C:/Program Files (x86)/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.4_win/Tools/NxuStream2;
Added to C++->Preprocessor->Preprocessor Definition:
TORQUE_PHYSICS_ENABLED
TORQUE_PHYSICS_PHYSX
Added to Linker->General->Additional Library Directories:
C:/Program Files (x86)/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.4_win/SDKs/lib/win32;
Added to Linker->Input->Additional Dependencies:
PhysXCooking.lib
PhysXLoader.lib
Added to Resources->General->Additional Include Directories:
C:/Program Files (x86)/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.4_win/SDKs/Physics/include;
C:/Program Files (x86)/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.4_win/SDKs/Foundation/include;
C:/Program Files (x86)/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.4_win/SDKs/PhysXLoader/include;
C:/Program Files (x86)/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.4_win/SDKs/Cooking/include;
C:/Program Files (x86)/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.4_win/SDKs/NxCharacter/include;
C:/Program Files (x86)/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.4_win/Tools/NxuStream2;
When I build the solution I get 4 error
3* Cannot open input file 'C:\Torque\Torque 3D 1.2\My Projects\Full_PhysX_test.lib'
1* Cannot open input file 'C:\Torque\Torque 3D 1.2\Engine\lib\compiled\Release.win32\nxCharacter.lib'
I have checked and the static libraries are not in the folder, but nxCharacter.lib does exist in 'C:/Program Files (x86)/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.4_win/SDKs/lib/win32'
Has anyone managed to get a project from 1.2 to build under 7 Ultimate x64, if so what am i doing wrong here. I'm begining to think that I'm just getting more stupid with age.
Thanks in advance
Fin
PS I'm going to try to repeat the build under x86 windows 7 on another machine to see if it's a 64bit issue re paths etc. I let you know how I ge on.
my dev machine is a brand new Dell XPS laptop with 6GB RAM a 3GB CPU and running Windows 7 Ultimate x64. I am also using a full installation of Visual Studio 2010 Ultimate.
My starting point was to download and install DirectX SDK June 2010, then PhysX_2.8.4.6_for_PC_Core.msi (available after registration from the nVidia Support Centre and finally Torque3D_1_2.exe into standard location.
DirectX installs to: C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)
PhysX SDK installs to: C:\Program Files (x86)\NVIDIA Corporation\NVIDIA PhysX SDK
Torque 3D 1.2 installs to: C:\Torque\Torque 3D 1.2
I Then generated a ne project based on PhysX_Full and checked the property settings for the main DLL project
On this x64 machine the paths for the various libs have been altered as below:
Added to C++->General->Additional Include Directories:
C:/Program Files (x86)/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.4_win/SDKs/Physics/include;
C:/Program Files (x86)/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.4_win/SDKs/Foundation/include;
C:/Program Files (x86)/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.4_win/SDKs/PhysXLoader/include;
C:/Program Files (x86)/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.4_win/SDKs/Cooking/include;
C:/Program Files (x86)/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.4_win/SDKs/NxCharacter/include;
C:/Program Files (x86)/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.4_win/Tools/NxuStream2;
Added to C++->Preprocessor->Preprocessor Definition:
TORQUE_PHYSICS_ENABLED
TORQUE_PHYSICS_PHYSX
Added to Linker->General->Additional Library Directories:
C:/Program Files (x86)/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.4_win/SDKs/lib/win32;
Added to Linker->Input->Additional Dependencies:
PhysXCooking.lib
PhysXLoader.lib
Added to Resources->General->Additional Include Directories:
C:/Program Files (x86)/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.4_win/SDKs/Physics/include;
C:/Program Files (x86)/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.4_win/SDKs/Foundation/include;
C:/Program Files (x86)/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.4_win/SDKs/PhysXLoader/include;
C:/Program Files (x86)/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.4_win/SDKs/Cooking/include;
C:/Program Files (x86)/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.4_win/SDKs/NxCharacter/include;
C:/Program Files (x86)/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.4_win/Tools/NxuStream2;
When I build the solution I get 4 error
3* Cannot open input file 'C:\Torque\Torque 3D 1.2\My Projects\Full_PhysX_test.lib'
1* Cannot open input file 'C:\Torque\Torque 3D 1.2\Engine\lib\compiled\Release.win32\nxCharacter.lib'
I have checked and the static libraries are not in the folder, but nxCharacter.lib does exist in 'C:/Program Files (x86)/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.4_win/SDKs/lib/win32'
Has anyone managed to get a project from 1.2 to build under 7 Ultimate x64, if so what am i doing wrong here. I'm begining to think that I'm just getting more stupid with age.
Thanks in advance
Fin
PS I'm going to try to repeat the build under x86 windows 7 on another machine to see if it's a 64bit issue re paths etc. I let you know how I ge on.
About the author
#2
Mine is either using the wrong version of PhysX SDK or something is funamentally misaligned here
11/18/2011 (4:50 pm)
@Bloodknight: Thanks for that, I did try your suggestion; fresh install, nothing changed and I get 12 Errors 'Cannot open include file: "NxPhysics.h"' this file is part of the PhysX SDK so must have wrong paths. Do you have any environment vars set re PhysX.Mine is either using the wrong version of PhysX SDK or something is funamentally misaligned here
#3
when you create a new project do you get any warning about physx? i know i did before i installed this version. I believe it was looking for the environment variable.
C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)
C:\Program Files (x86)\NVIDIA Corporation\NVIDIA PhysX SDK\v2.8.4_win
edit: ummm cant see an environment variable for physx in the usual places
11/18/2011 (4:53 pm)
as far as i know the actual solution file should use environment variables set by the SDK installers.when you create a new project do you get any warning about physx? i know i did before i installed this version. I believe it was looking for the environment variable.
C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)
C:\Program Files (x86)\NVIDIA Corporation\NVIDIA PhysX SDK\v2.8.4_win
edit: ummm cant see an environment variable for physx in the usual places
#4
I use windows x64.
Like so:
compileAllProjects VS2010
11/18/2011 (5:13 pm)
For me I just installed the PHYSX SDK (don't forget the systemdriver)(not setting any variables) and compiled with visual studio 2010 from commandline. It worked kind of ok. I missed the compileAllProjects script, so I copied it from 1.1 and used that. It then it worked just fine.I use windows x64.
Like so:
compileAllProjects VS2010
#5
Thanks guys,
I turned out to be that the environment variable was wrong:
TORQUE_PHYSX_PATH was reset to C:\Program Files (x86)\NVIDIA Corporation\NVIDIA PhysX SDK\v2.8.4_win
rebooted and rebuilt project from toolbox. Torque compiled successfully without any additional settings.
@Bloodnight: You were spot on, the evironment variable is shown above. :D
Fin
11/18/2011 (6:39 pm)
Fixed!!Thanks guys,
I turned out to be that the environment variable was wrong:
TORQUE_PHYSX_PATH was reset to C:\Program Files (x86)\NVIDIA Corporation\NVIDIA PhysX SDK\v2.8.4_win
rebooted and rebuilt project from toolbox. Torque compiled successfully without any additional settings.
@Bloodnight: You were spot on, the evironment variable is shown above. :D
Fin
#6
11/19/2011 (2:42 am)
Hmm, interesting. I don't have that variable and it works anyway.
Torque 3D Owner Bloodknight
Bloodknight Studios
I only ask because i have the same setup and was mildly surprised that it compiled first time, usually i've done something wrong.
i'll compare my paths to yours and see what's different if anything :)
Edit: i didnt alter any settings in VS at all, i just compiled from the supplied solution file