At this time (September 2015) there is no official Qt build for Visual Studio 2015. How to build it manually?
相关问题
- QML: Cannot read property 'xxx' of undefin
- How to know full paths to DLL's from .csproj f
- Importing NuGet references through a local project
- QTextEdit.find() doesn't work in Python
- Visual Studio 2019 - error MSB8020: The build tool
相关文章
- ubuntu20.4中c#通过c++库调用python脚本
- Qt槽函数自动执行多遍
- How to show location of errors, references to memb
- How to track MongoDB requests from a console appli
- Is there a non-java, cross platform way to launch
- Visual Studio Hangs on Loading UI Library
- How to get a settings storage path in a cross-plat
- How to use Mercurial from Visual Studio 2010?
It can be built manually quite easily. The example below is for Qt 4.8.6.
Download Qt 4.8.6 sources: http://download.qt.io/archive/qt/4.8/4.8.6/qt-everywhere-opensource-src-4.8.6.zip and unpack. Let the Qt prefix be c:\Qt-2015\4.8.6\msvc2015. Copy sources inside the downloaded source dir to {prefix dir}.
Apply the patch 02-fix_build_with_msvc2015-45e8f4ee.diff https://drive.google.com/file/d/0Bz6Oefew6XZnOU9ac0hIeG41UVE/view?usp=sharing see post: https://forum.qt.io/topic/56453/compiling-qt4-head-with-msvc-2015-cstdint-errors/5 to get rid of compilation errors (I applied all changes by hand, it's not so long).
Make new win32-msvc2015 spec in mkspecs directory: create win32-msvc2015 directory, copy the contents of win32-msvc2013 dir, edit qmake.conf: set _MSC_VER to 1900 and update all text from 2013 to 2015 where appropriate:
Edit makefile.win32 file in {prefix dir}/qmake/ directory: find all win32-msvc2013 occurences and add win32-msvc2015 similarly:
Now from the Visual Studio 2015 command prompt
run (these are the example commands, additional commands may be different depending on the build needs):
configure -make nmake -platform win32-msvc2015 -prefix c:\Qt-2015\4.8.6\msvc2015 -opensource -confirm-license -opengl desktop -nomake examples -nomake tests
Option -make nmake is need because configure.exe searches max version vs 2013 of nmake by default, otherwise it uses make.
Then for single core build command
nmake
(or jom.exe -jN, where N <= number of CPU cores).
That's all. This example is without Webkit, examples and demos - for speed. For me it takes ~1.5 hours to build on the single core.