Qt Creator 需要一个编译器来构建.在套件选项中配置编译器 [英] Qt Creator needs a compiler set up to build. Configure a compiler in the kit options

查看:54
本文介绍了Qt Creator 需要一个编译器来构建.在套件选项中配置编译器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了带有最新二进制文件的 Qt Creator5.但是当我运行任何程序时,它给了我这个错误.

I Have Installed Qt Creator5 with latest binaries. but when i am running any program it is giving me this error.

:-1: 错误:Qt Creator 需要设置编译器才能构建.在套件选项中配置编译器.

我在整个互联网上搜索了答案,但它的不足且无济于事.请回复消除此错误的方法.

i have searched the whole internet for answer but its inadequate and not helping. kindly reply the way to get rid of this error.

推荐答案

我也遇到了同样的问题,所以我所做的是

i was also having the same problem so what i did is

Linux

sudo apt-get install g++ 
sudo apt-get install libgl1-mesa-dev libglu1-mesa-dev

然后关闭qt创建器并重新启动它并且它工作

and then closed the qt creator and restarted it and it worked

我不知道上面两个中的哪一个使它起作用,但它起作用了!!

i do not know which of the above two made it work but it worked !!

Windows

下面给出的解决方案对少数人有用.所以值得一试.

Below given solution have worked for few people. so it is worth a try.

删除这个文件C:\Users\AppData\Roaming\QtProject\qtcreator\toolchains.xml解决问题.

Delete this file C:\Users\AppData\Roaming\QtProject\qtcreator\toolchains.xml to solve the problem.

这篇关于Qt Creator 需要一个编译器来构建.在套件选项中配置编译器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆