NVIDIAGameWorks/PhysX

Building PhysX with cland v14

z80 opened this issue · 1 comments

z80 commented

Hello!

On Ubuntu 22.04 the only clang available is v14. There are 2 problems using PhysX:

  1. Build fails with multiple errors saying method xxx is overriden but has no 'override' specifier. This can be fixed by removing "-Werror" flag from "physx/source/compiler/cmake/linux/CMakeLists.txt" line 31.

  2. Calling PxArticulationReducedCoordinate::computeGeneralizedMassMatrix( PxCache * ) method causes an executable to crash.

Both 1) and 2) do not happen on Ubuntu 20.02 with clang v10. It compiles without a problem and simulation runs with no issues.

Would one please recommend the right way to use PhysX with modern OS versions?

If it matters, the PhysX repository commit I'm using is "c3d5537bdebd6f5cd82fcaf87474b838fe6fd5fa".

Thank you!

I'm having the same issue.