<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Could not find qmake configuration file win32-msvc (Qt 5.10 src build)]]></title><description><![CDATA[<p dir="auto">I've been using Qt for about two years now, under a commercial license, and recently had to patch the 5.10 source in order to fix a missing feature (client ssl cert serving) in QtWebEngine.</p>
<p dir="auto">I've been building it according to the configuration for the commercial build, and after some trials and tribulations I've validated that the changes were effective.</p>
<p dir="auto">So now I'm migrating my build to these newly built libs, and I've run into a weird issue where the following command line call results in the error in the subject/topic line.</p>
<p dir="auto">C:\QTBUILD\msvc2015\bin\qmake.exe ....\<a href="http://MyProject.pro" target="_blank" rel="noopener noreferrer nofollow ugc">MyProject.pro</a> -r -spec win32-msvc "CONFIG+=release"</p>
<p dir="auto">This results in a complaint about not finding the qmake configuration file 'win32-msvc'</p>
<p dir="auto">If I use the qmake.exe from C:\Qt\5.10\bin\qmake.exe this same command executes as expected.</p>
<p dir="auto">There are no environment variables pointing to any Qt directories, no pathing.<br />
The mkspecs directory in my builds match the mkspecs directories of the commercial 5.10 installation.</p>
<p dir="auto">The sizes are very close, 611 files in my build's mkspecs, 590 in the commercial 5.10 install.</p>
<p dir="auto">They both have the win32-msvc folder in the same relative location to their respective qmake executables.</p>
<p dir="auto">The contents of those directories are identity (files, bytes in total size, et cetera.)</p>
<p dir="auto">The mkspecs/common folders are identical (files, bytes, et cetera.)</p>
<p dir="auto">When I run qmake with -d I get the same results with to a certain point:</p>
<p dir="auto">DEBUG 1: Resetting dir to: C:\REPOSITORIES\MyProject\build\build-release-x64<br />
DEBUG 1: Changing dir to: ....</p>
<p dir="auto">The built 5.10 now fails with:</p>
<p dir="auto">Could not find qmake configuration file win32-msvc.<br />
Error processing project file: ....\<a href="http://MyProject.pro" target="_blank" rel="noopener noreferrer nofollow ugc">MyProject.pro</a></p>
<p dir="auto">The commercial build 5.10 continues on with:</p>
<p dir="auto">DEBUG 1: visiting file C:/Qt/5.10.0/msvc2015_64/mkspecs/features/spec_pre.prf</p>
<p dir="auto">(and then tons of other debug messages as the build keeps going until completion.)</p>
<p dir="auto">Any ideas what this could be?  Is there some sort of pathing baked into qmake.exe when it's built where you can't move it post nmake/nmake install...?</p>
<p dir="auto">If I replace my QT build's bin directory with the one from the commercial Qt install - it completes qmake properly (I made sure to hide the mkspecs directory from the commercial build - in case it used that one.)</p>
<p dir="auto">Thoughts?</p>
<p dir="auto">Should I pass the path to the spec folder as a test?</p>
<p dir="auto">Thanks :)</p>
]]></description><link>https://forum.qt.io/topic/87914/could-not-find-qmake-configuration-file-win32-msvc-qt-5-10-src-build</link><generator>RSS for Node</generator><lastBuildDate>Mon, 18 May 2026 21:32:16 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/87914.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 19 Feb 2018 16:20:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Could not find qmake configuration file win32-msvc (Qt 5.10 src build) on Mon, 19 Feb 2018 17:50:39 GMT]]></title><description><![CDATA[<p dir="auto">Okay, it turns out that you simply need to drop a qt.conf file in the bin directory that contains:</p>
<p dir="auto">[Paths]<br />
Prefix = ..</p>
<p dir="auto">That worked for me because apparently QT_INSTALL_PREFIX is a 'built-in' (which is odd considering that you can install Qt in many locations and it apparently edits the qmake.exe post installation - much like how I edit rpath info when deploying an application.)</p>
<p dir="auto">I tried using qmake.exe -set QT_INSTALL_PREFIX C:\path - but that didn't seem to work.</p>
]]></description><link>https://forum.qt.io/post/442839</link><guid isPermaLink="true">https://forum.qt.io/post/442839</guid><dc:creator><![CDATA[VRHans]]></dc:creator><pubDate>Mon, 19 Feb 2018 17:50:39 GMT</pubDate></item><item><title><![CDATA[Reply to Could not find qmake configuration file win32-msvc (Qt 5.10 src build) on Mon, 19 Feb 2018 17:31:00 GMT]]></title><description><![CDATA[<p dir="auto">When I run:</p>
<p dir="auto">qmake -query "QT_INSTALL_PREFIX"</p>
<p dir="auto">The qmake.exe which resides in C:\QTBUILD\msvc2015_x64\bin reports the directory where I copied it from:</p>
<p dir="auto">C:\Qt\5.10.0\msvc2016_64</p>
<p dir="auto">It appears that this value 'QT_INSTALL_PREFIX' is stored in a settings file someplace (platform dependent surely) and that's the fundamental problem...</p>
<p dir="auto">I'll try overriding that.</p>
]]></description><link>https://forum.qt.io/post/442837</link><guid isPermaLink="true">https://forum.qt.io/post/442837</guid><dc:creator><![CDATA[VRHans]]></dc:creator><pubDate>Mon, 19 Feb 2018 17:31:00 GMT</pubDate></item><item><title><![CDATA[Reply to Could not find qmake configuration file win32-msvc (Qt 5.10 src build) on Mon, 19 Feb 2018 17:12:26 GMT]]></title><description><![CDATA[<p dir="auto">Definitely something in the qmake.exe binary.  If I swap the commercial qmake.exe into my built Qt hierarchy, it builds just fine - but it turns out that the commercial qmake.exe is looking into the commercial directory for its mkspecs and includes.</p>
<p dir="auto">If I hide the directory that I copied the qmake.exe from, it breaks...?  WTF?</p>
]]></description><link>https://forum.qt.io/post/442832</link><guid isPermaLink="true">https://forum.qt.io/post/442832</guid><dc:creator><![CDATA[VRHans]]></dc:creator><pubDate>Mon, 19 Feb 2018 17:12:26 GMT</pubDate></item><item><title><![CDATA[Reply to Could not find qmake configuration file win32-msvc (Qt 5.10 src build) on Mon, 19 Feb 2018 17:01:04 GMT]]></title><description><![CDATA[<p dir="auto">Actually it doesn't work.  All of the mkspec references appear to be relative so it breaks after a bit.  (I thought it worked because I got a ton of debug output as it resolved and specified defines)</p>
<p dir="auto">If I specify the full file path, and turn debug off, it breaks quickly with:</p>
<p dir="auto">Project ERROR: Could not find feature shared.</p>
]]></description><link>https://forum.qt.io/post/442830</link><guid isPermaLink="true">https://forum.qt.io/post/442830</guid><dc:creator><![CDATA[VRHans]]></dc:creator><pubDate>Mon, 19 Feb 2018 17:01:04 GMT</pubDate></item><item><title><![CDATA[Reply to Could not find qmake configuration file win32-msvc (Qt 5.10 src build) on Mon, 19 Feb 2018 16:57:30 GMT]]></title><description><![CDATA[<p dir="auto">I've found that if I specify the exact path to the spec folder in my qmake call, it appears to work - which suggests that the qmake.exe I have built is using a hardcoded default path to the mkspecs directory, but the qmake.exe that comes with the 5.10 commercial build does not.</p>
<p dir="auto">I.e.:</p>
<p dir="auto">C:\QTBUILD\msvc2015\bin\qmake.exe ....\<a href="http://MyProject.pro" target="_blank" rel="noopener noreferrer nofollow ugc">MyProject.pro</a> -r -spec C:\QTBUILD\msvc2015_64\mkspecs\win32-msvc "CONFIG+=release"</p>
<p dir="auto">works</p>
<p dir="auto">Weird.</p>
]]></description><link>https://forum.qt.io/post/442829</link><guid isPermaLink="true">https://forum.qt.io/post/442829</guid><dc:creator><![CDATA[VRHans]]></dc:creator><pubDate>Mon, 19 Feb 2018 16:57:30 GMT</pubDate></item></channel></rss>