debian源的QT构建QT错误
我从官方网站。
我将其提取在主目录中,并尝试使用命令:
-
./ configure -developer -Build
-
cmake -build。
,但我得到此错误:
[48%]运行MOC-目标TST_QMLSPLITLIB的收集-JSON 错误打开/home/yas/qt-6.3.1/qtdeclarative/tests/auto/qml/qml/qml/qmlsplitlib/tst_qmlsplitlib_autogen/include/moc_tst_qmlsplib_library_tst_qmlsplitlib.cppppplitlib.cppp.jjjjqmsonson fording gmake [2]:*** [qtdeclarative/tests/auto/qml/qmlsplitlib/cmakefiles/tst_qmlsplitlib.dir/build.make.make:75: qtdeclarative/tests/auto/qml/qmlsplitlib/meta_types/qt6tst_qmlsplitlib_debug_metatypes.json.gen.gen]错误1 gmake [2]:***删除文件'qtdeclarative/tests/auto/qml/qmlsplitlib/meta_types/qt6tst_qmlsplitlib_debug_metatypes.json.gen'' gmake :*** [cmakefiles/makefile2:141639: qtdeclarative/tests/auto/qml/qmlsplitlib/cmakefiles/tst_qmlsplitlib.dir/all]错误2 gmake:*** [makefile:146:全]错误2 '''
我拥有2012年MacBook Pro,并与Debian 11一起。
任何帮助将不胜感激。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
用Make建造QT6并不真正支持。在配置输出中,应该警告一下。
请安装忍者并尝试再次配置。配置脚本将检测忍者的存在并使用CMAKE的忍者发电机。
您没有共享您使用的CMAKE版本。请使用最近的CMAKE,最好的东西> 3.22。
如果您不打算运行AutoTests,请使用
-Nomake Tests
进行配置。最后,请在
Building Qt6 with make is not really supported. There should be a CMake warning about that in the configure output.
Please install ninja and try to configure again. The configure script will detect ninja's presence and use CMake's ninja generator.
You didn't share the CMake version you're using. Please use a recent CMake, best something > 3.22.
If you don't plan to run the autotests, configure with
-nomake tests
.Lastly, please report such build problems at https://bugreports.qt.io/ - that's a better place to reach us.