Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-27229

cmake builds fail with docker toolchain on Windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Incomplete
    • Affects Version/s: Qt Creator 7.0.0
    • Fix Version/s: None
    • Labels:
      None
    • Platform/s:
      Windows

      Description

      Following errors occur when trying to use Docker based toolchain on Windows host

      Compiler feature detection failure!
      The command "docker exec 67320c04dd4c9268aa99bdf50d79c9eec1b2fb191410f6577abb873dd64fd3fd /opt/toolchain/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-g++ "--sysroot=docker://boot2qt-imx8qm-mek:6.4.0/opt/toolchain/sysroots/cortexa72-cortexa53-crypto-poky-linux" -x c++ -E -v -" could not be started. 

      Sysroot has been configured in Kit as "docker://..."

       

      Running docker://boot2qt-imx8qm-mek:6.4.0/opt/toolchain/sysroots/x86_64-pokysdk-linux/usr/bin/cmake -S /c/Qt/Examples/Qt-6.4.0/multimedia/video/recorder -B /c/Qt/Examples/Qt-6.4.0/multimedia/video/build-recorder-Boot2Qt_NXP_i_MX_8QuadMax_MEK_Docker-Debug -DCMAKE_GENERATOR:STRING=Ninja -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_PROJECT_INCLUDE_BEFORE:FILEPATH=C:/Qt/Tools/QtCreator/share/qtcreator/package-manager/auto-setup.cmake -DCMAKE_C_COMPILER_TARGET:STRING=aarch64-poky-linux -DCMAKE_CXX_COMPILER_TARGET:STRING=docker://boot2qt-imx8qm-mek:6.4.0/c/Qt/Examples/Qt-6.4.0/multimedia/video/build-recorder-Boot2Qt_NXP_i_MX_8QuadMax_MEK_Docker-Debugaarch64-poky-linux -DCMAKE_CXX_COMPILER:STRING=/opt/toolchain/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-g++ -DCMAKE_C_COMPILER:STRING=/opt/toolchain/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-gcc -DCMAKE_PREFIX_PATH:STRING= -DQT_QMAKE_EXECUTABLE:STRING=/opt/toolchain/sysroots/x86_64-pokysdk-linux/usr/bin/qmake -DCMAKE_TOOLCHAIN_FILE:FILEPATH=/opt/toolchain/sysroots/x86_64-pokysdk-linux/usr/lib/cmake/Qt6/qt.toolchain.cmake -DCMAKE_MAKE_PROGRAM:FILEPATH=/opt/toolchain/sysroots/x86_64-pokysdk-linux/usr/bin/ninja in %2.
      CMake Error at CMakeLists.txt:3 (project):
        project could not find requested file:    C:/Qt/Tools/QtCreator/share/qtcreator/package-manager/auto-setup.cmake 

      QtCreator is using Windows path to the auto-setup.cmake, while the docker toolchain is based on linux.

       

        Attachments

          Issue Links

          For Gerrit Dashboard: QTCREATORBUG-27229
          # Subject Branch Project Status CR V

            Activity

              People

              Assignee:
              hjk hjk
              Reporter:
              sapiippo Samuli Piippo
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes