• Advertisement
Sign in to follow this  

Nvidia PhysX - DLL dependencies in PATH or a local copy?

This topic is 1784 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I was wondering why Nvidia PhysX doesn't have the NxCharacter.dll included in "C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common".

 

I wanted to make it a bit easier for myself by adding "C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common" to my PATH env variable.

Now, since NxCharacter.dll is not in the "C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common", I got interrupted by a runtime error when I wanted to run my program after compilation since NxCharacter.dll could not be found.

 

What would I do best to have NxCharacter.dll linked to my program?

-> Should I just copy NxCharacter.dll to "C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common"?

-> Should I just copy NxCharacter.dll to my debug folder?

-> Should I just copy all required PhysX Dlls to my debug folder and remove "C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common" from my PATH?

 

Maybe as a more general question: how would your application install PyshX?

 

Thanks for any help, I'm in doubt about what would be the nicest way of doing things.

 

Share this post


Link to post
Share on other sites
Advertisement

I don't have PhysX installed on Windows (I primarily use MacOSX) but when problems of this nature arise, I usually include the .dll in the same directory as my program upon release time.  During debugging time, if it isn't installed in the C:\Windows\System folder where I'd assume the .dll files would be located, I either place it there manually or place it in the project's working directory.  In Visual Studio (I assume that's the IDE you're using), the working directory isn't the actual debug/release folder unless you specify it.  By default, it's the project's directory.

 

If all of your .dll files are located in the PhysX\Common folder, then chances are your program won't get a reference to NxCharacter.dll.  It has to be in one of the directories I mentioned above.  This should solve your problem. ^^

 

Shogun.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement