qt creator报错处理积累

1.

在进行qt creator编译qt工程时,报出错误:error while building deploying project。

还可能出现如下提示

qt creator needs a tool chain set up to build. configure a tool chain in projects mode


 

这种情况出现在我打开过去的工程时,而新建的工程却没有出现这个错误。

下面给出解决方案:

1.在报错工程打开情况下,点击qt creator左侧projects栏


在General栏的build directory内重新加载一下该工程的xxx-build-desktop-Qt_xxx_Qt_xxx_Debug。(默认该部分为灰色非使能,点击下面的import exiting build即可使能。)

 

该操作完成后即可正常编译!

 

我想,之所以出现这种情况,是因为重新为qt creator加载过qmake(方法参考http://blog.csdn.net/lyc_daniel/article/details/12942985),这导致新配置的qt creator再编译就工程时找不到debug目录。

 

原文地址:https://www.cnblogs.com/zhouwenJS/p/3754355.html