Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Qt msvc2013 building with vs2015

Hi I have updated visual studio to 2015 version and I have Qt msvc2013. Qt says that no compilers can make code for this version of Qt, (Qt detected compilers from visual studio). How can I make it working without installing VS2013?

like image 913
km2442 Avatar asked Aug 01 '15 11:08

km2442


2 Answers

You cannot mix C++ compiled with different major versions of the Microsoft Visual C++ compilers. So you need to either get a version of Qt for Visual Studio 2015, or compile your own one.

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). If you want to try compiling yourself, https://wiki.qt.io/Building_Qt_5_from_Git is a comprehensive guide. You should try either the 5.5 branch (if you get the Qt sources from git), or the 5.5.0 source packages. You should be able to get help e.g. on the qt-interest mailing list.

like image 72
kkoehne Avatar answered Nov 24 '22 09:11

kkoehne


Adding a new mkspec is pretty simple, just copy the win32-msvc2013 and rename it to win32-msvc2015, then modify and use that one.

Second thing to do is not try to link against 2013 built libraries. If 2015 follows the same pattern as the older one, mixing libraries from different VS version is not possible.

Last thing, before adding icu, OpenSSL and MySQL you rather try to build Qt with the default parameters.

like image 45
piyush singh Avatar answered Nov 24 '22 07:11

piyush singh