Qt Creator needs a compiler set up to build. Configure a compiler in the kit options

Windows64位平台

Qt Creator报错:

"Qt Creator needs a compiler set up to build. Configure a compiler in the kit options".

报错原因:未设置好编译器路径

解决办法:

打开“项目”,看到“未命名”套件的“构建”:

Qt Creator needs a compiler set up to build. Configure a compiler in the kit options

由于其Make套件中为设置编译器,所以报错

 

 

在“项目”选择“管理套件”  

Qt Creator needs a compiler set up to build. Configure a compiler in the kit options手动设置zhongjia套件,编译器、调试器、QT、Cmake tool一定要设置好 

并将zhongjia设置为默认。回到“项目”的界面,并“添加构建套件”将设置好的zhongjia套件添加。

可以看到“zhongjia”套件的“构建”设置好了编译器:

 

Qt Creator needs a compiler set up to build. Configure a compiler in the kit options

可以正常运行程序了