Game Development Community

Possible Bug In PhysXSDK paths being hard coded?

by James Brad Barnette · in Torque 3D Professional · 06/18/2009 (12:40 pm) · 8 replies

ok wanted to get clarification since a lot of times I'm and idiot when it comes to programming. but when I try to compile my changes into the physX demo I get the following:
Quote:
5>c1xx : fatal error C1083: Cannot open source file: '..............Program FilesNVIDIA CorporationNVIDIA PhysX SDKv2.8.1SDKsNxCharactersrcCharacterControllerCallbacks.cpp': No such file or directory
6>c1xx : fatal error C1083: Cannot open source file: '..............Program FilesNVIDIA CorporationNVIDIA PhysX SDKv2.8.1ToolsNxuStream2NXU_ScaledCopy.cpp': No such file or directory
4>deflate.c
7>colourset.cpp
2>pcre_try_flipped.c
5>c1xx : fatal error C1083: Cannot open source file: '..............Program FilesNVIDIA CorporationNVIDIA PhysX SDKv2.8.1SDKsNxCharactersrcCapsuleController.cpp': No such file or directory
6>c1xx : fatal error C1083: Cannot open source file: '..............Program FilesNVIDIA CorporationNVIDIA PhysX SDKv2.8.1ToolsNxuStream2NXU_PhysicsInstantiator.cpp': No such file or directory
5>c1xx : fatal error C1083: Cannot open source file: '..............Program FilesNVIDIA CorporationNVIDIA PhysX SDKv2.8.1SDKsNxCharactersrcCCTDebugRenderer.cpp': No such file or directory

I'm on a X64 system so the path is actually C:\Program Files x86\

How do I change this is places like the command line of the project?

#1
06/18/2009 (1:41 pm)
open "C:\torque\Torque 3D 2009 Beta 2\Demos\PhysX\buildFiles\VisualStudio 2008\projects"
open "nxCharacter.vcproj"
change all instances of "C:/Program Files/NVIDIA Corporation" to "C:/Program Files (x86)/NVIDIA Corporation"
do the same for "nxuStream.vcproj"
repeat as required for any other offending PhysX "c1xx : fatal error C1083" that may occur. remember to save them out, AFTER YOU MAKE BACKUPS OF THEM, NOT BEFORE. I cant emphasize enough the merits of making backups.
recompile the solution.
#2
06/19/2009 (12:46 am)
That is not the right fix at all.

You should always use the generateProjects.bat file to generate project files specific for your PC. I disagree with GG on shipping Visual Studio project files in the install for just this case... it isn't always correct for your system configuration.

When you run the project generator you would have seen the following message:

Quote:
Welcome to projectGenerator 0.9
(c) GarageGames.Com, Inc.

CWD = C:\Projects\Torque3D_Clean\Tools\projectGenerator
- Loading Smarty...
- Loading config file C:\Projects\Torque3D_Clean\Demos\PhysX\buildFiles\confi
g\project.conf
- Setting platform to: win32


PHYSX_SDK_PATH is set to C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2
.8.1



******* The PHYSX_SDK_PATH variable does not point to a valid directory! *******

******* You must install the PhysX SDK and set the path via in your *******

******* buildFiles/project.conf file or by setting the TORQUE_PHYSX_PATH *******

******* environment variable! (can require a reboot) *******

That clearly states that you need to set the TORQUE_PHYSX_PATH environment var to point at the right PhysX install. Once you do that and generate the projects again you should be ready to go.
#3
06/19/2009 (4:03 am)
what Tom said ;)
#4
06/19/2009 (8:36 am)
so just click the regenerate button in the toolbox thingy?
#5
06/19/2009 (8:37 am)
Once you change the file path in the .conf file, click the regenerate button (or clean button in the Beta 3 ToolBox).
#6
06/19/2009 (9:24 am)
There's also the rengerateProjects.bat file in your project root directory.
#7
06/24/2009 (8:14 am)
??? ok I did the re-generate thing and now the physX project no longer appears in the tool box. Any ideas?
#8
06/24/2009 (9:15 am)
I know there is "the right way",
but I had problems just like you are having,
so I used "my way".
and it worked.
up to you.