忍者能够处理长文件名吗?

问题描述

我正在尝试使用cmake + ninja在win10中构建qt6。我收到以下错误

忍者:错误: Stat(qtquickcontrols2 / src / imports / controls / fusion / impl / CMakeFiles / qtquickcontrols2fusionstyleimplplugin_resources_qtquickcontrols2fusionstyleimplplugin_qml_files_resource_2.dir / .rcc / qmlcache / qmlquickcontrols2fusionsource_mpl.in_loader.pp 文件名超过260个字符

我试图打开注册表中的长文件路径,但这无济于事。 忍者能够处理长文件名吗?

解决方法

尝试构建Qml静态插件时,这是一个错误。

错误报告: https://bugreports.qt.io/browse/QTBUG-88581

如果不需要Qml静态插件,则可以通过将以下参数添加到configure命令来构建没有它们的Qt框架:

-skip qtdeclarative -skip qtquick1 -skip qtquickcontrols \
-skip qtquickcontrols2 -skip qttools -skip qtwebengine