Jump to content

  • Log In with Google      Sign In   
  • Create Account

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


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 Steven De Bock   Members   -  Reputation: 467

Like
0Likes
Like

Posted 02 March 2013 - 03:25 PM

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.

 


Twitter: @StevenDeBo


Sponsor:

#2 blueshogun96   Crossbones+   -  Reputation: 917

Like
0Likes
Like

Posted 02 March 2013 - 06:06 PM

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.


Follow Shogun3D on the official website: http://shogun3d.net

 

blogger.png twitter.png tumblr_32.png facebook.png

 

"Yo mama so fat, she can't be frustum culled." - yoshi_lol





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS