Good day.
I try to build Qt 4.8.5 with VS 2015 compiler tools. As the main option I use the algorithm proposed here: Link .
The algorithm is as follows:
- Create a folder
C:\Qt\4.8.5 - I download and unpack the archive with
Qt 4.8.5in this folder ( qt-everywhere-opensource-src-4.8.5.zip ) - I install the python patch for which I type the following commands in cmd:
pip install patchand-m patch. - I downloaded
02-fix_build_with_msvc2015-45e8f4ee.diff(as in the original link ) and copied it to theC:\Qt\4.8.5folder - In the same folder (
C:\Qt\4.8.5) copiedpatch.pyfrom the folder (C:\Python27\lib\site-packages\). - I enter the command line from the
C:\Qt\4.8.5folder and execute the commandpatch.py 02-fix_build_with_msvc2015-45e8f4ee.diff. - Delete
patch.pyfrom the directoryC:\Qt\4.8.5 - I create a new
win32-msvc2015directory in theC:\Qt\4.8.5\mkspecsand copy all the contents of thewin32-msvc2012folder into it. - I edit the contents of the
qmake.conffile in the createdwin32-msvc2015qmake.conf:
- Go to the folder
C:\Qt\4.8.5\qmaketo edit the fileMakefile.win32:

- After that, I launch
Visual Studio 2015 command promptand go to theC:\Qt\4.8.5folder. - I enter the command
configure -platform win32-msvc2015 -prefix C:\Qt-2015\4.8.5\msvc2015intoVisual Studio 2015 command prompt
And I get:
And how to get around this error is not yet understood.
PS If anything, the necessary environment variables QTDIR=B:\Qt\4.8.5 , QMAKESPEC=win32-msvc2015 still stand, QMAKESPEC=win32-msvc2015 %QTDIR%\bin to the beginning of PATH .

-make nmakein your team? - ixSci