上午在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

最新文章

  1. 数据上下文【 DnContext】【EF基础系列7】
  2. 在线研讨会webinars
  3. 使用oracle11g_instant_client来解决在不安装oracle客户端的情况下连接服务端
  4. Java vs. C#
  5. The future of programming languages
  6. sql复制表数据的方法
  7. Repeat Number
  8. Java多线程的~~~synchronized加入参数,以实现独立片段
  9. Two analytical 2d line intersection in OpenCASCADE
  10. [android] xml文件的序列化
  11. 09、 在QQ音乐中查找七里香这首歌的精彩评论
  12. CSS3渐变——径向渐变
  13. iOS:使用莱文斯坦距离算法计算两串字符串的相似度
  14. P4172 [WC2006]水管局长(LCT)
  15. http协议中的一些小常识
  16. what is HTTP OPTIONS verb
  17. msgpack和protobuf的对比
  18. 原生php如何获取当前页面的url
  19. 【转】如何遍历json数据
  20. CentOS 7进入救援模式的方法

热门文章

  1. 【后缀数组】poj2406 Power Strings
  2. 计算最大公约数 Exercise05_14
  3. 【java】递归统计本地磁盘所有文件,提取重复文件,JDK8 map迭代
  4. 使用Ant项目打包
  5. C# 7 新特性-2
  6. iOS:iOS 的 APP 如何适应 iPhone 5s/6/6Plus 三种屏幕的尺寸?
  7. MyBatis学习-偏实践(单独MyBatis项目)
  8. 绝对让你理解Android中的Context
  9. mssql性能优化
  10. Ubuntu(Debian)的aptitude与apt-get的区别和联系