QT 5.7 MSVC 2015 Static Builds Not Working
<p>I'm having trouble using my QT 5.7 MSVC 2015 static builds, both 32-bit and 64-bit, on Windows. These are the commands I run and the output I get (tested with 32 bit as well):</p>

<pre><code>C:\Users\Josh&gt;set PATH=C:\Qt\static\Qt 5.7.0 MSVC2015_Static_x64\bin;%PATH%

C:\Users\Josh&gt;cd "\Users\Josh\Mozy Sync\ReplicatorNew\ReplicatorNew"

C:\Users\Josh\Mozy Sync\ReplicatorNew\ReplicatorNew&gt;qmake ReplicatorNew.pro
Could not find qmake configuration file win32-msvc2015.
Error processing project file: ReplicatorNew.pro
</code></pre>

<p>Here are the steps I followed to configure the QT static builds:</p>

<ol>
<li>Downloaded QT 5.7 source and unzipped to its own directory.</li>
<li>Installed QT with QT Creator and msvc2015 32 and 64 bit.</li>
<li>Installed Visual Studio 2015 Community with all Visual C++ options
checked.</li>
<li>Installed Strawberry Perl 32 bit and added to path.</li>
<li>Installed Python 2.7.12 and added to path.</li>
<li>Installed Ruby and added to path.</li>
<li>Installed Windows 10 SDK and checked all options in install.</li>
<li>Installed jom to its own directory.</li>
<li>Downloaded openssl source and built as per <a href="https://github.com/alberthdev/alberthdev-misc/wiki/Building-Qt-v5.6-Statically-on-Windows" rel="nofollow noreferrer">here</a>.</li>
<li><p>Edited qtbase\mkspecs\common\msvc-desktop.conf to the following:</p>

<pre><code> QMAKE_CFLAGS_RELEASE    = -O2 -MT
 QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += -O2 -MT -Zi
 QMAKE_CFLAGS_DEBUG      = -Zi -MTd
</code></pre></li>
<li><p>Ran this for 32 bit:</p>

<pre><code> cd "\Program Files (x86)\Microsoft Visual Studio 14.0\vc"
 vcvarsall.bat x86
</code></pre></li>
<li><p>This for 64 bit:</p>

<pre><code> cd "\Program Files (x86)\Microsoft Visual Studio 14.0\vc"
 vcvarsall.bat amd64
</code></pre></li>
<li><p>Then these:</p>

<pre><code> set QMAKESPEC=win32-msvc2015
 set QTDIR=C:\Qt\Static\qt-everywhere-enterprise-src-5.7.0\qtbase
 set PATH=C:\Qt\Static\qt-everywhere-enterprise-src-5.7.0\qtbase\bin;%PATH%
 cd C:\Qt\Static\qt-everywhere-enterprise-src-5.7.0
</code></pre></li>
<li><p>For 32 bit:</p>

<pre><code> configure -debug-and-release -confirm-license -platform win32-msvc2015 -opengl desktop -static -target xp -nomake examples -no-compile-examples -nomake tests -prefix C:\Qt\static\MSVC2015_Static_x86 -openssl -L C:\OpenSSL-win32\lib -l libeay32 -l ssleay32 -I C:\OpenSSL-win32\include -qt-libpng -qt-libjpeg -qt-zlib
</code></pre></li>
<li><p>For 64 bit:</p>

<pre><code> configure -debug-and-release -confirm-license -platform win32-msvc2015 -opengl desktop -static -nomake examples -no-compile-examples -nomake tests -prefix C:\Qt\static\MSVC2015_Static_x64 -openssl -L C:\OpenSSL-win64\lib -l libeay32 -l ssleay32 -I C:\OpenSSL-win64\include -qt-libpng -qt-libjpeg -qt-zlib
</code></pre></li>
<li><p>Then ran these:</p>

<pre><code> C:\Qt\static\jom_1_1_1\jom.exe -j 4
 C:\Qt\static\jom_1_1_1\jom.exe -j 4 install
</code></pre></li>
</ol>

<p>Also definitely verified win32-msvc2015 was in the mkspecs directory of the static build directory. I renamed the qt static dirs to the names in the first code snippet.  I couldn't find much on Google so I post here in hope of help. Thanks. I'm hoping it's simple like I left out a directory to put in the path environment variable...</p>