-
I've build PhysX 5.4.1, all the snippets work fine. But I have been unable to link PhysX into my own C++ project. I have been using premake5. My project builds just fine but only with cuda and PhysXGpu_64 linked. However when I run the binary I get this error:"error while loading shared libraries: libPhysXGpu_64.so: cannot open shared object file: No such file or directory" My premake config: https://pastebin.com/00GgeqLV |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Hi @Spatchler |
Beta Was this translation helpful? Give feedback.
-
Hi @Spatchler, I'm currently working on a project using PyPhysX (a Python wrapper around PhysX 4.1.1), and I'm running into the similar issue you described |
Beta Was this translation helpful? Give feedback.
-
I believe, before PhysXGpu_64 library source was included in PhysX distribution (PhysX 5.6), generate_projects.bat(.sh) was downloading the correct version of it according to the version and platform you're building for. Could you try to run it and see if it helps? |
Beta Was this translation helpful? Give feedback.
Ok, I have never encountered LD_LIBRARY_PATH this before when linking shared libraries, probably because I install them with my package manager. I ended up copying the libPhysXGpu_64.so into /usr/lib to fix the issue. Thanks for the reply @vreutskyy