Qt编译报错:The kit Desktop Qt...has configuration issues which might be the root cause for this problem.

本文介绍了在使用Qt进行项目开发时遇到的配置错误问题及解决方案,主要包括确保项目名称和路径中不含中文字符,并在更改文件夹名称后删除*.pro.user文件,之后重新执行qmake和构建操作。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

报错:

Cannot find file: E:\实验室\20180409_Qt跑马灯\QtTest\QtTest.pro.

17:03:11: 进程"D:\Qt\Qt5.8.0\5.8\msvc2015\bin\qmake.exe"退出,退出代码 2 。

Error while building/deploying project QtTest (kit: Desktop Qt 5.8.0 MSVC2015 32bit)

The kit Desktop Qt 5.8.0 MSVC2015 32bit has configuration issues which might be the root cause for this problem.

When executing step "qmake"

 

 

The kit Desktop Qt...has configuration issues which might be the root cause for this problem.When executing step "qmake"

 

解决方案:

1. 工程名和工程路径不能有中文

2. 修改中文文件夹名称后须将*.pro.user文件删除,然后重新qmake和构建

07:07:55: Starting: "/usr/bin/make" -j32 Makefile:12847: warning: overriding recipe for target 'release_2/moc/moc_config.cpp' Makefile:10731: warning: ignoring old recipe for target 'release_2/moc/moc_config.cpp' Makefile:34171: warning: overriding recipe for target 'release_2/ui/ui_config.h' Makefile:32802: warning: ignoring old recipe for target 'release_2/ui/ui_config.h' /usr/opt/qt15/bin/uic helper/frmmessagebox.ui -o release_2/ui/ui_frmmessagebox.h /usr/opt/qt15/bin/uic qrencode/qzxingwidget.ui -o release_2/ui/ui_qzxingwidget.h /usr/opt/qt15/bin/uic customplugins/date_time_widget.ui -o release_2/ui/ui_date_time_widget.h /usr/opt/qt15/bin/uic customplugins/PageWidget.ui -o release_2/ui/ui_PageWidget.h /usr/opt/qt15/bin/uic config.ui -o release_2/ui/ui_config.h Could not create output file Could not create output file make: *** [Makefile:32453: release_2/ui/ui_frmmessagebox.h] Error 1 make: *** Waiting for unfinished jobs.... make: *** [Makefile:32566: release_2/ui/ui_qzxingwidget.h] Error 1 Could not create output file Could not create output file Could not create output file make: *** [Makefile:32794: release_2/ui/ui_date_time_widget.h] Error 1 make: *** [Makefile:32798: release_2/ui/ui_PageWidget.h] Error 1 make: *** [Makefile:34171: release_2/ui/ui_config.h] Error 1 07:07:56: The process "/usr/bin/make" exited with code 2. Error while building/deploying project Jlink (kit: Desktop) The kit Desktop has configuration issues which might be the root cause for this problem. When executing step "Make" 07:07:56: Elapsed time: 00:01.
03-23
评论 17
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值