Qt 5测试版2,Qt Creator 2.6,MSVC错误:Qt Creaator需要一个编译器来构建.在工具包选项中

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

本文关键字:Qt 编译器 一个 选项 工具包 构建 Creator 测试版 MSVC 错误 Creaator      更新时间:2023-10-16

可能重复:
Qt Creator 的VC++编译器

我是个新手。我正在尝试在qtcreator 2.6中编译以下代码,该版本随qt 5测试版一起提供:

#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创建者>工具>选项>构建和运行>工具包如下:名称:
自动检测:
Desktop Qt 5.0.0 beta2 MSVC2010 32位(SDK)(默认)
手动:(无)
重要的是没有选择编译器

当我点击"管理"按钮时,它会带我进入"编译器"选项卡:
自动检测:
Microsoft Windows SDK for Windows 7(7.1.1700.0.30114)。。。。

Microsoft Visual C++编译器10.0(x86)
Microsoft Visual C++编译程序10.0(x86。。。

Qt版本选项卡如下:
自动检测:Qt 5.0.0 beta2 MSVC2010 32位(SDK)

我正在使用:操作系统:Windows 7
首先,我尝试了"适用于Windows7和.NET Framework 4的Microsoft Windows SDK",但未能编译代码。然后我安装了VS2010,也未能编译。
有人能帮我吗

我想发布我的qt创建者2.6构建和运行选项的图片,但Stack Overflow不允许我这样做,因为我是它的新成员。

提前感谢

转到"Qt版本"选项卡,选择Helpers行中的Details按钮,然后选择要使用的编译器(它必须与用于编译Qt库的编译器兼容)。