Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-115513

MSVC build of qt3dphysics fails with -release

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • None
    • 6.5.2
    • None
    • Windows 10, build 19045
    • Windows

    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

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jokarlss Jonas Karlsson
            ceperez1996 Carlos Pérez
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes