<?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[QtCharts installation on Ubuntu]]></title><description><![CDATA[<p dir="auto">I recently installed Ubuntu 20.04 where Qt 5.12.8 is the bundled with the operating system. However Ubuntu did not supply either Qt MaintenanceTool or QtCharts. I wish to install QtCharts, but without MaintenanceTool it is impossible. What is the easiest way of getting QtCharts installed on my system?</p>
]]></description><link>https://forum.qt.io/topic/120196/qtcharts-installation-on-ubuntu</link><generator>RSS for Node</generator><lastBuildDate>Sun, 15 Mar 2026 23:25:58 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/120196.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 22 Oct 2020 09:06:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QtCharts installation on Ubuntu on Fri, 23 Oct 2020 08:22:46 GMT]]></title><description><![CDATA[<p dir="auto">I still don't get what the problem is...</p>
<p dir="auto">if you want to distribute your app on linux - don't distribute a binary, deploy to some packaging solution instead (DEB, RPM etc.) - this way the system will make <strong>sure</strong> that all necessary libs are installed, and it will be done automatically.</p>
<p dir="auto">Or do a standalone package (AppImage, snap, Flatpak) which will bundle everything inside - then you also don't need to worry about any libs.</p>
<blockquote>
<p dir="auto">However, I have a cmake-based system</p>
</blockquote>
<p dir="auto">The procedure for cmake is the same, only the syntax a bit different:</p>
<pre><code>find_package(QT NAMES Qt6 Qt5 COMPONENTS Core REQUIRED)
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Core Gui Charts REQUIRED)
# then make sure to link to Charts when building your app
target_link_libraries (yourApp Qt${QT_VERSION_MAJOR}::Charts)
</code></pre>
]]></description><link>https://forum.qt.io/post/623789</link><guid isPermaLink="true">https://forum.qt.io/post/623789</guid><dc:creator><![CDATA[sierdzio]]></dc:creator><pubDate>Fri, 23 Oct 2020 08:22:46 GMT</pubDate></item><item><title><![CDATA[Reply to QtCharts installation on Ubuntu on Fri, 23 Oct 2020 13:15:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sierdzio">@<bdi>sierdzio</bdi></a><br />
This helped very much.<br />
Thank oyu.</p>
]]></description><link>https://forum.qt.io/post/623839</link><guid isPermaLink="true">https://forum.qt.io/post/623839</guid><dc:creator><![CDATA[willemf]]></dc:creator><pubDate>Fri, 23 Oct 2020 13:15:25 GMT</pubDate></item><item><title><![CDATA[Reply to QtCharts installation on Ubuntu on Fri, 23 Oct 2020 08:22:46 GMT]]></title><description><![CDATA[<p dir="auto">I still don't get what the problem is...</p>
<p dir="auto">if you want to distribute your app on linux - don't distribute a binary, deploy to some packaging solution instead (DEB, RPM etc.) - this way the system will make <strong>sure</strong> that all necessary libs are installed, and it will be done automatically.</p>
<p dir="auto">Or do a standalone package (AppImage, snap, Flatpak) which will bundle everything inside - then you also don't need to worry about any libs.</p>
<blockquote>
<p dir="auto">However, I have a cmake-based system</p>
</blockquote>
<p dir="auto">The procedure for cmake is the same, only the syntax a bit different:</p>
<pre><code>find_package(QT NAMES Qt6 Qt5 COMPONENTS Core REQUIRED)
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Core Gui Charts REQUIRED)
# then make sure to link to Charts when building your app
target_link_libraries (yourApp Qt${QT_VERSION_MAJOR}::Charts)
</code></pre>
]]></description><link>https://forum.qt.io/post/623789</link><guid isPermaLink="true">https://forum.qt.io/post/623789</guid><dc:creator><![CDATA[sierdzio]]></dc:creator><pubDate>Fri, 23 Oct 2020 08:22:46 GMT</pubDate></item><item><title><![CDATA[Reply to QtCharts installation on Ubuntu on Fri, 23 Oct 2020 08:09:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/willemf">@<bdi>willemf</bdi></a> said in <a href="/post/623783">QtCharts installation on Ubuntu</a>:</p>
<blockquote>
<p dir="auto">How can one verify that the library exists on one's linux box?</p>
</blockquote>
<p dir="auto">Simply check whether the related Ubuntu packages are installed...<br />
Like libqt5charts5-dev which was pointed out in this thread.</p>
]]></description><link>https://forum.qt.io/post/623784</link><guid isPermaLink="true">https://forum.qt.io/post/623784</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Fri, 23 Oct 2020 08:09:21 GMT</pubDate></item><item><title><![CDATA[Reply to QtCharts installation on Ubuntu on Fri, 23 Oct 2020 08:06:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sierdzio">@<bdi>sierdzio</bdi></a><br />
When installing Qt from the Qt web site, the whole of Qt resides in a single folder, typically someting like:<br />
Qt/5.12.8/</p>
<p dir="auto">The bundled Qt in Ubuntu is not in a single folder, e.g. the header files are in usr/incude/x86_64-linux-gnu/qt5</p>
<p dir="auto">I have:<br />
// ----------------------------------------------------------------------------------<br />
willem[~]$ dpkg -s libqt5charts5-dev<br />
Package: libqt5charts5-dev<br />
Status: install ok installed<br />
Priority: optional<br />
Section: libdevel<br />
Installed-Size: 286<br />
Maintainer: Ubuntu Developers <a href="mailto:ubuntu-devel-discuss@lists.ubuntu.com" target="_blank" rel="noopener noreferrer nofollow ugc">ubuntu-devel-discuss@lists.ubuntu.com</a><br />
Architecture: amd64<br />
Multi-Arch: same<br />
Source: qtcharts-opensource-src<br />
Version: 5.12.8-0ubuntu1<br />
Depends: libqt5charts5 (= 5.12.8-0ubuntu1), qtbase5-dev<br />
Description: Qt charts development files<br />
Qt Charts module provides a set of easy to use chart components.<br />
.<br />
This package contains the header development files used for building Qt 5<br />
applications using QtCharts.<br />
Homepage: <a href="https://doc.qt.io/qt-5/qtcharts-index.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-5/qtcharts-index.html</a><br />
Original-Maintainer: Debian Qt/KDE Maintainers <a href="mailto:debian-qt-kde@lists.debian.org" target="_blank" rel="noopener noreferrer nofollow ugc">debian-qt-kde@lists.debian.org</a><br />
// -----------------------------------------------------------------------------------<br />
This means the header files are in place. Indeed, I find the header files in usr/incude/x86_64-linux-gnu/qt5</p>
<p dir="auto">I need away to verify that the correct library is loaded, as opposed to the header file package.</p>
<p dir="auto">So, I need the library against which these headers can link, typically performed using<br />
QT += charts<br />
in a qmake-based system.</p>
<p dir="auto">However, I have a cmake-based system.</p>
<p dir="auto">How can one verify that the library exists on one's linux box?</p>
]]></description><link>https://forum.qt.io/post/623783</link><guid isPermaLink="true">https://forum.qt.io/post/623783</guid><dc:creator><![CDATA[willemf]]></dc:creator><pubDate>Fri, 23 Oct 2020 08:06:06 GMT</pubDate></item><item><title><![CDATA[Reply to QtCharts installation on Ubuntu on Thu, 22 Oct 2020 09:43:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/willemf">@<bdi>willemf</bdi></a> said in <a href="/post/623585">QtCharts installation on Ubuntu</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sierdzio">@<bdi>sierdzio</bdi></a></p>
<p dir="auto">I installed the library. However, when I do<br />
#include &lt;QtCharts&gt;      in a cpp header file<br />
I get an error "No such file"</p>
</blockquote>
<p dir="auto">You need to add the module in your .pro (or cmake) file:</p>
<pre><code>QT += charts
</code></pre>
<blockquote>
<p dir="auto">Since Qt components are not all installed in the same place in the system area, it's not easily possible to upgrade (or even delete) the bundled version. So I am stuck with the bundled Qt.</p>
</blockquote>
<p dir="auto">I don't understand what you mean to say here.</p>
]]></description><link>https://forum.qt.io/post/623590</link><guid isPermaLink="true">https://forum.qt.io/post/623590</guid><dc:creator><![CDATA[sierdzio]]></dc:creator><pubDate>Thu, 22 Oct 2020 09:43:30 GMT</pubDate></item><item><title><![CDATA[Reply to QtCharts installation on Ubuntu on Thu, 22 Oct 2020 09:43:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/willemf">@<bdi>willemf</bdi></a> Did you add</p>
<pre><code>QT += charts
</code></pre>
<p dir="auto">to your pro file as explained in the documentation?</p>
]]></description><link>https://forum.qt.io/post/623588</link><guid isPermaLink="true">https://forum.qt.io/post/623588</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Thu, 22 Oct 2020 09:43:21 GMT</pubDate></item><item><title><![CDATA[Reply to QtCharts installation on Ubuntu on Thu, 22 Oct 2020 09:39:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sierdzio">@<bdi>sierdzio</bdi></a></p>
<p dir="auto">I installed the library. However, when I do<br />
#include &lt;QtCharts&gt;      in a cpp header file<br />
I get an error "No such file"</p>
<p dir="auto">Since Qt components are not all installed in the same place in the system area, it's not easily possible to upgrade (or even delete) the bundled version. So I am stuck with the bundled Qt.</p>
]]></description><link>https://forum.qt.io/post/623585</link><guid isPermaLink="true">https://forum.qt.io/post/623585</guid><dc:creator><![CDATA[willemf]]></dc:creator><pubDate>Thu, 22 Oct 2020 09:39:48 GMT</pubDate></item><item><title><![CDATA[Reply to QtCharts installation on Ubuntu on Thu, 22 Oct 2020 09:09:54 GMT]]></title><description><![CDATA[<p dir="auto">You need to install this package:</p>
<pre><code>sudo apt install libqt5charts5-dev
</code></pre>
<p dir="auto">Please remember that QtCharts are <strong>not available</strong> under LGPL license (only GPLv3).</p>
]]></description><link>https://forum.qt.io/post/623574</link><guid isPermaLink="true">https://forum.qt.io/post/623574</guid><dc:creator><![CDATA[sierdzio]]></dc:creator><pubDate>Thu, 22 Oct 2020 09:09:54 GMT</pubDate></item><item><title><![CDATA[Reply to QtCharts installation on Ubuntu on Thu, 22 Oct 2020 09:09:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/willemf">@<bdi>willemf</bdi></a> said in <a href="/post/623572">QtCharts installation on Ubuntu</a>:</p>
<blockquote>
<p dir="auto">What is the easiest way of getting QtCharts installed on my system?</p>
</blockquote>
<p dir="auto">Use the Qt online installer to install a recent Qt version together with QtCharts (you also will have the maintenance tool then).<br />
Or are you bound to the Qt version Ubuntu is providing?</p>
]]></description><link>https://forum.qt.io/post/623573</link><guid isPermaLink="true">https://forum.qt.io/post/623573</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Thu, 22 Oct 2020 09:09:18 GMT</pubDate></item></channel></rss>