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

qtquickcontrols2 won't build due to .objs getting too long paths for MSVC in static builds

    XMLWordPrintable

    Details

    • Platform/s:
      Windows
    • Commits:
      08eb485a006dc2baca42eb280ae60e9f0fc00dff (qt/qtdeclarative/dev) 951a4cb3a9c66efac574826cf6fe7aca02a5e101 (qt/qtdeclarative/6.0) 2548438e326d20eda2eb4398139164f5400d22ac (qt/qtbase/dev) c4888edfb84dc77fb25d46f468f0d11d5d1b4a89 (qt/tqtc-qtbase/6.0)

      Description

      Configuring Qt 6.0.0 beta5 with

      C:\tst>C:\Qt\6.0.0\Src\configure.bat -nomake examples -nomake tests -confirm-license -commercial -static 
      

      from the source package (downloaded via maintenancetool) results in:

      -- Configuring done
      CMake Warning in qtquickcontrols2/src/imports/controls/fusion/impl/CMakeLists.txt:
        The object file directory
      
          C:/tst/qtquickcontrols2/src/imports/controls/fusion/impl/CMakeFiles/qtquickcontrols2fusionstyleimplplugin_resources_qtquickcontrols2fusionstyleimplplugin_qml_files_resource_2.dir/./
      
        has 181 characters.  The maximum full path to an object file is 250
        characters (see CMAKE_OBJECT_PATH_MAX).  Object file
      
          __/__/__/__/__/__/qttools/qt_Qml_QQmlNativeDebugServiceFactory.cpp.obj
      
        cannot be safely placed under this directory.  The build may not work
        correctly.
      
      
      CMake Warning in qtquickcontrols2/src/imports/controls/imagine/impl/CMakeLists.txt:
        The object file directory
      
          C:/tst/qtquickcontrols2/src/imports/controls/imagine/impl/CMakeFiles/qtquickcontrols2imaginestyleimplplugin_resources_qtquickcontrols2imaginestyleimplplugin_qml_files_resource_2.dir/./
      
        has 184 characters.  The maximum full path to an object file is 250
        characters (see CMAKE_OBJECT_PATH_MAX).  Object file
      
          __/__/__/__/__/__/qtdoc/qt_Qml_QLocalClientConnectionFactory.cpp.obj
      
        cannot be safely placed under this directory.  The build may not work
        correctly.
      
      
      CMake Warning in qtquickcontrols2/src/imports/controls/material/CMakeLists.txt:
        The object file directory
      
          C:/tst/qtquickcontrols2/src/imports/controls/material/CMakeFiles/qtquickcontrols2materialstyleplugin_resources_qtquickcontrols2materialstyleplugin_qml_files_resource_2.dir/./
      
        has 174 characters.  The maximum full path to an object file is 250
        characters (see CMAKE_OBJECT_PATH_MAX).  Object file
      
          __/__/__/__/__/qtquicktimeline/qt_Qml_QQmlNativeDebugConnectorFactory.cpp.obj
      
        cannot be safely placed under this directory.  The build may not work
        correctly.
      
      
      CMake Warning in qtquickcontrols2/src/imports/controls/material/impl/CMakeLists.txt:
        The object file directory
      
          C:/tst/qtquickcontrols2/src/imports/controls/material/impl/CMakeFiles/qtquickcontrols2materialstyleimplplugin_resources_qtquickcontrols2materialstyleimplplugin_qml_files_resource_2.dir/./
      
        has 187 characters.  The maximum full path to an object file is 250
        characters (see CMAKE_OBJECT_PATH_MAX).  Object file
      
          __/__/__/__/__/__/qttools/qt_Qml_QQmlNativeDebugConnectorFactory.cpp.obj
      
        cannot be safely placed under this directory.  The build may not work
        correctly.
      
      
      CMake Warning in qtquickcontrols2/src/imports/controls/universal/CMakeLists.txt:
        The object file directory
      
          C:/tst/qtquickcontrols2/src/imports/controls/universal/CMakeFiles/qtquickcontrols2universalstyleplugin_resources_qtquickcontrols2universalstyleplugin_qml_files_resource_2.dir/./
      
        has 177 characters.  The maximum full path to an object file is 250
        characters (see CMAKE_OBJECT_PATH_MAX).  Object file
      
          __/__/__/__/__/qtquicktimeline/qt_Qml_QLocalClientConnectionFactory.cpp.obj
      
        cannot be safely placed under this directory.  The build may not work
        correctly.
      
      
      CMake Warning in qtquickcontrols2/src/imports/controls/universal/impl/CMakeLists.txt:
        The object file directory
      
          C:/tst/qtquickcontrols2/src/imports/controls/universal/impl/CMakeFiles/qtquickcontrols2universalstyleimplplugin_resources_qtquickcontrols2universalstyleimplplugin_qml_files_resource_2.dir/./
      
        has 190 characters.  The maximum full path to an object file is 250
        characters (see CMAKE_OBJECT_PATH_MAX).  Object file
      
          __/__/__/__/__/__/qttools/qt_Qml_QQmlPreviewServiceFactory.cpp.obj
      
        cannot be safely placed under this directory.  The build may not work
        correctly.
      
      
      -- Generating done
      -- Build files have been written to: C:/tst
      

      After which running cmake --build . would result in:

      ninja: error: Stat(qtquickcontrols2/src/imports/controls/universal/impl/CMakeFiles/qtquickcontrols2universalstyleimplplugin_resources_qtquickcontrols2universalstyleimplplugin_qml_files_resource_2.dir/__/__/__/__/__/__/qtquicktimeline/qt_Qml_QQmlNativeDebugConnectorFactory.cpp.obj): Filename longer than 260 characters
      

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              semlanik Alexey Edelev
              Reporter:
              miikapernu Miika Pernu
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes