Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
None
-
6.0.0
Description
ninja build fails due to hitting path length constrains.
e.g.
CMake Warning in src/imports/nativestyle/CMakeLists.txt: The object file directory G:/qt6/buildtrees/qtquickcontrols2/x64-windows-static-rel/src/imports/nativestyle/CMakeFiles/qtquickcontrols2nativestyleplugin_resources_qtquickcontrols2nativestyleplugin_qml_files_resource_2.dir/./ has 198 characters. The maximum full path to an object file is 250 characters (see CMAKE_OBJECT_PATH_MAX). Object file .rcc/qmlcache/qtquickcontrols2nativestyleplugin_qml_files_resource_2/qmlcache_loader.cpp.obj cannot be safely placed under this directory. The build may not work correctly.
even without
qt6/buildtrees/qtquickcontrols2/x64-windows-static-rel/
the path would hit 236 characters which is only 14 short of the limit. It would thus be good if the name of `qtquickcontrols2nativestyleplugin_resources_qtquickcontrols2nativestyleplugin_qml_files_resource_2` could be shortened somehow.
why is https://bugreports.qt.io/browse/QTBUG-88581 closed?
Attachments
Issue Links
- relates to
-
QTBUG-88581 qtquickcontrols2 won't build due to .objs getting too long paths for MSVC in static builds
-
- Closed
-