【问题标题】:Is ninja able to handle long filename?忍者能处理长文件名吗?
【发布时间】:2020-11-11 13:14:22
【问题描述】:

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

忍者:错误: 统计(qtquickcontrols2/src/imports/controls/fusion/impl/CMakeFiles/qtquickcontrols2fusionstyleimplplugin_resources_qtquickcontrols2fusionstyleimplplugin_qml_files_resource_2.dir/.rcc/qmlcache/qtquickcontrols2fusionstyleimplplugin_qml_files_resource_2/qmlcache_loader.cpp.obj): 文件名超过 260 个字符

我尝试打开注册表中的长文件路径,但没有帮助。 忍者能处理长文件名吗?

【问题讨论】:

    标签: ninja


    【解决方案1】:

    这是尝试构建 Qml 静态插件时的错误。

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

    如果你不需要 Qml 静态插件,你可以在没有它们的情况下构建 Qt 框架,方法是将这些参数添加到配置命令中:

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

    【讨论】:

      猜你喜欢
      • 2015-03-21
      • 2017-07-11
      • 2011-03-17
      • 1970-01-01
      • 2018-08-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多