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 的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库的编译器兼容)。
相关文章:
- 如何使用MinGW编译器和SSL支持静态编译Qt
- Qt中的包装连接方法隐藏了编译器所需的信息
- CMake + Qt,moc 编译失败,无法实现 QMetaObject 方法(编译器找不到基本 ui 对象的标头?
- 使用其他编译器编译QT代码
- 使用 MSVC 套件时,在 Qt 中正确选择编译器
- Qt Creator在linux mint 64位中找不到CMAKE_CXX_COMPILER编译器
- Qt 编译器错误:未在此范围内声明"emit"
- 尝试使用 QQmlListProperty 时出现 Qt 编译器错误
- MSVC 编译器在调试模式下构建 Qt 5.10 时崩溃
- 将 QT Creator 5.8 与 MSVC 2015 编译器配合使用
- Qt Creator,项目工具包中的编译器被忽略
- 如何从我的qt应用程序运行gcc编译器?
- QT离线安装程序和兼容的C 编译器安装
- 尝试使用VC++编译器构建Qt应用程序:"type_traits":没有这样的文件或目录
- QT 5.7将-STD = GNU 11添加到我的编译器标志,Clobbering -Std = C 14
- 如何将QT5和QT Creator 2.6.1与VS 2012中的编译器一起使用
- Qt 5测试版2,Qt Creator 2.6,MSVC错误:Qt Creaator需要一个编译器来构建.在工具包选项中
- 将 -lm 标志传递给 qt 编译器以摆脱"无法打开文件 'm.lib'
- Qt:编译器堆空间不足
- Qt - 编译器在我的主窗口上调用 setLayout() 时抱怨