<?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[Fail to build Qt 5.15.3]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">I cannot build Qt 5.15.3. I get the following error, even though I'v added the -I flag. Any help are most appreciated. Thank you in advance!</p>
<p dir="auto"><strong>bash-5.1$</strong> <em>pwd</em><br />
/home/michael/Downloads/qt-everywhere-src-5.15.3<br />
<strong>bash-5.1$</strong> <em>./configure -c++std c++11 -I /usr/include/c++/11.2.0/ -prefix $PWD/qtbase -opensource -nomake tests make -j 4</em></p>
<pre><code>+ cd qtbase
+ /home/michael/Downloads/qt-everywhere-src-5.15.3/qtbase/configure -top-level -c++std c++11 -I /usr/include/c++/11.2.0/ -prefix /home/michael/Downloads/qt-everywhere-src-5.15.3/qtbase -opensource -nomake tests make -j 4
Creating qmake...
.In file included from /home/michael/Downloads/qt-everywhere-src-5.15.3/qtbase/src/corelib/text/qbytearray.cpp:43:
/home/michael/Downloads/qt-everywhere-src-5.15.3/qtbase/src/corelib/text/qbytearraymatcher.h: In static member function ‘static QStaticByteArrayMatcherBase::Skiptable QStaticByteArrayMatcherBase::generate(const char*, uint)’:
/home/michael/Downloads/qt-everywhere-src-5.15.3/qtbase/src/corelib/text/qbytearraymatcher.h:103:38: error: ‘numeric_limits’ is not a member of ‘std’
  103 |         const auto uchar_max = (std::numeric_limits&lt;uchar&gt;::max)();
      |                                      ^~~~~~~~~~~~~~
/home/michael/Downloads/qt-everywhere-src-5.15.3/qtbase/src/corelib/text/qbytearraymatcher.h:103:58: error: expected primary-expression before ‘&gt;’ token
  103 |         const auto uchar_max = (std::numeric_limits&lt;uchar&gt;::max)();
      |                                                          ^
/home/michael/Downloads/qt-everywhere-src-5.15.3/qtbase/src/corelib/text/qbytearraymatcher.h:103:61: error: ‘::max’ has not been declared; did you mean ‘std::max’?
  103 |         const auto uchar_max = (std::numeric_limits&lt;uchar&gt;::max)();
      |                                                             ^~~
      |                                                             std::max
In file included from /usr/include/c++/11.2.0/algorithm:62,
                 from /home/michael/Downloads/qt-everywhere-src-5.15.3/qtbase/include/QtCore/../../src/corelib/global/qglobal.h:142,
                 from /home/michael/Downloads/qt-everywhere-src-5.15.3/qtbase/include/QtCore/qglobal.h:1,
                 from /home/michael/Downloads/qt-everywhere-src-5.15.3/qtbase/include/QtCore/../../src/corelib/thread/qatomic.h:41,
                 from /home/michael/Downloads/qt-everywhere-src-5.15.3/qtbase/include/QtCore/qatomic.h:1,
                 from /home/michael/Downloads/qt-everywhere-src-5.15.3/qtbase/include/QtCore/../../src/corelib/tools/qrefcount.h:43,
                 from /home/michael/Downloads/qt-everywhere-src-5.15.3/qtbase/include/QtCore/qrefcount.h:1,
                 from /home/michael/Downloads/qt-everywhere-src-5.15.3/qtbase/src/corelib/text/qbytearray.h:44,
                 from /home/michael/Downloads/qt-everywhere-src-5.15.3/qtbase/src/corelib/text/qbytearray.cpp:42:
/usr/include/c++/11.2.0/bits/stl_algo.h:3467:5: note: ‘std::max’ declared here
 3467 |     max(initializer_list&lt;_Tp&gt; __l, _Compare __comp)
      |     ^~~
gmake: *** [Makefile:350: qbytearray.o] Error 1
</code></pre>
<p dir="auto">bash-5.1$</p>
]]></description><link>https://forum.qt.io/topic/143352/fail-to-build-qt-5-15-3</link><generator>RSS for Node</generator><lastBuildDate>Mon, 08 Jun 2026 08:35:37 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/143352.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 01 Mar 2023 19:08:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Fail to build Qt 5.15.3 on Wed, 01 Mar 2023 22:01:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/christian-ehrlicher">@<bdi>Christian-Ehrlicher</bdi></a></p>
<p dir="auto">Thank you very much for the help and sorry for the identical post.</p>
]]></description><link>https://forum.qt.io/post/749640</link><guid isPermaLink="true">https://forum.qt.io/post/749640</guid><dc:creator><![CDATA[Michaelis]]></dc:creator><pubDate>Wed, 01 Mar 2023 22:01:32 GMT</pubDate></item><item><title><![CDATA[Reply to Fail to build Qt 5.15.3 on Wed, 01 Mar 2023 19:11:20 GMT]]></title><description><![CDATA[<p dir="auto">The <a href="https://forum.qt.io/search?term=std%3A%3Anumeric_limits%3Cuchar%3E%3A%3Amax&amp;in=titlesposts&amp;matchWords=all&amp;sortBy=relevance&amp;sortDirection=desc&amp;showAs=posts">search function</a> will help you: <a href="https://forum.qt.io/topic/139626/unable-to-build-static-version-of-qt-5-15-2">https://forum.qt.io/topic/139626/unable-to-build-static-version-of-qt-5-15-2</a></p>
]]></description><link>https://forum.qt.io/post/749617</link><guid isPermaLink="true">https://forum.qt.io/post/749617</guid><dc:creator><![CDATA[Christian Ehrlicher]]></dc:creator><pubDate>Wed, 01 Mar 2023 19:11:20 GMT</pubDate></item></channel></rss>