问题描述
我刚安装了Qt Creator我试图编译时遇到这个错误:
-1:error:Qt Creator需要一个编译器集建立。在工具箱选项中配置编译器。
这的确是非常建议,我在堆栈上阅读其他帖子,完成它。
这些是我从Build& Run - > Compilers的选项:
详情:
- 它是Qt Creator 2.6.1基于Qt 5.0.0 )
- 我已安装visual studio 2012
- 在Qt下载页面上,对于Windows,只有32位选项, 7 64位
LE:这些是套件选项
1)删除它并重新安装Visual Studio 2010 ,Qt 5.0使用此版本的微软C / C ++编译器。
2)从microsft的网站安装提到的SDK编译器direclty。
I just installed Qt Creator ( my first expcerience with it ) and I'm getting this error, when I try to compile:
-1: error: Qt Creator needs a compiler set up to build. Configure a compiler in the kit options.
It's indeed very suggesting, and I read on other post here on stack, but I just couldn't get it done.These are my options from Build&Run -> Compilers:
Details:
- It's Qt Creator 2.6.1 Based on Qt 5.0.0 (32 bit)
- I've installed visual studio 2012
- On the Qt download page , for Windows, there was only 32 bit option, but I have Windows 7 64bit
LE: These are Kits options
What paths must be specified for Sysroot and Qt mkspec?
you are using Visual Studio 2012, The solutions:
1) remove it and reinstall Visual Studio 2010, Qt 5.0 works with this version of microsoft C/C++ compiler.
2) install mentioned SDK compiler direclty from microsft's website.
这篇关于Qt Creator - 如何添加一个编译器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!