PhysX icon indicating copy to clipboard operation
PhysX copied to clipboard

Building PhysX with cland v14

Open z80 opened this issue 1 year ago • 1 comments

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!

z80 avatar Jul 22 '22 23:07 z80

I'm having the same issue.

litezzzout avatar Aug 17 '22 14:08 litezzzout