错误信息为:
:-1: error: No rule to make target ‘C:/Qt/Qt5.8.0/5.8/mingw53_32/bin/uic.exe’, needed by ‘ui_widget.h’. Stop.
mingw32-make[1]: *** No rule to make target ‘C:/Qt/Qt5.8.0/5.8/mingw53_32/bin/uic.exe’, needed by ‘ui_widget.h’. Stop.
Makefile:34: recipe for target ‘debug’ failed
mingw32-make: *** [debug] Error 2
16:05:25: 进程”C:\Qt\Qt5.8.0\Tools\mingw530_32\bin\mingw32-make.exe”退出,退出代码 2 。
Error while building/deploying project myPainter (kit: Desktop Qt 5.8.0 MinGW 32bit)
When executing step “Make”
原因是你的环境变量中有路径包含mingw32-make文件,这样Qt使用的就不是Qt自己目录中的程序了,需要在项目设置中
清除系统环境变量