可能是重复问题:
VC++编译器适用于Qt Creator
我是一个新手。我正试图在带有Qt 5 beta的Windows中的qt creator 2.6中编译以下代码:
#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的路径是这样的:工具 -> 选项 -> 构建和运行 -> 工具包如下:
名称:
自动检测:
桌面Qt 5.0.0 beta2 MSVC2010 32位 (SDK) (默认值)
手动: (无)
重要的是这里没有选择编译器。
当我点击“管理”按钮时,它会带我到“编译器”选项卡:
自动检测:
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++ Compiler 10.0 (x86)
Microsoft Visual C++ Compiler 10.0 (x86)
Microsoft Visual C++ Compiler 10.0 (amd64)
...
Qt版本选项卡如下:
自动检测: Qt 5.0.0 beta2 MSVC2010 32位 (SDK)
我正在使用:
操作系统:Windows 7
首先我尝试了“Microsoft Windows 7和.NET Framework 4的软件开发工具包(SDK)”,但编译代码失败了。然后我安装了VS2010,编译也失败了。
有没有人可以帮帮我?
我想要发布我的Qt Creator 2.6版本的构建和运行选项卡的图像,但是Stack Overflow不允许我这样做,因为我是它的新成员。
提前致谢