debian源的QT构建QT错误

发布于 2025-02-12 20:19:45 字数 1486 浏览 0 评论 0 原文

我从官方网站

我将其提取在主目录中,并尝试使用命令:

  1. ./ configure -developer -Build

  2. 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一起。

任何帮助将不胜感激。

I downloaded a Qt source from the official site.

I extracted it in home directory and try to build it using commands:

  1. ./configure -developer-build

  2. cmake --build .

But I get this error:

[ 48%] Running moc --collect-json for target tst_qmlsplitlib
Error opening /home/yas/Qt-6.3.1/qtdeclarative/tests/auto/qml/qmlsplitlib/tst_qmlsplitlib_autogen/include/moc_tst_qmlsplitlib_library_tst_qmlsplitlib.cpp.json for reading
gmake[2]: *** [qtdeclarative/tests/auto/qml/qmlsplitlib/CMakeFiles/tst_qmlsplitlib.dir/build.make:75: qtdeclarative/tests/auto/qml/qmlsplitlib/meta_types/qt6tst_qmlsplitlib_debug_metatypes.json.gen] Error 1
gmake[2]: *** Deleting file 'qtdeclarative/tests/auto/qml/qmlsplitlib/meta_types/qt6tst_qmlsplitlib_debug_metatypes.json.gen'
gmake1: *** [CMakeFiles/Makefile2:141639: qtdeclarative/tests/auto/qml/qmlsplitlib/CMakeFiles/tst_qmlsplitlib.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
'''

I have MacBook Pro 2012 and with Debian 11.

Any help would be appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

浮生面具三千个 2025-02-19 20:19:46

用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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文