您的位置:首页 > 产品设计 > UI/UE

QT错误笔记-Qt Creator needs a compiler set up to build. Configure a compiler in the kit options.

2017-06-16 10:36 645 查看
上午在linux环境下,使用QT编译一段C++代码,出现下列错误:



最近在stackoverflow上找到了答案:

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

For linux

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

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 !!

For Windows

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

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

原文:https://stackoverflow.com/questions/14700965/qt-creator-needs-a-compiler-set-up-to-build-configure-a-compiler-in-the-kit-opt
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐