Ubuntu - undefined reference to PxSetPhysXGpuProfilerCallback #135
Replies: 6 comments 1 reply
-
You need to unset See where you hit the issue: https://github.com/NVIDIA-Omniverse/PhysX/blob/release/104.2/physx/source/pvd/src/PxPvdImpl.cpp#L105 |
Beta Was this translation helpful? Give feedback.
-
Hi there, I tried that with: However, that still did not work. I unset it before I include any PhysX headers. Let me know if you need any more info, this issue does not seem to happen on Windows.(And on Windows, there is not any need to define/undefine any GPU related preprocessor directives.) |
Beta Was this translation helpful? Give feedback.
-
@Kai-Indiemade - unsetting before including any PhysX headers won't do anything, as it's a macro defined in the PhysX codebase. That is, it's going to effect how PhysX compiles. You'll need to recompile PhysX with the macro undefined. I'm starting with updating the presets XML file ( If that fails,
I'll update if it works - thanks for asking the question, I never would have found this without it! |
Beta Was this translation helpful? Give feedback.
-
So, you end up needing to edit However, with 105.1-physx-5.3.0 that just leads you to this issue: the fix in the issue (void)param will get you past the errors in softbody, but that just ends up cascading down to more errors in other files. Attempting to compile |
Beta Was this translation helpful? Give feedback.
-
Not fixed in |
Beta Was this translation helpful? Give feedback.
-
Update: appear to be fixed in main. I did have to disable snippet to get it to compile. That appears to be an unrelated (new) issue, though. |
Beta Was this translation helpful? Give feedback.
-
I seem to have the libraries(.lib files) successfully linked on Linux via Cmake, but I am getting the following error:
PxPvdImpl.cpp:108: undefined reference to 'PxSetPhysXGpuProfilerCallback'
It appears it is trying to include code that is for the PhysXGpu library, which to my knowledge is supposed to optional? It it is not, how would I link it to my project? I tried linking the dll, but that caused other undefined references, so I'm assuming PhysXGpu has some dependencies of it's own.
I found a preprocessor directive "DISABLE_CUDA_PHYSX" that looks like it'd avoid the calls to PhysXGpu, but defining it didn't seem to make a difference.
Beta Was this translation helpful? Give feedback.
All reactions