无法配置Qt 5.5的编译器和构建工具包 [英] Can not configure compiler and build kit for Qt 5.5

查看:892
本文介绍了无法配置Qt 5.5的编译器和构建工具包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是安装在一个干净的windows 10,visual studio 2015和Qt Creator 5.5 ...我有一些源代码依赖于一些库(lib)文件,我相信是使用msvc2012编译。



Qt无法编译我的项目,总是抱怨选择的编译器不能编译为Qt 5.5 ...我花了几个小时,但仍然没有成功...有人可以告诉我我该怎么办?这里是我的Qt构建选项的一些照片:

解决方案

Visual C ++不维护版本之间的二进制兼容性,这意味着您将需要使用相同的Visual Studio版本与所有暴露C ++功能的库(仅暴露一个 C 接口的库使用不同的编译器版本)。



因此,您有两个选项:



1)安装和使用Visual Studio 2012,请下载并安装使用Visual Studio 2012( 32位( VS 2012 ,587 MB))的Qt版本对于VS 2012,只有32位二进制文​​件可用(如果你想要x64你需要自己构建Qt)




2)如果你想使用Visual Studio 2015,您需要使用Visual Studio 2015自己编译Qt,因为Visual Studio 2015没有已经编译的Qt二进制文件。根据其他库的编写方式,您可能还需要使用Visual Studio 2015构建Qt。 p>

I just have installed on a clean windows 10, visual studio 2015 and Qt Creator 5.5...I have some source code that depend on some libraries (lib) files which I believe were compiled using msvc2012.

The Qt can not compile my project and always complains that selected compiler can not compile for Qt 5.5...I have spent hours on this but still no success...Would someone kindly tell me what should I do? Here is some photos of my Qt build options:

解决方案

Visual C++ doesn't maintain binaries compatibility between versions, this means that you'll need to use the same Visual Studio version with all the libraries that are exposing C++ functionality (libraries that expose only a C interface can be used with different compiler version).

So you have 2 options:

1) install and use Visual Studio 2012, download and install a Qt version that is built with Visual Studio 2012 (Qt 5.5.0 for Windows 32-bit (VS 2012, 587 MB) ) Note that for VS 2012 there are only 32bit binaries available (if you want x64 you need to build Qt yourself)

or 2) if you want to use Visual Studio 2015, you'll need build Qt yourself with Visual Studio 2015, since there are no already built Qt binaries for Visual Studio 2015. And depending on how the other library is written you might need to also build that with Visual Studio 2015.

这篇关于无法配置Qt 5.5的编译器和构建工具包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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