Qt: ninja: build stopped: subcommand failed.

这篇具有很好参考价值的文章主要介绍了Qt: ninja: build stopped: subcommand failed.。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

目前使用的环境如下:

OS:	Windows 11 Pro 22H2 22624.1610
QtCreator 10.0
QtCreator Build System: CMake, Qt 6.5.0 MinGW64-bit

编译信息如下, 错误貌似与AotoMoc有关:

11:23:34: Running steps for project ErrorRecurrenceApp...
11:23:34: Starting: "C:\Qt\Tools\CMake_64\bin\cmake.exe" --build C:/Users/Administrator/Documents/QTCProjects/build-ErrorRecurrence-Desktop_Qt_6_5_0_MinGW_64_bit-Debug --target all
[1/574 5.0/sec] Generating qml/Main/main.qml
[2/574 9.7/sec] Generating ../../../../../qml/QtQuick/Studio/Components/SvgPathItem.qml
[3/574 13.3/sec] Generating ../../../../../qml/QtQuick/Studio/Components/EllipseItem.qml
[4/574 17.4/sec] Generating ../../../../../qml/QtQuick/Studio/Components/FlipableItem.qml
[5/574 21.2/sec] Generating ../../../../../qml/QtQuick/Studio/Components/PieItem.qml
[6/574 24.7/sec] Generating ../../../../../qml/QtQuick/Studio/Components/ArcItem.qml
[7/574 27.7/sec] Generating ../../../../../qml/QtQuick/Studio/Components/StraightArrow.qml
[8/574 30.4/sec] Generating ../../../../../qml/QtQuick/Studio/Components/TriangleItem.qml
[9/574 32.2/sec] Generating ../../../../../qml/QtQuick/Studio/Components/IsoItem.qml
[10/574 34.2/sec] Generating ../../../../../qml/QtQuick/Studio/Components/RectangleItem.qml
[11/574 36.5/sec] Generating ../../../../../qml/QtQuick/Studio/Components/GroupItem.qml
[12/574 35.9/sec] Generating ../../../../../qml/QtQuick/Studio/Components/BorderItem.qml
[13/574 37.7/sec] Generating ../../../../../qml/QtQuick/Studio/Components/ArcArrow.qml
[14/574 38.3/sec] Generating .rcc/qmlcache/QuickStudioComponents_qmlcache_loader.cpp
[15/574 40.2/sec] Generating ../../../../../qml/QtQuick/Studio/Components/RegularPolygonItem.qml
[16/574 42.1/sec] Automatic MOC and UIC for target QuickStudioComponents_resources_1
[17/574 41.3/sec] Automatic MOC and UIC for target QuickStudioComponents
[18/574 39.1/sec] Generating .rcc/qmlcache/QuickStudioMultiText_qmlcache_loader.cpp
[19/574 39.7/sec] Automatic MOC and UIC for target QuickStudioComponentsplugin_init
[20/574 37.9/sec] Generating ../../../../../qml/QtQuick/Studio/MultiText/MultiTextException.qml
[21/574 38.8/sec] Running AUTOMOC file extraction for target QuickStudioComponents
[22/574 40.2/sec] Automatic MOC and UIC for target QuickStudioEventSystem_resources_2
[23/574 41.2/sec] Automatic MOC and UIC for target QuickStudioComponents_resources_2
[24/574 40.6/sec] Automatic MOC and UIC for target QuickStudioEventSystem_resources_1
[25/574 41.7/sec] Running rcc for resource qmake_QtQuick_Studio_Components
[26/574 42.9/sec] Automatic MOC and UIC for target QuickStudioMultiText
[27/574 44.2/sec] Automatic MOC and UIC for target QuickStudioEventSystem
[28/574 44.7/sec] Automatic MOC and UIC for target QuickStudioMultiText_resources_1
[29/574 45.7/sec] Generating ../../../../../qml/QtQuick/Studio/MultiText/MultiTextElement.qml
[30/574 46.9/sec] Generating ../../../../../qml/QtQuick/Studio/MultiText/MultiTextItem.qml
[31/574 38.2/sec] Automatic MOC and UIC for target QuickStudioEventSystemplugin_init
[32/574 31.8/sec] Running AUTOMOC file extraction for target QuickStudioMultiText
[33/574 32.3/sec] Running moc --collect-json for target QuickStudioComponents
[34/574 32.5/sec] Automatic MOC and UIC for target QuickStudioMultiText_resources_2
[35/574 33.3/sec] Running AUTOMOC file extraction for target QuickStudioEventSystem
[36/574 34.1/sec] Running rcc for resource QuickStudioComponents_raw_qml_0
[37/574 34.9/sec] Automatic MOC and UIC for target QuickStudioComponents_qmlcache
[38/574 34.8/sec] Running moc --collect-json for target QuickStudioMultiText
[39/574 35.6/sec] Building CXX object _deps/ds-build/src/imports/components/CMakeFiles/QuickStudioComponents_resources_1.dir/f88672a08d441cf03b9f8cf7d869a38b/mocs_compilation.cpp.obj
[40/574 36.0/sec] Building CXX object _deps/ds-build/src/imports/components/CMakeFiles/QuickStudioComponentsplugin_init.dir/9d777f3e334334a54a3cc379beec2ab9/mocs_compilation.cpp.obj
[41/574 35.9/sec] Building CXX object _deps/ds-build/src/imports/components/CMakeFiles/QuickStudioComponents_resources_2.dir/b5fc97f1361e3c344fa8cd710bf28f2a/mocs_compilation.cpp.obj
[42/574 36.5/sec] Building CXX object _deps/ds-build/src/imports/components/CMakeFiles/QuickStudioComponents_resources_1.dir/.rcc/qrc_qmake_QtQuick_Studio_Components.cpp.obj
[43/574 36.5/sec] Generating ../../../../../../qml/QtQuick/Studio/EventSystem/EventSystem.qml
[44/574 36.7/sec] Running rcc for resource QuickStudioMultiText_raw_qml_0
[45/574 37.1/sec] Running rcc for resource qmake_QtQuick_Studio_MultiText
[46/574 36.2/sec] Building CXX object _deps/ds-build/src/imports/components/CMakeFiles/QuickStudioComponents_resources_2.dir/.rcc/qrc_QuickStudioComponents_raw_qml_0.cpp.obj
[47/574 36.8/sec] Automatic MOC and UIC for target QuickStudioMultiTextplugin_init
[48/574 37.5/sec] Building CXX object _deps/ds-build/src/imports/components/CMakeFiles/QuickStudioComponents_qmlcache.dir/c8c89d21c3386c4fd776c42dd1d4e1f3/mocs_compilation.cpp.obj
[49/574 37.9/sec] Automatic MOC and UIC for target QuickStudioEventSimulator
[50/574 38.3/sec] Generating ../../../../../../qml/QtQuick/Studio/EventSystem/EventListener.qml
[51/574 38.1/sec] Running AUTOMOC file extraction for target QuickStudioEventSimulator
[52/574 38.3/sec] Building CXX object _deps/ds-build/src/imports/multitext/CMakeFiles/QuickStudioMultiText_resources_2.dir/533296e127a992a70a14a022172cd38e/mocs_compilation.cpp.obj
[53/574 38.8/sec] Building CXX object _deps/ds-build/src/imports/multitext/CMakeFiles/QuickStudioMultiText_resources_2.dir/.rcc/qrc_QuickStudioMultiText_raw_qml_0.cpp.obj
[54/574 38.3/sec] Building CXX object _deps/ds-build/src/imports/multitext/CMakeFiles/QuickStudioMultiTextplugin_init.dir/6a375e0ab84004ec6bdef01dbc84ec98/mocs_compilation.cpp.obj
[55/574 38.7/sec] Automatic MOC and UIC for target QuickStudioMultiText_qmlcache
[56/574 39.0/sec] Generating .rcc/qmlcache/QuickStudioEventSystem_qmlcache_loader.cpp
[57/574 39.5/sec] Automatic QML type registration for target QuickStudioComponents
[58/574 40.0/sec] Generating ../../../../../../qml/QtQuick/Studio/EventSimulator/EventSimulatorDelegate.qml
[59/574 40.5/sec] Running moc --collect-json for target QuickStudioEventSimulator
[60/574 41.0/sec] Generating ../../../../../../qml/QtQuick/Studio/EventSimulator/EventSimulator.qml
[61/574 40.6/sec] Automatic MOC and UIC for target QuickStudioEventSimulator_resources_1
[62/574 38.2/sec] Generating .rcc/qmlcache/QuickStudioEventSimulator_qmlcache_loader.cpp
[63/574 38.4/sec] Automatic QML type registration for target QuickStudioMultiText
[64/574 38.7/sec] Running rcc for resource qmake_QtQuick_Studio_EventSystem
[65/574 35.4/sec] Automatic MOC and UIC for target QuickStudioEventSimulatorplugin_init
[66/574 35.7/sec] Automatic MOC and UIC for target QuickStudioEventSimulator_resources_2
[67/574 34.7/sec] Generating .rcc/qmlcache/QuickStudioComponents_GroupItem_qml.cpp
[68/574 35.1/sec] Generating .rcc/qmlcache/QuickStudioComponents_FlipableItem_qml.cpp
[69/574 35.4/sec] Generating .rcc/qmlcache/QuickStudioComponents_IsoItem_qml.cpp
[70/574 35.4/sec] Generating .rcc/qmlcache/QuickStudioComponents_EllipseItem_qml.cpp
[71/574 35.4/sec] Generating .rcc/qmlcache/QuickStudioComponents_SvgPathItem_qml.cpp
[72/574 35.8/sec] Generating .rcc/qmlcache/QuickStudioComponents_BorderItem_qml.cpp
[73/574 36.1/sec] Generating .rcc/qmlcache/QuickStudioComponents_RectangleItem_qml.cpp
[74/574 36.5/sec] Generating .rcc/qmlcache/QuickStudioComponents_ArcArrow_qml.cpp
[75/574 36.1/sec] Building CXX object _deps/ds-build/src/imports/tools/eventsimulator/CMakeFiles/QuickStudioEventSimulatorplugin_init.dir/3eb5a0da2ee8782eae275510c0102f63/mocs_compilation.cpp.obj
FAILED: _deps/ds-build/src/imports/tools/eventsimulator/CMakeFiles/QuickStudioEventSimulatorplugin_init.dir/3eb5a0da2ee8782eae275510c0102f63/mocs_compilation.cpp.obj 
C:\Qt\Tools\mingw1120_64\bin\g++.exe -DMINGW_HAS_SECURE_API=1 -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_NETWORK_LIB -DQT_PLUGIN -DQT_QMLINTEGRATION_LIB -DQT_QML_LIB -DQT_STATICPLUGIN -DUNICODE -DWIN32 -DWIN64 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_WIN64 -IC:/Users/Administrator/Documents/QTCProjects/build-ErrorRecurrence-Desktop_Qt_6_5_0_MinGW_64_bit-Debug/_deps/ds-build/src/imports/tools/eventsimulator -IC:/Users/Administrator/Documents/QTCProjects/build-ErrorRecurrence-Desktop_Qt_6_5_0_MinGW_64_bit-Debug/_deps/ds-src/src/imports/tools/eventsimulator -IC:/Users/Administrator/Documents/QTCProjects/build-ErrorRecurrence-Desktop_Qt_6_5_0_MinGW_64_bit-Debug/_deps/ds-build/src/imports/tools/eventsimulator/QuickStudioEventSimulatorplugin_init_autogen/include -IC:/Users/Administrator/Documents/QTCProjects/build-ErrorRecurrence-Desktop_Qt_6_5_0_MinGW_64_bit-Debug/_deps/ds-build/src/imports/tools/eventsimulator/QuickStudioEventSimulatorplugin_autogen/include -IC:/Qt/6.5.0/mingw_64/include/QtQml -IC:/Qt/6.5.0/mingw_64/include/QtQmlIntegration -IC:/Qt/6.5.0/mingw_64/include/QtNetwork -isystem C:/Qt/6.5.0/mingw_64/include -isystem C:/Qt/6.5.0/mingw_64/include/QtCore -isystem C:/Qt/6.5.0/mingw_64/mkspecs/win32-g++ -DQT_QML_DEBUG -g -MD -MT _deps/ds-build/src/imports/tools/eventsimulator/CMakeFiles/QuickStudioEventSimulatorplugin_init.dir/3eb5a0da2ee8782eae275510c0102f63/mocs_compilation.cpp.obj -MF _deps\ds-build\src\imports\tools\eventsimulator\CMakeFiles\QuickStudioEventSimulatorplugin_init.dir\3eb5a0da2ee8782eae275510c0102f63\mocs_compilation.cpp.obj.d -o _deps/ds-build/src/imports/tools/eventsimulator/CMakeFiles/QuickStudioEventSimulatorplugin_init.dir/3eb5a0da2ee8782eae275510c0102f63/mocs_compilation.cpp.obj -c C:/Users/Administrator/Documents/QTCProjects/build-ErrorRecurrence-Desktop_Qt_6_5_0_MinGW_64_bit-Debug/_deps/ds-build/src/imports/tools/eventsimulator/QuickStudioEventSimulatorplugin_init_autogen/mocs_compilation.cpp
C:/Users/Administrator/Documents/QTCProjects/build-ErrorRecurrence-Desktop_Qt_6_5_0_MinGW_64_bit-Debug/_deps/ds-build/src/imports/tools/eventsimulator/QuickStudioEventSimulatorplugin_init_autogen/mocs_compilation.cpp:3:47: fatal error: opening dependency file _deps\ds-build\src\imports\tools\eventsimulator\CMakeFiles\QuickStudioEventSimulatorplugin_init.dir\3eb5a0da2ee8782eae275510c0102f63\mocs_compilation.cpp.obj.d: No such file or directory
    3 | enum some_compilers { need_more_than_nothing };
      |                                               ^
compilation terminated.
[76/574 36.4/sec] Generating .rcc/qmlcache/QuickStudioComponents_ArcItem_qml.cpp
[77/574 36.9/sec] Generating .rcc/qmlcache/QuickStudioComponents_RegularPolygonItem_qml.cpp
[78/574 37.0/sec] Running rcc for resource qmake_QtQuick_Studio_EventSimulator
[79/574 37.2/sec] Running rcc for resource QuickStudioEventSimulator_raw_qml_0
[80/574 37.1/sec] Automatic QML type registration for target QuickStudioEventSimulator
[81/574 37.0/sec] Generating .rcc/qmlcache/QuickStudioComponents_PieItem_qml.cpp
[82/574 37.2/sec] Generating .rcc/qmlcache/QuickStudioComponents_StraightArrow_qml.cpp
[83/574 37.5/sec] Generating .rcc/qmlcache/QuickStudioComponents_TriangleItem_qml.cpp
[84/574 23.8/sec] Automatic MOC and UIC for target QuickStudioEventSimulatorplugin
FAILED: _deps/ds-build/src/imports/tools/eventsimulator/QuickStudioEventSimulatorplugin_autogen/timestamp _deps/ds-build/src/imports/tools/eventsimulator/QuickStudioEventSimulatorplugin_autogen/mocs_compilation.cpp C:/Users/Administrator/Documents/QTCProjects/build-ErrorRecurrence-Desktop_Qt_6_5_0_MinGW_64_bit-Debug/_deps/ds-build/src/imports/tools/eventsimulator/QuickStudioEventSimulatorplugin_autogen/timestamp C:/Users/Administrator/Documents/QTCProjects/build-ErrorRecurrence-Desktop_Qt_6_5_0_MinGW_64_bit-Debug/_deps/ds-build/src/imports/tools/eventsimulator/QuickStudioEventSimulatorplugin_autogen/mocs_compilation.cpp 
cmd.exe /C "cd /D C:\Users\Administrator\Documents\QTCProjects\build-ErrorRecurrence-Desktop_Qt_6_5_0_MinGW_64_bit-Debug\_deps\ds-build\src\imports\tools\eventsimulator && C:\Qt\Tools\CMake_64\bin\cmake.exe -E cmake_autogen C:/Users/Administrator/Documents/QTCProjects/build-ErrorRecurrence-Desktop_Qt_6_5_0_MinGW_64_bit-Debug/_deps/ds-build/src/imports/tools/eventsimulator/CMakeFiles/QuickStudioEventSimulatorplugin_autogen.dir/AutogenInfo.json Debug && C:\Qt\Tools\CMake_64\bin\cmake.exe -E touch C:/Users/Administrator/Documents/QTCProjects/build-ErrorRecurrence-Desktop_Qt_6_5_0_MinGW_64_bit-Debug/_deps/ds-build/src/imports/tools/eventsimulator/QuickStudioEventSimulatorplugin_autogen/timestamp && C:\Qt\Tools\CMake_64\bin\cmake.exe -E cmake_transform_depfile Ninja gccdepfile C:/Users/Administrator/Documents/QTCProjects/ErrorRecurrence C:/Users/Administrator/Documents/QTCProjects/build-ErrorRecurrence-Desktop_Qt_6_5_0_MinGW_64_bit-Debug/_deps/ds-src/src/imports/tools/eventsimulator C:/Users/Administrator/Documents/QTCProjects/build-ErrorRecurrence-Desktop_Qt_6_5_0_MinGW_64_bit-Debug C:/Users/Administrator/Documents/QTCProjects/build-ErrorRecurrence-Desktop_Qt_6_5_0_MinGW_64_bit-Debug/_deps/ds-build/src/imports/tools/eventsimulator C:/Users/Administrator/Documents/QTCProjects/build-ErrorRecurrence-Desktop_Qt_6_5_0_MinGW_64_bit-Debug/_deps/ds-build/src/imports/tools/eventsimulator/QuickStudioEventSimulatorplugin_autogen/deps C:/Users/Administrator/Documents/QTCProjects/build-ErrorRecurrence-Desktop_Qt_6_5_0_MinGW_64_bit-Debug/CMakeFiles/d/54209dda8348b627db428eb309d33a47cc34817de29273e8e1826e5dfed658ab.d"

AutoMoc subprocess error
------------------------
The moc process failed to compile
  "BIN:/_deps/ds-build/src/imports/tools/eventsimulator/QuickStudioEventSimulatorplugin_QtQuick_Studio_EventSimulatorPlugin.cpp"
into
  "BIN:/_deps/ds-build/src/imports/tools/eventsimulator/QuickStudioEventSimulatorplugin_autogen/include/QuickStudioEventSimulatorplugin_QtQuick_Studio_EventSimulatorPlugin.moc"
included by
  "BIN:/_deps/ds-build/src/imports/tools/eventsimulator/QuickStudioEventSimulatorplugin_QtQuick_Studio_EventSimulatorPlugin.cpp"

Command
-------
C:/Qt/6.5.0/mingw_64/./bin/moc.exe -DMINGW_HAS_SECURE_API=1 -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_NETWORK_LIB -DQT_PLUGIN -DQT_QMLINTEGRATION_LIB -DQT_QML_LIB -DQT_STATICPLUGIN -DUNICODE -DWIN32 -DWIN64 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_WIN64 -IC:/Users/Administrator/Documents/QTCProjects/build-ErrorRecurrence-Desktop_Qt_6_5_0_MinGW_64_bit-Debug/_deps/ds-build/src/imports/tools/eventsimulator -IC:/Users/Administrator/Documents/QTCProjects/build-ErrorRecurrence-Desktop_Qt_6_5_0_MinGW_64_bit-Debug/_deps/ds-src/src/imports/tools/eventsimulator -IC:/Qt/6.5.0/mingw_64/include/QtQml -IC:/Qt/6.5.0/mingw_64/include -IC:/Qt/6.5.0/mingw_64/include/QtCore -IC:/Qt/6.5.0/mingw_64/mkspecs/win32-g++ -IC:/Qt/6.5.0/mingw_64/include/QtQmlIntegration -IC:/Qt/6.5.0/mingw_64/include/QtNetwork -IC:/Qt/Tools/mingw1120_64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++ -IC:/Qt/Tools/mingw1120_64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/x86_64-w64-mingw32 -IC:/Qt/Tools/mingw1120_64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/backward -IC:/Qt/Tools/mingw1120_64/lib/gcc/x86_64-w64-mingw32/11.2.0/include -IC:/Qt/Tools/mingw1120_64/lib/gcc/x86_64-w64-mingw32/11.2.0/include-fixed -IC:/Qt/Tools/mingw1120_64/x86_64-w64-mingw32/include --include C:/Users/Administrator/Documents/QTCProjects/build-ErrorRecurrence-Desktop_Qt_6_5_0_MinGW_64_bit-Debug/_deps/ds-build/src/imports/tools/eventsimulator/QuickStudioEventSimulatorplugin_autogen/moc_predefs.h -Muri=QtQuick.Studio.EventSimulator --output-dep-file -o C:/Users/Administrator/Documents/QTCProjects/build-ErrorRecurrence-Desktop_Qt_6_5_0_MinGW_64_bit-Debug/_deps/ds-build/src/imports/tools/eventsimulator/QuickStudioEventSimulatorplugin_autogen/include/QuickStudioEventSimulatorplugin_QtQuick_Studio_EventSimulatorPlugin.moc C:/Users/Administrator/Documents/QTCProjects/build-ErrorRecurrence-Desktop_Qt_6_5_0_MinGW_64_bit-Debug/_deps/ds-build/src/imports/tools/eventsimulator/QuickStudioEventSimulatorplugin_QtQuick_Studio_EventSimulatorPlugin.cpp

Output
------
moc: Cannot create C:/Users/Administrator/Documents/QTCProjects/build-ErrorRecurrence-Desktop_Qt_6_5_0_MinGW_64_bit-Debug/_deps/ds-build/src/imports/tools/eventsimulator/QuickStudioEventSimulatorplugin_autogen/include/QuickStudioEventSimulatorplugin_QtQuick_Studio_EventSimulatorPlugin.moc

[85/574 23.6/sec] Automatic MOC and UIC for target QuickStudioEventSystemplugin
AutoMoc: moc: Cannot create dep output file 'C:/Users/Administrator/Documents/QTCProjects/build-ErrorRecurrence-Desktop_Qt_6_5_0_MinGW_64_bit-Debug/_deps/ds-build/src/imports/tools/eventsystem/QuickStudioEventSystemplugin_autogen/include/QuickStudioEventSystemplugin_QtQuick_Studio_EventSystemPlugin.moc.d'. No such file or directory
AutoMoc warning: Dependency file "BIN:/_deps/ds-build/src/imports/tools/eventsystem/QuickStudioEventSystemplugin_autogen/include/QuickStudioEventSystemplugin_QtQuick_Studio_EventSystemPlugin.moc.d" does not exist.

[86/574 21.7/sec] Automatic MOC and UIC for target QuickStudioComponentsplugin
[87/574 22.0/sec] Automatic MOC and UIC for target QuickStudioMultiTextplugin
[88/574 19.6/sec] Building CXX object _deps/ds-build/src/imports/components/CMakeFiles/QuickStudioComponentsplugin_init.dir/QuickStudioComponentsplugin_init.cpp.obj
[89/574 19.6/sec] Building CXX object _deps/ds-build/src/imports/multitext/CMakeFiles/QuickStudioMultiTextplugin_init.dir/QuickStudioMultiTextplugin_init.cpp.obj
[90/574 19.4/sec] Building CXX object _deps/ds-build/src/imports/tools/eventsimulator/CMakeFiles/QuickStudioEventSimulatorplugin_init.dir/QuickStudioEventSimulatorplugin_init.cpp.obj
[91/574 18.6/sec] Running qmlimportscanner for ErrorRecurrenceApp
[92/574 18.8/sec] Building CXX object _deps/ds-build/src/imports/components/CMakeFiles/QuickStudioComponents_qmlcache.dir/.rcc/qmlcache/QuickStudioComponents_qmlcache_loader.cpp.obj
ninja: build stopped: subcommand failed.
11:23:39: The process "C:\Qt\Tools\CMake_64\bin\cmake.exe" exited with code 1.
Error while building/deploying project ErrorRecurrenceApp (kit: Desktop Qt 6.5.0 MinGW 64-bit)
When executing step "Build"
11:23:39: Elapsed time: 00:05.


我是如何解决的:
将项目移动至C盘以外的位置, 最后Build成功, 猜测可能是权限不足之类的, 目前没有找到其他解决方案
Qt: ninja: build stopped: subcommand failed.
当然也有尝试过使用管理员权限启动Qt Creator, 结果以失败告终


最后, QtCreator 10.0创建项目可勾选Create a project that you can open in Qt Design Studio, 之后会创建Qt Design Studio项目在同级文件夹, 且所有文件自动关联, Qt Creator运行界面和Qt Design Studio将会保持一致, 解决了我一直在将Qt Design Studio项目转换为Qt Creator项目的问题, 方便且省事:
Qt: ninja: build stopped: subcommand failed.
Qt: ninja: build stopped: subcommand failed.
非常好用!文章来源地址https://www.toymoban.com/news/detail-509353.html

到了这里,关于Qt: ninja: build stopped: subcommand failed.的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • 关于VS code ESP-IDF 提示“loading ‘build.ninja‘: 系统找不到指定的文件” 的解决方案

    最近在搞一个开源项目玩,需要用IDF编译工程,奈何之前没用过IDF,只好自己装一下,又不想放弃VS code的便捷;后面发现VS code可以支持IDF平台,就在VS code中安装了;如何安装不再本文赘述,网上很多博客可以参考;本文仅阐述如何将工程编译并下载到设备; 将工程在Vs code I

    2024年02月02日
    浏览(60)
  • Android13 编译ninja failed with: exit status 137

    现象很奇怪,主机是ubuntu 18.04, 内存有32G,并且系统中有两份Android13代码, 有一份编译正常,另外一份编译不正常,一度以为是因为下载源码不齐全导致,后面仔细看日志,原来是内存不够,导致OOM-killer杀死了。 分析: 当前界面没有太多可以参考的出错信息,看日志: 

    2024年02月22日
    浏览(49)
  • ESP32C3:ninja failed with exit code 1解决方案

    这个图片是CSDN上偷的= =,自己解决了截不到图了 特征是:使用 ESP-IDF PowerShell 最后两行出现 第一步 找到安装IDF工具的安装包(离线版) https://dl.espressif.cn/dl/esp-idf/ 离线安装版快速跳转Click Here 打开后第三行 检查 Windows 注册表中的“启用长路径” [正常] 是不正常的 我是这个方

    2023年04月27日
    浏览(93)
  • Android单编模块报FAILED: ninja: unknown target ‘MODULES-IN-vendor错误解决

    有时我们需要单编Android AOSP一个APK或库文件或二进制,用来调试。 但可能这个模块本身是不参与系统整编编译的。我们在使用mmm或mm单独编译时就会报这个错误。 在检查Android.mk或Android.bp无误后,就要怀疑是不是这个目录的上级目录是不是没有包含这个目录的Android.mk,导致编

    2024年02月04日
    浏览(46)
  • Android.mk编译错误 FAILED: ninja: unknown target ‘MODULES-IN-packages-apps-XXXX‘

    Android源码中编译app时报如下错误: [ 91% 205/223] including system/sepolicy/Android.mk ... system/sepolicy/Android.mk:57: warning: BOARD_PLAT_PUBLIC_SEPOLICY_DIR has been deprecated. Use SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS instead. system/sepolicy/Android.mk:62: warning: BOARD_PLAT_PRIVATE_SEPOLICY_DIR has been deprecated. Use SYSTEM_EXT_PRIVATE_SEPO

    2023年04月17日
    浏览(64)
  • 解决mysql启动时的Failed to start LSB: start and stop MySQL问题

    前言: 在下载glibc版本的Mysql时,启动mysql服务时出现了如下错误 网上搜了许多种方法:查看错误日志,或者df -h查看磁盘是否已满等都未解决,后来尝试了重新对数据库进行初始化后才解决了该问题.  数据库初始化: 在对数据库重新进行初始化之前,需要事先删除 /usr/loc

    2024年02月07日
    浏览(53)
  • Mysql问题:Failed to stop mysqld.service: Unit mysqld.service not loaded

    1 环境 :ubuntu 2 问题描述 : 停止mysql服务,输入命令: 出现如下报错: 3 解决 : 输入命令: 执行结果: 停止mysql服务,再次输入命令: 4 验证 : 查询mysql进程,输入命令: 执行结果: 没有mysql进程,说明mysql已经关闭。

    2024年02月16日
    浏览(52)
  • nginx: [error] OpenEvent(“Global\ngx_stop_15792“) failed (5: Access is denied)

    Windows,在cmd窗口使用命令 nginx.exe -s stop 停止nginx,报以下错误: nginx: [error] OpenEvent(“Globalngx_stop_15792”) failed (5: Access is denied) 1、报错使用场景 主要是想通过Java做一个Windows的控制面板,来控制这些中间件的开启和停止; Java代码执行 nginx.exe -s stop 和cmd窗口执行报错一致。

    2024年02月15日
    浏览(42)
  • Centos7关闭防火墙报错:Failed to stop firewall.service: Unit firewall.service not loaded.

    报错异常: 异常原因: 使用命令systemctl stop firewall.service关闭防火墙命令报错,原因可能是 centos版本的不一样,命令也发生了相关改动 解决方法: 输入新的命令 小节:

    2024年02月04日
    浏览(33)
  • nginx报错 - OpenEvent(“Global\ngx_stop_1676“)failed (2: The system cannot find the file specified

    在cmd中运行start nginx之后再运行 nginx -s stop 或者nginx -s reload 的都会报以下的错误。 nginx: [error] OpenEvent(“Globalngx_stop_1676”) failed (2: The systemcannot find the file specified) 其实这个报错意思就是你的nginx并未启动成功,那么为什么会出现nginx无法正常启动呢,可能是端口导致的问题

    2024年02月16日
    浏览(57)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包