如何添加一个编译器

如何添加一个编译器

本文介绍了Qt Creator - 如何添加一个编译器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚安装了Qt Creator我试图编译时遇到这个错误:



-1:error:Qt Creator需要一个编译器集建立。在工具箱选项中配置编译器。



这的确是非常建议,我在堆栈上阅读其他帖子,完成它。
这些是我从Build& Run - > Compilers的选项:



详情:


  1. 它是Qt Creator 2.6.1基于Qt 5.0.0 )

  2. 我已安装visual studio 2012

  3. 在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:

  1. It's Qt Creator 2.6.1 Based on Qt 5.0.0 (32 bit)
  2. I've installed visual studio 2012
  3. 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 - 如何添加一个编译器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-19 18:59