Qt Creator 2.8.1 + MSVC 2013 Express = 没有编译器可以为这个 Qt 版本生成代码 [英] Qt Creator 2.8.1 + MSVC 2013 Express = No compiler can produce code for this Qt version

查看:83
本文介绍了Qt Creator 2.8.1 + MSVC 2013 Express = 没有编译器可以为这个 Qt 版本生成代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个问题是在.

这是我上面本教程的简短版本(适用于 Windows 7 (amd64) 和 OpenGL):

1.安装 Visual Studio 2013(可能是 VS2013 Express 版).>

2.安装 GitPythonRubyPerl(是,您将需要所有这些工具).

在每个安装向导中都有一个选项可以将工具添加到 PATH 变量中.选中此选项或自行添加.

3.转到:Windows 开始菜单 -> 所有程序 -> Visual Studio 2013 -> Visual Studio 工具
运行:VS2013 x64 Native Tools 命令提示符

这与运行 cmd 然后执行相同:

<代码>>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat amd64

4.转到你想要的文件夹,克隆 Qt 存储库,并对其进行初始化.

<代码>>git clone git://gitorious.org/qt/qt5.git qt5
<代码>>cd qt5
<代码>>git checkout 稳定
<代码>>perl 初始化存储库

如果你不需要 WebKit,你可以运行:

<代码>>perl init-repository --no-webkit

5.配置和编译.

<代码>>配置 -developer-build -opensource -confirm-license -nomake 示例 -nomake 测试 -opengl 桌面
<代码>>nmake

完成.

This question was asked on this thread, but is was closed as "off topic", which is confusing to me. This not a question looking for an opinion. This is a legitimate issue with concrete details and no doubt has a concrete answer.

I'm setting up a new windows 8.1 laptop. I've installed MSVC 2013 express (Windows Desktop version). And I've installed Qt 5.1.1.

In Qt Creator when I go to Tools -> Options -> Build & Run -> Compilers and hover the mouse over the auto-detected compiler: "Microsoft Visual C++ Compiler (12.0) (amd64)" it shows "ABI: x86-windows-msvc2005-pe-64bit".

Qt 5.1.1 apparently is not compatible with this ABI, because on the Qt Versions tab it says "No compiler can produce code for this Qt version" in the details pane for Qt 5.1.1 MSVC2012 64bit.

Is there a mscv2013 mkspec available that makes qt work with the MSVC 2013 compiler?

Is there a way to configure the MSVC 2013 compiler to produce binaries using an ABI compatible with Qt 5.1.1? What ABI version(s) does Qt 5.1.1 require?

In short: what does one have to do to get Qt 5.1.1 + Qt Creator 2.8.1 + MSVC 2013 to work together?

Here are some screen shots of the Build & Run tabs in Qt Creator:

解决方案

To compile Qt framework yourself with Visual C++ compiler (MSVC) from VS2013 you can use this tutorial on Building Qt 5 from Git.

Here is my short version of this tutorial above (for Windows 7 (amd64) and OpenGL):

1. Install Visual Studio 2013 (may be VS2013 Express edition).

2. Install Git, Python, Ruby, and Perl (Yes, you will need all these tools).

There is an option in each instalation wizard to add the tool to the PATH variable. Check this option or add it yourself.

3. Go to: Windows Start Menu -> All Programs -> Visual Studio 2013 -> Visual Studio Tools
Run: VS2013 x64 Native Tools Command Prompt

This is the same as run a cmd and then execute:

> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat amd64

4. Go to a folder you want, clone Qt repository, and initialize it.

> git clone git://gitorious.org/qt/qt5.git qt5
> cd qt5
> git checkout stable
> perl init-repository

If you don`t need WebKit you may run:

> perl init-repository --no-webkit

5. Configure and compile.

> configure -developer-build -opensource -confirm-license -nomake examples -nomake tests -opengl desktop
> nmake

Done.

这篇关于Qt Creator 2.8.1 + MSVC 2013 Express = 没有编译器可以为这个 Qt 版本生成代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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