Qt 5 beta2,Qt Creator 2.6,MSVC错误:Qt Creator需要一个编译器设置来构建。在工具包选项中配置编译器 [英] Qt 5 beta2, Qt Creator 2.6, MSVC error: Qt Creator needs a compiler set up to build. Configure a compiler in the kit options

查看:1158
本文介绍了Qt 5 beta2,Qt Creator 2.6,MSVC错误:Qt Creator需要一个编译器设置来构建。在工具包选项中配置编译器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能重复:

用于Qt Creator的VC ++编译器

我是一个新手。我试图编译以下代码在qt creator 2.6与Qt 5测试版Windows附带:

I am a newbie. I am trying to compile following code in qt creator 2.6 shipped with Qt 5 beta for windows:

#include <QCoreApplication>
#include <QDebug>
int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
    qDebug() << "hello Qt5";
    return a.exec();
}

我收到以下错误:

Qt Creator needs a compiler set up to build. Configure a compiler in the kit options.
File not found:

Qt creator> tools> options> build and run>如下所示:
名称:

自动检测:

Desktop Qt 5.0.0 beta2 MSVC2010 32位(SDK)(默认)

手动: (无)

这里的重要事情是没有选择编译器

Qt creator > tools > options > build and run > kits is as follows: Name:
Auto-detect:
Desktop Qt 5.0.0 beta2 MSVC2010 32bit (SDK) (default)
Manual: (none)
Important thing here is there is no compiler selected

当我点击管理按钮时, 编译器标签:

自动检测:

适用于Windows 7的Microsoft Windows SDK(7.1.1700.0.30514)(x86)

Microsoft Windows SDK Windows 7(7.1.1700.0.30514)(amd64)

适用于Windows 7的Microsoft Windows SDK(7.1.1700.0.30514)(ia64)

适用于Windows 7的Microsoft Windows SDK(7.1 .1700.0.30514)()

....

When i click on "manage" button, it takes me to "compilers" tab :
Auto-detect:
Microsoft Windows SDK for Windows 7 (7.1.1700.0.30514)(x86)
Microsoft Windows SDK for Windows 7 (7.1.1700.0.30514)(amd64)
Microsoft Windows SDK for Windows 7 (7.1.1700.0.30514)(ia64)
Microsoft Windows SDK for Windows 7 (7.1.1700.0.30514)()
....

Microsoft Visual C ++编译器10.0(x86)

Microsoft Visual C ++编译器10.0(x86)

Microsoft Visual C ++编译器10.0(amd64)

...

Microsoft Visual C++ Compiler 10.0 (x86)
Microsoft Visual C++ Compiler 10.0 (x86)
Microsoft Visual C++ Compiler 10.0 (amd64)
...

如下所示:

自动检测:Qt 5.0.0 beta2 MSVC2010 32位(SDK)

Qt versions tab is as follows:
Auto-detect: Qt 5.0.0 beta2 MSVC2010 32bit (SDK)

我使用的是:
操作系统:Windows 7


首先我试过Windows 7和.NET Framework 4的Microsoft Windows SDK,但无法编译代码。然后我安装VS2010,也编译失败。


任何身体可以帮助我吗?

I am using: OS: Windows 7
First I tried "Microsoft Windows SDK for Windows 7 and .NET Framework 4" and failed to compile the code. Then i installed VS2010 and also failed to compile.
Can any body help me??

我想发布我的qt creator 2.6 Build和Run选项的图片,但Stack Overflow不允许我这样做,因为我是一个新成员

I wanted to post images of my qt creator 2.6 Build and Run options, but Stack Overflow did not allow me to do so as I am a new member of it.

提前感谢

推荐答案

前往Qt版本选项卡,在帮助程序行中选择详细信息按钮,并选择要使用的编译器(它必须与用于编译Qt库的编译器兼容)。

Go to the "Qt Versions" tab, select the Details button in the Helpers row and select the compiler that you want to use (it must be compatible with the compiler used to compile the Qt libraries).

这篇关于Qt 5 beta2,Qt Creator 2.6,MSVC错误:Qt Creator需要一个编译器设置来构建。在工具包选项中配置编译器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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