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

QT6.3 failed to configure due to CMake Error on windows cross compile arm64

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 6.3.2
    • Build tools: moc
    • None
    • Windows: Windows server 2019
    • Windows

    Description

      Hi all,

      QT6.3 failed to configure due to CMake Error: The tool "Qt6::moc" was not found in the Qt6CoreTools package on windows for cross compile arm64. Could you please help look at this issue? Thanks in advance.

      Repro Steps:

      1. git clone -b 6.3 --recurse-submodules https://github.com/qt/qt5 F:\QT6.3
      2. Install QT6.3.2 msvc2019_64 in C:\Qt\6.3.2
      3. Open a VS2019 x64 command && cd F:\QT6.3\qtbase
      4. mkdir build_arm64 && cd build_arm64
      5. "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" -host_arch=amd64 -arch=arm64
      6. set QT_HOST_PATH=C:\Qt\6.3.2\msvc2019_64
      7. ..\configure -developer-build -release -confirm-license -opensource -nomake tests -xplatform win32-arm64-msvc

      ErrorMessage:

      ...

      – Searching for tool 'Qt6::moc' in package Qt6CoreTools.
      CMake Warning at C:/Qt/6.3.2/msvc2019_64/lib/cmake/Qt6CoreTools/Qt6CoreToolsConfigVersion.cmake:51 (message):
        Version 6.3.3 of package Qt6CoreTools was requested but an incompatible
        version was found: 6.3.2.  You can pass -DQT_NO_PACKAGE_VERSION_CHECK=TRUE
        to disable the version check and force the incompatible version to be used.
        There is no guarantee the build will succeed.  Use at your own risk.  You
        can silence this warning by passing
        -DQT_NO_PACKAGE_VERSION_INCOMPATIBLE_WARNING=TRUE
      Call Stack (most recent call first):
        cmake/QtToolHelpers.cmake:142 (find_package)
        src/tools/moc/CMakeLists.txt:8 (qt_internal_add_tool)

      CMake Warning at C:/Qt/6.3.2/msvc2019_64/lib/cmake/Qt6CoreTools/Qt6CoreToolsConfigVersion.cmake:51 (message):
        Version 6.3.3 of package Qt6CoreTools was requested but an incompatible
        version was found: 6.3.2.  You can pass -DQT_NO_PACKAGE_VERSION_CHECK=TRUE
        to disable the version check and force the incompatible version to be used.
        There is no guarantee the build will succeed.  Use at your own risk.  You
        can silence this warning by passing
        -DQT_NO_PACKAGE_VERSION_INCOMPATIBLE_WARNING=TRUE
      Call Stack (most recent call first):
        cmake/QtToolHelpers.cmake:142 (find_package)
        src/tools/moc/CMakeLists.txt:8 (qt_internal_add_tool)CMake Warning at cmake/QtToolHelpers.cmake:142 (find_package):
        Could not find a configuration file for package "Qt6CoreTools" that is
        compatible with requested version "6.3.3".

        The following configuration files were considered but not accepted:

          C:/Qt/6.3.2/msvc2019_64/lib/cmake/Qt6CoreTools/Qt6CoreToolsConfig.cmake, version: 6.3.2

      Call Stack (most recent call first):
        src/tools/moc/CMakeLists.txt:8 (qt_internal_add_tool)

      CMake Error at cmake/QtToolHelpers.cmake:170 (message):
        The tool "Qt6::moc" was not found in the Qt6CoreTools package.  Package
        found: 0
      Call Stack (most recent call first):
        src/tools/moc/CMakeLists.txt:8 (qt_internal_add_tool)

      – Configuring incomplete, errors occurred!
      See also "F:/QT6.3/qtbase/build_arm64ec/CMakeFiles/CMakeOutput.log".
      See also "F:/QT6.3/qtbase/build_arm64ec/CMakeFiles/CMakeError.log".
      CMake Error at F:/QT6.3/qtbase/cmake/QtProcessConfigureArgs.cmake:963 (message):
        CMake exited with code 1.

      Attachments

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

        Activity

          People

            fabiankosmale Fabian Kosmale
            lingao Gao Lin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes