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

QtCreator Boot2Qt for RaspberryPi build never completes when Project has a long file path

    XMLWordPrintable

Details

    • Windows

    Description

      I've discovered that if my QtCreator project has a path that is over a certain length, that the build never completes. It's happening for the 'Boot2Qt 5.15.5 Raspberry Pi 3' kit. Windows Desktop minGW kit builds compile OK. The 'Compile Output' continually outputs the following line. 

      D:\Qt\5.15.5\Boot2Qt\raspberrypi3\toolchain\sysroots\i686-pokysdk-mingw32\usr\bin\qmake.exe -o Makefile ..\SwipeViewModel\SwipeViewModel.pro -spec devices/linux-oe-generic-g++ "CONFIG+=debug" "CONFIG+=qml_debug"
      D:\Qt\5.15.5\Boot2Qt\raspberrypi3\toolchain\sysroots\i686-pokysdk-mingw32\usr\bin\qmake.exe -o Makefile ..\SwipeViewModel\SwipeViewModel.pro -spec devices/linux-oe-generic-g++ "CONFIG+=debug" "CONFIG+=qml_debug"
      D:\Qt\5.15.5\Boot2Qt\raspberrypi3\toolchain\sysroots\i686-pokysdk-mingw32\usr\bin\qmake.exe -o Makefile ..\SwipeViewModel\SwipeViewModel.pro -spec devices/linux-oe-generic-g++ "CONFIG+=debug" "CONFIG+=qml_debug"

      Examining Windows Task Manager shows QtCreator has spawned multiple (can be hundreds) instances of make.exe processes from the raspberrypi3 pokysdk-mingw32 toolchain.

      I've tried enabling  the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem key LongPathsEnabled but that makes no difference.

      If I move my Creator project to a location with a shorter file path then the build completes. Interestingly in this case the path used my qmake to the .pro file is absolute, not relative in the case where the build fails to complete.

      12:55:42: Starting: "D:\Qt\5.15.5\Boot2Qt\raspberrypi3\toolchain\sysroots\i686-pokysdk-mingw32\usr\bin\qmake.exe" D:\QtProjects\MyFolderOne\SwipeViewModel\SwipeViewModel.pro -spec devices\linux-oe-generic-g++ "CONFIG+=debug" "CONFIG+=qml_debug"
      

      I've included copies of my projects. The project sub-folder in MyFolderOne compiles, but the project in sub-folder MyFolderTwo does not.

       

       

       

      Attachments

        Issue Links

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

          Activity

            People

              rampe Rami Potinkara
              peterg Peter Grant
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes