NVIDIAGameWorks / PhysX

NVIDIA PhysX SDK
Other
3.11k stars 793 forks source link

Ubuntu - undefined reference to PxSetPhysXGpuProfilerCallback #636

Closed Kai-Indiemade closed 1 year ago

Kai-Indiemade commented 1 year ago

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.

Kai-Indiemade commented 1 year ago

I meant to post this for PhysX 5.1, closing.