简体   繁体   English

Qt msvc2013搭建vs2015

[英]Qt msvc2013 building with vs2015

Hi I have updated visual studio to 2015 version and I have Qt msvc2013. 嗨我已经将visual studio更新到2015版本,我有Qt msvc2013。 Qt says that no compilers can make code for this version of Qt, (Qt detected compilers from visual studio). Qt说没有编译器可以为这个版本的Qt编写代码,(Qt检测到来自visual studio的编译器)。 How can I make it working without installing VS2013? 如何在不安装VS2013的情况下使其正常工作?

You cannot mix C++ compiled with different major versions of the Microsoft Visual C++ compilers. 您不能混合使用Microsoft Visual C ++编译器的不同主要版本编译的C ++。 So you need to either get a version of Qt for Visual Studio 2015, or compile your own one. 因此,您需要为Visual Studio 2015获取Qt版本,或者编译自己的版本。

At this time, there is not yet an official build of Qt for Visual Studio 2015 available (this is planned for Qt 5.5.1 5.6.0). 目前,还没有针对Visual Studio 2015的Qt官方版本(这是针对Qt 5.5.1 5.6.0计划的)。 If you want to try compiling yourself, https://wiki.qt.io/Building_Qt_5_from_Git is a comprehensive guide. 如果您想尝试自己编译, 请https://wiki.qt.io/Building_Qt_5_from_Git是一本综合指南。 You should try either the 5.5 branch (if you get the Qt sources from git), or the 5.5.0 source packages. 您应该尝试5.5分支(如果从git获得Qt源)或5.5.0源代码包。 You should be able to get help eg on the qt-interest mailing list. 您应该能够获得帮助,例如在qt-interest邮件列表上。

Adding a new mkspec is pretty simple, just copy the win32-msvc2013 and rename it to win32-msvc2015, then modify and use that one. 添加新的mkspec非常简单,只需复制win32-msvc2013并将其重命名为win32-msvc2015,然后修改并使用该版本。

Second thing to do is not try to link against 2013 built libraries. 要做的第二件事是不要尝试链接2013年建立的库。 If 2015 follows the same pattern as the older one, mixing libraries from different VS version is not possible. 如果2015遵循与旧版本相同的模式,则无法混合来自不同VS版本的库。

Last thing, before adding icu, OpenSSL and MySQL you rather try to build Qt with the default parameters. 最后,在添加icu,OpenSSL和MySQL之前,您宁愿尝试使用默认参数构建Qt。

Qt's current development version is 5.6. Qt目前的开发版本是5.6。 It is in beta and there are prebuild binaries for msvc2015. 它处于测试阶段,并且有msvc2015的预构建二进制文件。

Link to Qt Development Binaries 链接到Qt开发二进制文件

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

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