It took a 64-bit version of Qt4 for Windows. Cannot compile Qt. The configuration passes without errors. Tried, both 64-bit mingw, and the compiler from Microsoft.
The same error is issued:

c:\qt-everywhere-opensource-src-4.8.7>nmake Microsoft (R) Program Maintenance Utility Version 14.00.24210.0 Copyright (C) Microsoft Corporation. All rights reserved. C:\qt-everywhere-opensource-src-4.8.7\bin\qmake C:/qt-everywhere-opensou rce-src-4.8.7/\projects.pro -o Makefile -spec win32-msvc2015 Could not find mkspecs for your QMAKESPEC(win32-msvc2015) after trying: C:\Qt\Qt-4.8.7_64bit\mkspecs Error processing project file: C:/qt-everywhere-opensource-src-4.8.7//projects.p ro NMAKE : fatal error U1077: 'C:\qt-everywhere-opensource-src-4.8.7\bin\qmake.EXE' : return code '0x3' Stop. 

    2 answers 2

    -spec win32-msvc2015 - flag, you can (and imho need to) fix it, you are trying to compile with 15 studio, Qt version 4.7 probably just doesn’t know what it is ...

    On the Qt website, they compile 10. So I think you can climb and see which values ​​of this flag are valid. So she tells you that

     "Could not find mkspecs for your QMAKESPEC(win32-msvc2015) after trying: C:\Qt\Qt-4.8.7_64bit\mkspecs" 

    If it is important to compile a studio for 2015, here is the instruction in English, this mkspecs really should be edited there. If the problems with the English (0-0), I can translate, if necessary, and ask.

    https://stackoverflow.com/questions/32848962/how-to-build-qt-4-8-6-with-visual-studio-2015-with-official-support

    • Thank. According to this guide, it did not work out. The patch was installed using the Python utility patch.py. True, not at all 100% sure of this, because The utility did not display anything in the console. In paragraph 3, the changes did not have to, because The desired file was already with the desired settings. In paragraph 4, I just had to add (QMAKESPEC) "==" win32-msvc2015 "to the 27th line ... nmake gives the same error :( - Tarik Yalawi
    • I tried to collect 4.8.6 - also did not work. Something is clearly not enough in the project settings. - Tarik Yalawi

    Apparently, to collect Qt-4.8 using msvc, which comes with a free studio Express, is unlikely. Because I don’t have a paid studio, I tried to build Qt4 with the help of MinGW-64, and also to no avail, there were errors during the build.

    But there is another solution. Can someone come in handy.

    You can install msys2 , in which there is a package manager pacman, through which you can put everything you need.

     pacman --needed -S git mingw-w64-x86_64-gcc base-devel pacman -S mingw-w64-x86_64-qt4 

    You can also put qt5:

     pacman -S mingw-w64-x86_64-qt5 

    At the same time, qt5 and qt4 cannot be installed, but this is not a problem, because installation takes about 2 minutes. Finding a working Qt5 for a 64-bit compiler on the network is not a problem yet, but with qt4 I have climbed a lot of sites, and there was no working solution anywhere. I hope someone will help.