Building Qt 4.8.7 with MSVC 2015
I am trying to revive a 4.X qt project (which I then plan to migrate to Qt 5.x), but I would like to build with MSVC 2015.
I am running in a MSVC 2015 native x32 command shell the following configure line to keep things simple:
configure -platform msvc-2015
But i am running into a compile error:
C:\Qt\qt-everywhere-opensource-src-4.8.7\src\corelib\io\qfsfileengine_win.cpp(64) : fatal error C1083: Cannot open include file: 'shlobj.h': No such file or directory
I have installed all of the windows development kits, and a find reports ShlObj.h in the following directories:
Program Files (x86)/Microsoft SDKs/Windows/v7.1A/Include/ShlObj.h
Program Files (x86)/Windows Kits/10/Include/10.0.10240.0/um/ShlObj.h
Program Files (x86)/Windows Kits/8.1/Include/um/ShlObj.h
Do I need to tweak the qmkspecs to pull in a particular kit path? Any suggestions how to get the build working? I can't believe I am the first to see this...
Did you manage to compile Qt4 with msvc2015?