PhysX Integration via CMake #175
Unanswered
mkomaritzan
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Hi @mkomaritzan - any chance the recently published vcpkg port could be helpful to you? https://omni-101.github.io/omniverse/2023/07/07/omniverse-physx-vcpkg-port/ |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to integrate physX into my own little geometry viewer application and tried to set this up with cmake. But unfortunately I found no guide for doing this for physX 5.x, only for 4.x versions, like this one: NVIDIAGameWorks/PhysX#249
So I tried to adapt this guide above but my cmake configuration still fails...
I'm using Windows and my project structure is like main-project-dir/external/physx and in here ther is the stuff from the physx repo (e.g., bin, buildtools, compiler, ...). I've done the guide for windows and was also able to run the snippets so the physx setup itself should be fine, I hope...
In my CMakeLists.txt I added the following so far:
When I run this, I get some errors about dlls that cannot be copied like:
CMake Error at external/physx/source/compiler/cmake/windows/CMakeLists.txt:119 (FILE): FILE COPY cannot find "/bin/x86//PhysXDevice64.dll". Call Stack (most recent call first): external/physx/source/compiler/cmake/CMakeLists.txt:103 (INCLUDE)
I know that the problem is, that it should actually look for this file at:
/bin/win.x86_64.vc142.mt/<build-type>/PhysXDevice64.dll
but I don't know what I need to set in the CMakeLists that it does use the correct path...
Any help would be very appreciated, I feel always a bit helpless in the 'setup' stage of a project :(
Beta Was this translation helpful? Give feedback.
All reactions