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

Windows Arm64 build broken

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 6.2.3
    • Build System
    • None
    • Host and Target: Windows 11 / Arm64 ( Surface Pro)
      Compiler: MSVC v142
      Commit: Tag v6.2.3 and a9c9418c(dev HEAD)
      CMake: 3.21.4
      Python: 3.10.0
      Ninja: 1.10.2
    • Windows

    Description

      I've been trying to do a native build of Qt for windows/arm64 platform with MSVC 2019 and hitting the following compile error.

      Build Log

       

      [51/7554] Automatic MOC and UIC for target Widgets
      FAILED: qtbase/src/widgets/Widgets_autogen/timestamp qtbase/src/widgets/Widgets_autogen/mocs_compilation.cpp C:/Users/niysai01/Workspace/qt5/qtbase/src/widgets/Widgets_autogen/timestamp C:/Users/niysai01/Workspace/qt5/qtbase/src/widgets/Widgets_autogen/mocs_compilation.cpp
      cmd.exe /C "cd /D C:\Users\niysai01\Workspace\qt5\qtbase\src\widgets && "C:\Program Files\CMake\bin\cmake.exe" -E cmake_autogen C:/Users/niysai01/Workspace/qt5/qtbase/src/widgets/CMakeFiles/Widgets_autogen.dir/AutogenInfo.json Release && "C:\Program Files\CMake\bin\cmake.exe" -E touch C:/Users/niysai01/Workspace/qt5/qtbase/src/widgets/Widgets_autogen/timestamp && "C:\Program Files\CMake\bin\cmake.exe" -E cmake_transform_depfile Ninja gccdepfile C:/Users/niysai01/Workspace/qt5 C:/Users/niysai01/Workspace/qt5/qtbase/src/widgets C:/Users/niysai01/Workspace/qt5 C:/Users/niysai01/Workspace/qt5/qtbase/src/widgets C:/Users/niysai01/Workspace/qt5/qtbase/src/widgets/Widgets_autogen/deps C:/Users/niysai01/Workspace/qt5/CMakeFiles/d/9bdd8fece90855639039a90eeacbcbb7e943c02012187172ffa50073a3a1d4f9.d"
      AutoUic subprocess error
      ------------------------
      The uic process failed to compile
       "SRC:/qtbase/src/widgets/dialogs/qfiledialog.ui"
      into
       "SRC:/qtbase/src/widgets/Widgets_autogen/include/ui_qfiledialog.h"
      included by
       "SRC:/qtbase/src/widgets/dialogs/qfiledialog.cpp"
      Command
      -------
      C:/Users/niysai01/Workspace/qt5/qtbase/bin/uic.exe -o C:/Users/niysai01/Workspace/qt5/qtbase/src/widgets/Widgets_autogen/include/ui_qfiledialog.h C:/Users/niysai01/Workspace/qt5/qtbase/src/widgets/dialogs/qfiledialog.ui
      Output
      

      Commands used for build

       

      git clone https://code.qt.io/qt/qt5.git
      perl init-repository
      ./configure -prefix "C:\Users\niysai01\workspace\qt_install"
      cmake -GNinja -DCMAKE_INSTALL_PREFIX="C:\Users\niysai01\workspace\qt_install" -DCMAKE_BUILD_TYPE=Release
      cmake --build . --parallel
      

      I've also tried to do a cross-compilation with qt-woa-builder.py script from https://bugreports.qt.io/browse/QTBUG-85820 but hit the same error.

       

       

      Attachments

        Issue Links

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

          Activity

            People

              qtbuildsystem Qt Build System Team
              niyassait Niyas Sait
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes