<?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[Qt 5.14.1 won&#x27;t compile anything on my CentOS-7]]></title><description><![CDATA[<p dir="auto">I installed 5.14.1 on Centos-7 a couple days ago. Problem is that nothing, not even the simplest example code will build. Every attempt to compile anything generates the following error:</p>
<p dir="auto"><strong>#error “Qt requires C++11 support”</strong></p>
<p dir="auto">I have tried the obvious fixes, but they have no effect:</p>
<p dir="auto"><strong>CONFIG += c++11<br />
QMAKE_CXXFLAGS += -std=c++11</strong></p>
<p dir="auto">I have zero issues building with 5.12.4 or 5.12.6, but I have been waiting for a fix that is only in 5.14.1. Here is the relevant information from my CentOS-7 system:</p>
<blockquote>
<p dir="auto">cat /etc/os-release<br />
NAME="CentOS Linux"<br />
VERSION="7 (Core)"<br />
ID="centos"<br />
ID_LIKE="rhel fedora"<br />
VERSION_ID="7"</p>
</blockquote>
<blockquote>
<p dir="auto">uname -r<br />
3.10.0-693.21.1.el7.x86_64</p>
</blockquote>
<blockquote>
<p dir="auto">gcc --version<br />
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39)<br />
Copyright (C) 2015 Free Software Foundation, Inc.</p>
</blockquote>
<p dir="auto">I have also tried it on another CentOS-7 machine with the same result. Is anyone else experiencing an issue with 5.14.1 on CentOS-7?</p>
]]></description><link>https://forum.qt.io/topic/111182/qt-5-14-1-won-t-compile-anything-on-my-centos-7</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Apr 2026 13:06:36 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/111182.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 30 Jan 2020 13:38:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Qt 5.14.1 won&#x27;t compile anything on my CentOS-7 on Sun, 28 Jun 2020 09:33:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/yanchenyu">@<bdi>YanChenyu</bdi></a> Please post in english.</p>
]]></description><link>https://forum.qt.io/post/603500</link><guid isPermaLink="true">https://forum.qt.io/post/603500</guid><dc:creator><![CDATA[Christian Ehrlicher]]></dc:creator><pubDate>Sun, 28 Jun 2020 09:33:57 GMT</pubDate></item><item><title><![CDATA[Reply to Qt 5.14.1 won&#x27;t compile anything on my CentOS-7 on Sun, 28 Jun 2020 09:29:30 GMT]]></title><description><![CDATA[<p dir="auto">我尝试后也遇到了此问题。<br />
centos 7 2003<br />
qt5.14.2</p>
]]></description><link>https://forum.qt.io/post/603499</link><guid isPermaLink="true">https://forum.qt.io/post/603499</guid><dc:creator><![CDATA[YanChenyu]]></dc:creator><pubDate>Sun, 28 Jun 2020 09:29:30 GMT</pubDate></item><item><title><![CDATA[Reply to Qt 5.14.1 won&#x27;t compile anything on my CentOS-7 on Wed, 05 Feb 2020 19:49:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bob-fachetti">@<bdi>Bob-Fachetti</bdi></a> said in <a href="/post/575034">Qt 5.14.1 won't compile anything on my CentOS-7</a>:</p>
<blockquote>
<p dir="auto">Qt requires C++11 support</p>
</blockquote>
<p dir="auto">Where exactly do you get this message? From qbasicatomic.h ? <s>Can you show us all compiler options?</s></p>
<p dir="auto">See <a href="https://codereview.qt-project.org/c/qt/qtbase/+/288702" target="_blank" rel="noopener noreferrer nofollow ugc">https://codereview.qt-project.org/c/qt/qtbase/+/288702</a> and <a href="https://codereview.qt-project.org/c/qt/qtbase/+/285582" target="_blank" rel="noopener noreferrer nofollow ugc">https://codereview.qt-project.org/c/qt/qtbase/+/285582</a></p>
<p dir="auto">/edit: ok - gcc &lt; 5 is not supported with Qt5.14 anymore: <a href="https://codereview.qt-project.org/c/qt/qtdoc/+/288825" target="_blank" rel="noopener noreferrer nofollow ugc">https://codereview.qt-project.org/c/qt/qtdoc/+/288825</a></p>
]]></description><link>https://forum.qt.io/post/576057</link><guid isPermaLink="true">https://forum.qt.io/post/576057</guid><dc:creator><![CDATA[Christian Ehrlicher]]></dc:creator><pubDate>Wed, 05 Feb 2020 19:49:27 GMT</pubDate></item><item><title><![CDATA[Reply to Qt 5.14.1 won&#x27;t compile anything on my CentOS-7 on Wed, 05 Feb 2020 16:59:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bob-fachetti">@<bdi>Bob-Fachetti</bdi></a><br />
5.14.1 requires gcc &gt; 5.0 even though the official documentation says it supports gcc &gt; 4.8.5 . for generic Linux (CentOS-7).</p>
]]></description><link>https://forum.qt.io/post/576039</link><guid isPermaLink="true">https://forum.qt.io/post/576039</guid><dc:creator><![CDATA[Bob Fachetti]]></dc:creator><pubDate>Wed, 05 Feb 2020 16:59:12 GMT</pubDate></item><item><title><![CDATA[Reply to Qt 5.14.1 won&#x27;t compile anything on my CentOS-7 on Thu, 30 Jan 2020 13:46:03 GMT]]></title><description><![CDATA[<p dir="auto">According to GCC themselves, it has pretty much full C++11 support (<a href="https://gcc.gnu.org/gcc-4.8/cxx0x_status.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://gcc.gnu.org/gcc-4.8/cxx0x_status.html</a>). So I think this is something you should raise on Qt bugtracker.</p>
<p dir="auto">I think CentOS allows upgrading GCC (some devel package or something, sorry I don't remember the name), maybe you should try that?</p>
]]></description><link>https://forum.qt.io/post/575036</link><guid isPermaLink="true">https://forum.qt.io/post/575036</guid><dc:creator><![CDATA[sierdzio]]></dc:creator><pubDate>Thu, 30 Jan 2020 13:46:03 GMT</pubDate></item></channel></rss>