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

lightningviewer fails to build with Boot to Qt on Windows

XMLWordPrintable

    • e79693bc5 (dev), 191cfedf7 (6.10), 02afccb4c (6.10.0)

      Boot to Qt 6.10.0 beta4

      When trying to build 'lightningviewer' (with Boot to Qt toolchain) on Windows with:

      C:\QT\6.10.0\Boot2Qt\imx8qm-mek\toolchain\sysroots\x86_64-w64-mingw32\usr\bin\qt-cmake.bat -GNinja CMakeLists.txt -B build
      cmake --build build --parallel
      cmake --install build --prefix C:\Users\qt\RTA\usr --config Debug

      it fails with:

      [82/82] Linking CXX executable lightningviewer
      FAILED: lightningviewer 
      C:\Windows\system32\cmd.exe /C "cd . && C:\QT\6.10.0\Boot2Qt\imx8qm-mek\toolchain\sysroots\x86_64-w64-mingw32\usr\bin\aarch64-poky-linux\aarch64-poky-linux-g++.exe --sysroot=C:/QT/6.10.0/Boot2Qt/imx8qm-mek/toolchain/sysroots/cortexa72-cortexa53-crypto-poky-linux -mcpu=cortex-a72.cortex-a53+crc+crypto -mbranch-protection=standard -fstack-protector-strong   -Wformat -Wformat-security -Werror=format-security --sysroot=C:/QT/6.10.0/Boot2Qt/imx8qm-mek/toolchain/sysroots/cortexa72-cortexa53-crypto-poky-linux -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed  -Wl,-z,relro,-z,now   -Wl,--dependency-file=CMakeFiles\lightningviewer.dir\link.d CMakeFiles/lightningviewer.dir/lightningviewer_autogen/mocs_compilation.cpp.o CMakeFiles/lightningviewer.dir/main.cpp.o -o lightningviewer  -Wl,-rpath,$ORIGIN:$ORIGIN/../lib  C:/QT/6.10.0/Boot2Qt/imx8qm-mek/toolchain/sysroots/cortexa72-cortexa53-crypto-poky-linux/usr/lib/libQt6QuickControls2.so.6.10.0  LightningViewer/libLightningViewer.so  LightningViewerStyle/libLightningViewerStyle.so  C:/QT/6.10.0/Boot2Qt/imx8qm-mek/toolchain/sysroots/cortexa72-cortexa53-crypto-poky-linux/usr/lib/libQt6Quick.so.6.10.0  C:/QT/6.10.0/Boot2Qt/imx8qm-mek/toolchain/sysroots/cortexa72-cortexa53-crypto-poky-linux/usr/lib/libQt6QmlMeta.so.6.10.0  C:/QT/6.10.0/Boot2Qt/imx8qm-mek/toolchain/sysroots/cortexa72-cortexa53-crypto-poky-linux/usr/lib/libQt6QmlWorkerScript.so.6.10.0  C:/QT/6.10.0/Boot2Qt/imx8qm-mek/toolchain/sysroots/cortexa72-cortexa53-crypto-poky-linux/usr/lib/libQt6QmlModels.so.6.10.0  C:/QT/6.10.0/Boot2Qt/imx8qm-mek/toolchain/sysroots/cortexa72-cortexa53-crypto-poky-linux/usr/lib/libQt6OpenGL.so.6.10.0  C:/QT/6.10.0/Boot2Qt/imx8qm-mek/toolchain/sysroots/cortexa72-cortexa53-crypto-poky-linux/usr/lib/libQt6Gui.so.6.10.0  C:/QT/6.10.0/Boot2Qt/imx8qm-mek/toolchain/sysroots/cortexa72-cortexa53-crypto-poky-linux/usr/lib/libGLESv2.so  C:/QT/6.10.0/Boot2Qt/imx8qm-mek/toolchain/sysroots/cortexa72-cortexa53-crypto-poky-linux/usr/lib/libEGL.so  C:/QT/6.10.0/Boot2Qt/imx8qm-mek/toolchain/sysroots/cortexa72-cortexa53-crypto-poky-linux/usr/lib/libQt6Qml.so.6.10.0  C:/QT/6.10.0/Boot2Qt/imx8qm-mek/toolchain/sysroots/cortexa72-cortexa53-crypto-poky-linux/usr/lib/libQt6Network.so.6.10.0  C:/QT/6.10.0/Boot2Qt/imx8qm-mek/toolchain/sysroots/cortexa72-cortexa53-crypto-poky-linux/usr/lib/libQt6Core.so.6.10.0 && cd ."
      C:/Users/qt/RTA/B2Qt_6.10.0/6.10.0/Boot2Qt/imx8qm-mek/toolchain/sysroots/x86_64-w64-mingw32/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/14.3.0/ld.exe: cannot open output file lightningviewer: Permission denied
      collect2.exe: error: ld returned 1 exit status
      ninja: build stopped: subcommand failed. 

      Probably related to: https://bugreports.qt.io/browse/QTBUG-133788

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

            qtbuildsystem Qt Build System Team
            mipohjan Milla Pohjanheimo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes