Details
-
Bug
-
Resolution: Cannot Reproduce
-
P2: Important
-
None
-
6.5.2
-
None
-
Windows 10, build 19045
Description
Building Qt with MSVC with -release flag set fails soon after encountering an error in qt3dphysics, specifically within PhysX:
fatal error C1189: #error: Exactly one of NDEBUG and _DEBUG needs to be defined!
The toolchain is MSVC 2019 x64. The configure options are:
configure -prefix D:/Qt/6.5.2/static_msvc64 -static -static-runtime -release -opensource -confirm-license -nomake tools -nomake examples -nomake tests -skip qtwebengine -qt-doubleconversion -qt-pcre -qt-zlib -qt-harfbuzz -qt-libpng -qt-libjpeg -qt-sqlite -qt-tiff -qt-webp
Since I don't need that module anyway I just skipped it with -skip qt3dphysics, and everything worked fine from there on.
However it's sad that Qt can't be compiled with -release. Compiling both release and debug libs takes an eternity or two. And since (in my particular case) it's for a static build of Qt, it doesn't make much sense to have debug libs there.
There's more info about that in this github issue: https://github.com/NVIDIAGameWorks/PhysX/issues/301