compiler link prob, help please.
by Thomas Champion · in Torque 3D Professional · 11/15/2011 (7:45 am) · 9 replies
having a error with finding the phsx cooking.lib
Shows up as a fatal error.
15>LINK : fatal error LNK1181: cannot open input file 'PhysXCooking.lib'
i have these for the add for phsx ,am i missing one in there.
#16
08/19/2010 (7:29 pm)
Here is a list of the stuff that needs to be added to a project to make work with PhysX (also posted for future reference):
Add to C++->General->Additional Include Directories:
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.3/SDKs/Physics/include;
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.3/SDKs/Foundation/include;
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.3/SDKs/PhysXLoader/include;
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.3/SDKs/Cooking/include;
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.3/SDKs/NxCharacter/include;
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.3/Tools/NxuStream2;
Add to C++->Preprocessor->Preprocessor Definition:
TORQUE_PHYSICS_ENABLED
TORQUE_PHYSICS_BULLET
TORQUE_PHYSICS_PHYSX
Add to Linker->General->Additional Library Directories:
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.3/SDKs/lib/Win32;
Add to Linker->Input->Additional Dependencies:
PhysXCooking.lib
PhysXLoader.lib
Add to Resources->General->Additional Include Directories:
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.3/SDKs/Physics/include;
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.3/SDKs/Foundation/include;
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.3/SDKs/PhysXLoader/include;
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.3/SDKs/Cooking/include;
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.3/SDKs/NxCharacter/include;
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.3/Tools/NxuStream2;
Shows 2.8.3 for these phsx files. i went to there site and the only dload i could get was 2.8.1
Any help would be much appreciated.
Shows up as a fatal error.
15>LINK : fatal error LNK1181: cannot open input file 'PhysXCooking.lib'
i have these for the add for phsx ,am i missing one in there.
#16
08/19/2010 (7:29 pm)
Here is a list of the stuff that needs to be added to a project to make work with PhysX (also posted for future reference):
Add to C++->General->Additional Include Directories:
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.3/SDKs/Physics/include;
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.3/SDKs/Foundation/include;
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.3/SDKs/PhysXLoader/include;
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.3/SDKs/Cooking/include;
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.3/SDKs/NxCharacter/include;
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.3/Tools/NxuStream2;
Add to C++->Preprocessor->Preprocessor Definition:
TORQUE_PHYSICS_ENABLED
TORQUE_PHYSICS_BULLET
TORQUE_PHYSICS_PHYSX
Add to Linker->General->Additional Library Directories:
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.3/SDKs/lib/Win32;
Add to Linker->Input->Additional Dependencies:
PhysXCooking.lib
PhysXLoader.lib
Add to Resources->General->Additional Include Directories:
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.3/SDKs/Physics/include;
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.3/SDKs/Foundation/include;
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.3/SDKs/PhysXLoader/include;
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.3/SDKs/Cooking/include;
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.3/SDKs/NxCharacter/include;
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.3/Tools/NxuStream2;
Shows 2.8.3 for these phsx files. i went to there site and the only dload i could get was 2.8.1
Any help would be much appreciated.
#2
11/15/2011 (8:15 am)
Thanks robert. I will redownload. uninstall and reinstall phsx and see if i can find the cooking.lib. I cant find it in the phsx sdk.
#3
I have the link to that. shoudlnt that be what the compiler is looking for?
Ill just do the reinstall. and see if i can find the 2.8.3
Thanks for the help.
I think its in this somewhere.
Add to Linker->General->Additional Library Directories:
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.3/SDKs/lib/Win32;
Add to Linker->Input->Additional Dependencies:
PhysXCooking.lib
PhysXLoader.lib
The cooking.lib is in the folderSDK/v2.8.3/SDKs/lib/Win32;
but i dont think it linked right in the compiler somehow.
11/15/2011 (8:21 am)
ok in the sdklibswin32 it has nxcooking Object file library.I have the link to that. shoudlnt that be what the compiler is looking for?
Ill just do the reinstall. and see if i can find the 2.8.3
Thanks for the help.
I think its in this somewhere.
Add to Linker->General->Additional Library Directories:
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.3/SDKs/lib/Win32;
Add to Linker->Input->Additional Dependencies:
PhysXCooking.lib
PhysXLoader.lib
The cooking.lib is in the folderSDK/v2.8.3/SDKs/lib/Win32;
but i dont think it linked right in the compiler somehow.
#4
If you're using 1.1 you need to update your PhysX SDK to 2.8.4.5. If you compile against an older SDK the engine will crash.
11/15/2011 (9:28 am)
@ThomasIf you're using 1.1 you need to update your PhysX SDK to 2.8.4.5. If you compile against an older SDK the engine will crash.
#5
but i think i found the problem.
Add to Linker->Input->Additional Dependencies:
PhysXCooking.lib
PhysXLoader.lib
the cooking and loader are in the lib dir, but the cooking is named Nxcooking not PhsxCooking.
so i changed that in the compiler.
I have compiled with this version of phsx and had no crash's so far.
But i will try to find the version said. at the site for nvidia the only one they had was the (2.8.1(2.8.3)).
11/15/2011 (9:46 am)
I cant find 2.8.4.5but i think i found the problem.
Add to Linker->Input->Additional Dependencies:
PhysXCooking.lib
PhysXLoader.lib
the cooking and loader are in the lib dir, but the cooking is named Nxcooking not PhsxCooking.
so i changed that in the compiler.
I have compiled with this version of phsx and had no crash's so far.
But i will try to find the version said. at the site for nvidia the only one they had was the (2.8.1(2.8.3)).
#6
Error 70 error LNK1181: cannot open input file 'C:\Torque\Torque 3D Pro 1.1\My Projects\fps01\game\fps01.lib' C:\Torque\Torque 3D Pro 1.1\My Projects\fps01\buildFiles\VisualStudio 2010\projects\LINK
Error 69 error c101008d: Failed to write the updated manifest to the resource of file "../../../game/fps01.dll". The process cannot access the file because it is being used by another process. C:\Torque\Torque 3D Pro 1.1\My Projects\fps01\buildFiles\VisualStudio 2010\projects\mt.exe
take me a minute but ill get it.
thanks for the help and info.
11/15/2011 (9:51 am)
Fixed the phsx prob ,but created another.Error 70 error LNK1181: cannot open input file 'C:\Torque\Torque 3D Pro 1.1\My Projects\fps01\game\fps01.lib' C:\Torque\Torque 3D Pro 1.1\My Projects\fps01\buildFiles\VisualStudio 2010\projects\LINK
Error 69 error c101008d: Failed to write the updated manifest to the resource of file "../../../game/fps01.dll". The process cannot access the file because it is being used by another process. C:\Torque\Torque 3D Pro 1.1\My Projects\fps01\buildFiles\VisualStudio 2010\projects\mt.exe
take me a minute but ill get it.
thanks for the help and info.
#7
Error 48 error LNK1181: cannot open input file 'C:TorqueTorque 3D Pro 1.1EnginelibcompiledRelease.Win32lmng.lib' C:TorqueTorque 3D Pro 1.1My Projectsfps01buildFilesVisualStudio 2010projectsLINK
so i guess i need to link that lib then clean and recompile, should be fine then.
i see the 2.8.4.6 sdk at nvidia site. but the dload link in not in the developer center. ill try to get it later.
11/15/2011 (10:14 am)
k got it down to one prob.Error 48 error LNK1181: cannot open input file 'C:TorqueTorque 3D Pro 1.1EnginelibcompiledRelease.Win32lmng.lib' C:TorqueTorque 3D Pro 1.1My Projectsfps01buildFilesVisualStudio 2010projectsLINK
so i guess i need to link that lib then clean and recompile, should be fine then.
i see the 2.8.4.6 sdk at nvidia site. but the dload link in not in the developer center. ill try to get it later.
#8
clean compile no probs.
Had to track a few things down after that, but thats just the nature of the beast.
11/15/2011 (10:41 am)
Again thanks robert, that clue about the spelling got me all fixed up. clean compile no probs.
Had to track a few things down after that, but thats just the nature of the beast.
#9
11/15/2011 (11:40 am)
Scott i am registered with the dev site at nvidia and that version is not on the dload page in the suport center. ill keep trying until it shows up there. there showing they have 3.1 version now. but even the 3.0 and 3.1 are not on the dload page ethier.Hopefully i can get the 2.8.4.5 that 1.2 will suport.
Torque Owner Robert Fritzen
Phantom Games Development
You also may want to see if you have that library file in that folder as an incorrect install may have occurred.