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

cmake: Could NOT find WrapLibClang for multiple configurations

    XMLWordPrintable

Details

    Description

      when I build Qt 6.0 for multiple configurations, for example, debug and release. WrapLibClang could not be found.

      cmake -DCMAKE_INSTALL_PREFIX=D:\Qt\6.0.0-beta2-msvc2019-x64-shared -G"Ninja Multi-Config" -DCMAKE_CONFIGURATION_TYPES=Release;Debug -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF -DINPUT_opengl=desktop -DINPUT_schannel=yes "..\qt-everywhere-src-6.0.0-beta2"
      

      output:

      ......
      -- Building for multiple configurations: Release;Debug.
      -- Main configuration is: Release.
      -- Static linkage against libclang with MSVC was requested, but the build is not a release build, therefore libclang cannot be used.
      -- Could NOT find WrapLibClang (missing: WrapLibClang_FOUND) (found suitable version "10.0.0", minimum required is "8")
      -- Using source syncqt found at: D:/Qt/src/qt-everywhere-src-6.0.0-beta2/qtbase/bin/syncqt.pl
      -- Running syncqt for module: 'QtTools'
      -- Static linkage against libclang with MSVC was requested, but the build is not a release build, therefore libclang cannot be used.
      -- Could NOT find WrapLibClang (missing: WrapLibClang_FOUND) (found suitable version "10.0.0", minimum required is "8")
      ......

      However, when I only build release, there is no such problem.

      cmake -DCMAKE_INSTALL_PREFIX=D:\Qt\6.0.0-beta2-msvc2019-x64-shared -GNinja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF -DINPUT_opengl=desktop -DINPUT_schannel=yes "..\qt-everywhere-src-6.0.0-beta2"
      

      output:

      ......
      -- Found WrapLibClang: TRUE (found suitable version "10.0.0", minimum required is "8")
      -- Using source syncqt found at: D:/Qt/src/qt-everywhere-src-6.0.0-beta2/qtbase/bin/syncqt.pl
      -- Running syncqt for module: 'QtTools'
      ......

       

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-88039
          # Subject Branch Project Status CR V

          Activity

            People

              jbornema Joerg Bornemann
              lixinwei Li Xinwei
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes