How to Build Qt 5.7 Statically Using MSVC14 (Microsoft Visual Studio 2015)

In this post I will describe how to build Qt 5.7 statically for Windows using MSVC 14 compiler or in other words Microsoft Visual C++ 2015 which is included in Microsoft Visual Studio 2015. Quite obviously you need to install Microsoft Visual Studio 2015 (Community edition is free) before continuing with this guide. You can find it here: https://www.visualstudio.com/

Continue reading “How to Build Qt 5.7 Statically Using MSVC14 (Microsoft Visual Studio 2015)”

How to Build for Windows XP Using MSVC 2015/2013/2012

To make your Qt application compatible with Windows XP (32-bit) you have to add the following line to your PRO file. Note that this will enable targeting for Windows XP without disrupting the application’s behavior in higher Windows versions.

QMAKE_LFLAGS_WINDOWS = /SUBSYSTEM:WINDOWS,5.01

 

You also need to install Visual C++ Redistributable for Visual Studio 2015. You can find Microsoft official link below:

https://www.microsoft.com/en-us/download/details.aspx?id=48145