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

Qt Creator uses Windows path to pro file while using Ubuntu Docker Image

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • Qt Creator 14.0.1
    • Docker
    • None
    • Windows

      I'm trying to use the Docker plugin of the Qt Creator to cross compile my application for an embedded arm system. Using the Docker image manually works fine. The Qt creator also detects all kit items:

      Start listing auto-detected items associated with this docker image.Kits:
      Docker Image "de-szr-harbor.de.hydac.int/hsw-tad/vision312-devenv:<ImageTag>" (ca67830b7cd6)Qt versions:
      Qt 5.14.2 (System) (on de-szr-harbor.de.hydac.int/hsw-tad/vision312-devenv.<ImageTag>)Toolchains:
      GCC (C++, arm 32bit at docker://<ImageName>.<ImageTag>/opt/koala/1.8.0/sysroots/x86_64-ttcontrol-linux/usr/bin/arm-ttcontrol-linux-gnueabi/arm-ttcontrol-linux-gnueabi-g++)
      GCC (C++, x86 64bit at docker://<ImageName>.<ImageTag>/usr/bin/g++)
      GCC (C, arm 32bit at docker://<ImageName>.<ImageTag>/opt/koala/1.8.0/sysroots/x86_64-ttcontrol-linux/usr/bin/arm-ttcontrol-linux-gnueabi/arm-ttcontrol-linux-gnueabi-gcc)
      GCC (C, x86 64bit at docker://<ImageName>.<ImageTag>/usr/bin/gcc)CMake:
      docker://<ImageName>.<ImageTag>/opt/koala/1.8.0/sysroots/x86_64-ttcontrol-linux/usr/bin/cmake
      docker://<ImageName>.<ImageTag>/usr/bin/cmake
      docker://<ImageName>.<ImageTag>/bin/cmakeDebuggers:
      Detected GDB at docker://<ImageName>.<ImageTag>/opt/koala/1.8.0/sysroots/x86_64-ttcontrol-linux/usr/bin/arm-ttcontrol-linux-gnueabi/arm-ttcontrol-linux-gnueabi-gdb
      Detected GDB at docker://<ImageName>.<ImageTag>/opt/koala/1.8.0/sysroots/x86_64-ttcontrol-linux/usr/bin/arm-ttcontrol-linux-musl/arm-ttcontrol-linux-musl-gdbPython:
      Listing of previously auto-detected kit items finished. 

      (I obscured image name and tag)

      I have all my project repository mounted via the Paths to mount:

      D:/Repos

      While compiling my project the Qt Creator uses a Windows path to my project file which does not work. The executed comand and compile output looks as following:

      11:13:58: Starting: "docker://<ImageName>.<ImageTag>/opt/koala/1.8.0/sysroots/x86_64-ttcontrol-linux/usr/bin/qmake" D:\Repos\Projekte\Test\TestProjekt.pro -spec C:\__qtc_devices__\docker\<ImageName>.<ImageTag>\.\linux-oe-g++ "CONFIG+=debug" "CONFIG+=qml_debug"
      Cannot find file: D:ReposProjekteTestTestProjekt.pro.
      11:13:59: The process "docker://<ImageName>.<ImageTag>/opt/koala/1.8.0/sysroots/x86_64-ttcontrol-linux/usr/bin/qmake" exited with code 2.
      Error while building/deploying project TestProjekt (kit: Vision 312 Docker)
      When executing step "qmake"

      I'm not able to change the given path to the Qt file in the build steps. The Qt Creator should itself use the path to the mounted project file inside the docker container and hence not a Windows path.

       

       

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

            hjk hjk
            sebw Sebastian Wüst
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes