简体   繁体   English

无法为Qt 5.5配置编译器和构建工具包

[英]Can not configure compiler and build kit for Qt 5.5

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. 我刚刚安装在干净的Windows 10,visual studio 2015和Qt Creator 5.5上......我有一些源代码依赖于我认为使用msvc2012编译的一些库(lib)文件。

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? Qt无法编译我的项目并总是抱怨所选编译器无法编译为Qt 5.5 ...我花了好几个小时但仍未成功...有人会告诉我该怎么办? Here is some photos of my Qt build options: 以下是我的Qt构建选项的一些照片: 在此输入图像描述

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). Visual C ++不维护版本之间的二进制兼容性,这意味着您需要使用与所有暴露C ++功能的库相同的Visual Studio版本(仅公开C接口的库可以与不同的编译器版本一起使用) 。

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) 1)安装和使用Visual Studio 2012,下载并安装使用Visual Studio 2012构建的Qt版本( 适用于Windows 32位的Qt 5.5.0( VS 2012,587 MB) )请注意,对于VS 2012,只有32位二进制文​​件可用(如果你想要x64,你需要自己构建Qt)

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. 或者2)如果你想使用Visual Studio 2015,你需要自己使用Visual Studio 2015构建Qt,因为Visual Studio 2015还没有构建Qt二进制文件。并且根据其他库的编写方式,你可能需要还可以使用Visual Studio 2015构建它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM