Qt Creator编译时:cannot open file 'debugQtGuiEx.exe' File not found

Qt Creator编译时:cannot open file 'debugQtGuiEx.exe' File not found

利用Qt Creator编译工程时,出现如题目所示的错误,其中红色部分是工程名称。

Qt Creator编译时:cannot open file 'debugQtGuiEx.exe' File not found

在Qt Creator的Build栏中,点击clean all 和 clean project "QtGuiEx",后,再进行编译,仍然出现该错误。

Qt Creator编译时:cannot open file 'debugQtGuiEx.exe' File not found


在工程目录下,发现debug文件夹内存在QtGuiEx.exe。

Qt Creator编译时:cannot open file 'debugQtGuiEx.exe' File not found


既然存在该文件,为什么还打不开呢?猛然见发现,上次debug(或run)时产生的ui窗口(或界面)还没有关闭。

关闭ui窗口(或界面)后,再进行build,就不再出现该错误,并能正常编译。



文档信息