<?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[qmake can&#x27;t generator .stash file]]></title><description><![CDATA[<p dir="auto">After installing the 64-bit MinGW suite, I encountered the following output when using QMAKE: "Project ERROR: failed to parse default search paths from compiler output." I checked the <code>.qmake.stash</code> file and it appears incomplete:<br />
QMAKE_CXX.QT_COMPILER_STDCXX = 201402L<br />
QMAKE_CXX.QMAKE_GCC_MAJOR_VERSION = 7<br />
QMAKE_CXX.QMAKE_GCC_MINOR_VERSION = 3<br />
QMAKE_CXX.QMAKE_GCC_PATCH_VERSION = 0<br />
QMAKE_CXX.COMPILER_MACROS = <br />
QT_COMPILER_STDCXX <br />
QMAKE_GCC_MAJOR_VERSION <br />
QMAKE_GCC_MINOR_VERSION <br />
QMAKE_GCC_PATCH_VERSION<br />
It looks like the corresponding CXX path was not found. Here is the complete <code>.qmake.stash</code> file:<br />
QMAKE_CXX.QT_COMPILER_STDCXX = 201402L<br />
QMAKE_CXX.QMAKE_GCC_MAJOR_VERSION = 7<br />
QMAKE_CXX.QMAKE_GCC_MINOR_VERSION = 3<br />
QMAKE_CXX.QMAKE_GCC_PATCH_VERSION = 0<br />
QMAKE_CXX.COMPILER_MACROS = <br />
QT_COMPILER_STDCXX <br />
QMAKE_GCC_MAJOR_VERSION <br />
QMAKE_GCC_MINOR_VERSION <br />
QMAKE_GCC_PATCH_VERSION<br />
QMAKE_CXX.INCDIRS = <br />
C:/Qt/Qt5.14.2/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++ <br />
C:/Qt/Qt5.14.2/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/x86_64-w64-mingw32 \    C:/Qt/Qt5.14.2/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/backward <br />
C:/Qt/Qt5.14.2/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include <br />
C:/Qt/Qt5.14.2/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include-fixed <br />
C:/Qt/Qt5.14.2/Tools/mingw730_64/x86_64-w64-mingw32/include<br />
QMAKE_CXX.LIBDIRS = <br />
C:/Qt/Qt5.14.2/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0 <br />
C:/Qt/Qt5.14.2/Tools/mingw730_64/lib/gcc <br />
C:/Qt/Qt5.14.2/Tools/mingw730_64/x86_64-w64-mingw32/lib <br />
C:/Qt/Qt5.14.2/Tools/mingw73</p>
<p dir="auto">I am aware that the toolkits in the two files mentioned above are inconsistent; I am simply using them as an example. What are the steps involved when QMake generates the <code>.qmake.stash</code> file? Which environment variables should be set? The MSVC toolchain on my machine works correctly; could it be that the GCC compiler isn't being detected because the MSVC compiler is being found first?</p>
]]></description><link>https://forum.qt.io/topic/165242/qmake-can-t-generator-.stash-file</link><generator>RSS for Node</generator><lastBuildDate>Wed, 11 Nov 2026 11:29:36 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/165242.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 06 Nov 2026 04:41:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to qmake can&#x27;t generator .stash file on Fri, 06 Nov 2026 09:58:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hello_tyggylpp">@<bdi>hello_tyggylpp</bdi></a><br />
I know nothing about this.  But:</p>
<ul>
<li>You say your file is "incomplete" and stops at <code>QMAKE_GCC_PATCH_VERSION</code>.</li>
<li>You say the "complete" file should have <code>QMAKE_CXX.INCDIRS = ...</code> next.</li>
<li>You can see that the value for that <em>as shown in your paste</em> is "clearly" (at least to me) wrong</li>
</ul>
<pre><code>QMAKE_CXX.INCDIRS =
C:/Qt/Qt5.14.2/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++
C:/Qt/Qt5.14.2/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/x86_64-w64-mingw32 \ C:/Qt/Qt5.14.2/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/backward
C:/Qt/Qt5.14.2/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include
C:/Qt/Qt5.14.2/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include-fixed
C:/Qt/Qt5.14.2/Tools/mingw730_64/x86_64-w64-mingw32/include
</code></pre>
<p dir="auto">I have copied &amp; pasted what you have written/pasted.  You should always paste code/output into this forum inside the forum's <em>code tags</em> (the <code>&lt;/&gt;</code> toolbar button or inside <code>```</code> or <code>`</code> blocks).  I suggest you repaste "the complete <code>.qmake.stash</code> file:" using the correct tags/verbatim if you want you/us to see whether it is indeed incorrect as it currently appears to be.</p>
]]></description><link>https://forum.qt.io/post/840789</link><guid isPermaLink="true">https://forum.qt.io/post/840789</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Fri, 06 Nov 2026 09:58:04 GMT</pubDate></item><item><title><![CDATA[Reply to qmake can&#x27;t generator .stash file on Fri, 06 Nov 2026 09:41:10 GMT]]></title><description><![CDATA[<p dir="auto">Ok, I hoped that there is another gcc in the PATH or something like this.<br />
In the current sources your error messsage is no longer available so it's hard to find out what's going wrong here and I didn't use qmake since maybe 15 years... Search for 'failed to parse default search paths from compiler output' in the mkspecs subdirectory of your Qt installation to see why it is triggered.</p>
]]></description><link>https://forum.qt.io/post/840788</link><guid isPermaLink="true">https://forum.qt.io/post/840788</guid><dc:creator><![CDATA[Christian Ehrlicher]]></dc:creator><pubDate>Fri, 06 Nov 2026 09:41:10 GMT</pubDate></item><item><title><![CDATA[Reply to qmake can&#x27;t generator .stash file on Fri, 06 Nov 2026 08:52:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/christian-ehrlicher">@<bdi>Christian-Ehrlicher</bdi></a> Setting up environment for Qt usage...</p>
<p dir="auto">C:\Qt\Qt5.14.2\5.14.2\mingw73_64&gt;gcc --version<br />
gcc (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 7.3.0<br />
Copyright (C) 2017 Free Software Foundation, Inc.<br />
This is free software; see the source for copying conditions.  There is NO<br />
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.</p>
<p dir="auto">C:\Qt\Qt5.14.2\5.14.2\mingw73_64&gt;</p>
]]></description><link>https://forum.qt.io/post/840787</link><guid isPermaLink="true">https://forum.qt.io/post/840787</guid><dc:creator><![CDATA[hello_tyggylpp]]></dc:creator><pubDate>Fri, 06 Nov 2026 08:52:28 GMT</pubDate></item><item><title><![CDATA[Reply to qmake can&#x27;t generator .stash file on Fri, 06 Nov 2026 08:48:34 GMT]]></title><description><![CDATA[<p dir="auto">Is the correct gcc in the PATH? What does 'gcc --version' prints out?</p>
]]></description><link>https://forum.qt.io/post/840786</link><guid isPermaLink="true">https://forum.qt.io/post/840786</guid><dc:creator><![CDATA[Christian Ehrlicher]]></dc:creator><pubDate>Fri, 06 Nov 2026 08:48:34 GMT</pubDate></item><item><title><![CDATA[Reply to qmake can&#x27;t generator .stash file on Fri, 06 Nov 2026 07:57:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jsulm">@<bdi>jsulm</bdi></a> yes.<br />
Setting up environment for Qt usage...</p>
<p dir="auto">C:\Qt\Qt5.14.2\5.14.2\mingw73_32&gt;qmake --version<br />
QMake version 3.1<br />
Using Qt version 5.14.2 in C:/Qt/Qt5.14.2/5.14.2/mingw73_32/lib</p>
<p dir="auto">C:\Qt\Qt5.14.2\5.14.2\mingw73_32&gt;cd D:\tmp\untitled22</p>
<p dir="auto">C:\Qt\Qt5.14.2\5.14.2\mingw73_32&gt;cd /d D:\tmp\untitled22</p>
<p dir="auto">D:\tmp\untitled22&gt;mkdir build</p>
<p dir="auto">D:\tmp\untitled22&gt;cd build</p>
<p dir="auto">D:\tmp\untitled22\build&gt;qmake.exe ../untitled22.pro -spec win32-g++<br />
Info: creating stash file D:\tmp\untitled22\build.qmake.stash<br />
Project ERROR: failed to parse default search paths from compiler output</p>
]]></description><link>https://forum.qt.io/post/840783</link><guid isPermaLink="true">https://forum.qt.io/post/840783</guid><dc:creator><![CDATA[hello_tyggylpp]]></dc:creator><pubDate>Fri, 06 Nov 2026 07:57:03 GMT</pubDate></item><item><title><![CDATA[Reply to qmake can&#x27;t generator .stash file on Fri, 06 Nov 2026 07:51:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hello_tyggylpp">@<bdi>hello_tyggylpp</bdi></a> Do you call qmake from the preconfigured terminal provided by the Qt installation?</p>
]]></description><link>https://forum.qt.io/post/840782</link><guid isPermaLink="true">https://forum.qt.io/post/840782</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Fri, 06 Nov 2026 07:51:48 GMT</pubDate></item><item><title><![CDATA[Reply to qmake can&#x27;t generator .stash file on Fri, 06 Nov 2026 06:34:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jsulm">@<bdi>jsulm</bdi></a> qtcreator,and qt5.14.2 mingw shell all not work.qt5.12.2 qt5.14 same.</p>
]]></description><link>https://forum.qt.io/post/840778</link><guid isPermaLink="true">https://forum.qt.io/post/840778</guid><dc:creator><![CDATA[hello_tyggylpp]]></dc:creator><pubDate>Fri, 06 Nov 2026 06:34:18 GMT</pubDate></item><item><title><![CDATA[Reply to qmake can&#x27;t generator .stash file on Fri, 06 Nov 2026 06:16:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hello_tyggylpp">@<bdi>hello_tyggylpp</bdi></a> How do you call qmake (manually or in QtCreator)?<br />
Any reason to still use Qt5 (not even the latest Qt5 version)?</p>
]]></description><link>https://forum.qt.io/post/840777</link><guid isPermaLink="true">https://forum.qt.io/post/840777</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Fri, 06 Nov 2026 06:16:21 GMT</pubDate></item></channel></rss>