<?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[Why all the graphics libraries included for a console app]]></title><description><![CDATA[<p dir="auto">I used the fortune server example to create my first app, then removed all aspects of the gui.  It's a console only app now.</p>
<p dir="auto">However, using ldd I see that my compiled app still depends on lots of libX11 etc. libraries (see below).  Why?  Is this left over from the fortune example - and if so how do I get rid of them?</p>
<hr />
<p dir="auto">@ linux-vdso.so.1 =&gt;  (0x00007fff79f82000)<br />
libQt5Network.so.5 =&gt; /opt/Qt/5.1.1/gcc_64/lib/libQt5Network.so.5 (0x00007f655d339000)<br />
libQt5Gui.so.5 =&gt; /opt/Qt/5.1.1/gcc_64/lib/libQt5Gui.so.5 (0x00007f655cce0000)<br />
libQt5Core.so.5 =&gt; /opt/Qt/5.1.1/gcc_64/lib/libQt5Core.so.5 (0x00007f655c656000)<br />
libGL.so.1 =&gt; /lib64/libGL.so.1 (0x000000372ee00000)<br />
libpthread.so.0 =&gt; /lib64/libpthread.so.0 (0x0000003724600000)<br />
libstdc++.so.6 =&gt; /lib64/libstdc++.so.6 (0x0000003732e00000)<br />
libm.so.6 =&gt; /lib64/libm.so.6 (0x0000003724e00000)<br />
libgcc_s.so.1 =&gt; /lib64/libgcc_s.so.1 (0x0000003726600000)<br />
libc.so.6 =&gt; /lib64/libc.so.6 (0x0000003723e00000)<br />
libicui18n.so.51 =&gt; /opt/Qt/5.1.1/gcc_64/lib/libicui18n.so.51 (0x00007f655c227000)<br />
libicuuc.so.51 =&gt; /opt/Qt/5.1.1/gcc_64/lib/libicuuc.so.51 (0x00007f655bea0000)<br />
libdl.so.2 =&gt; /lib64/libdl.so.2 (0x0000003724200000)<br />
libgthread-2.0.so.0 =&gt; /lib64/libgthread-2.0.so.0 (0x000000372ae00000)<br />
librt.so.1 =&gt; /lib64/librt.so.1 (0x0000003725200000)<br />
libglib-2.0.so.0 =&gt; /lib64/libglib-2.0.so.0 (0x0000003725e00000)<br />
/lib64/ld-linux-x86-64.so.2 (0x0000003723a00000)<br />
libglapi.so.0 =&gt; /lib64/libglapi.so.0 (0x0000003730a00000)<br />
libXext.so.6 =&gt; /lib64/libXext.so.6 (0x0000003728e00000)<br />
libXdamage.so.1 =&gt; /lib64/libXdamage.so.1 (0x000000372fe00000)<br />
libXfixes.so.3 =&gt; /lib64/libXfixes.so.3 (0x0000003732600000)<br />
libX11-xcb.so.1 =&gt; /lib64/libX11-xcb.so.1 (0x000000372be00000)<br />
libX11.so.6 =&gt; /lib64/libX11.so.6 (0x0000003727e00000)<br />
libxcb-glx.so.0 =&gt; /lib64/libxcb-glx.so.0 (0x000000372da00000)<br />
libxcb-dri2.so.0 =&gt; /lib64/libxcb-dri2.so.0 (0x000000372d600000)<br />
libxcb.so.1 =&gt; /lib64/libxcb.so.1 (0x0000003727a00000)<br />
libXxf86vm.so.1 =&gt; /lib64/libXxf86vm.so.1 (0x0000003729e00000)<br />
libdrm.so.2 =&gt; /lib64/libdrm.so.2 (0x0000003730600000)<br />
libselinux.so.1 =&gt; /lib64/libselinux.so.1 (0x0000003725a00000)<br />
libicudata.so.51 =&gt; /opt/Qt/5.1.1/gcc_64/lib/libicudata.so.51 (0x00007f655a751000)<br />
libXau.so.6 =&gt; /lib64/libXau.so.6 (0x0000003728200000)<br />
libpcre.so.1 =&gt; /lib64/libpcre.so.1 (0x0000003725600000)@</p>
]]></description><link>https://forum.qt.io/topic/33169/why-all-the-graphics-libraries-included-for-a-console-app</link><generator>RSS for Node</generator><lastBuildDate>Sun, 03 May 2026 08:51:50 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/33169.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 17 Oct 2013 01:25:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Why all the graphics libraries included for a console app on Thu, 17 Oct 2013 16:54:41 GMT]]></title><description><![CDATA[<p dir="auto">I took your advice and create a new console app, and found a few more settings</p>
<p dir="auto">CONFIG -=app_bundle<br />
QT -=gui</p>
<p dir="auto">and once I added those to my .pro it now looks right.  Thanks!</p>
]]></description><link>https://forum.qt.io/post/199495</link><guid isPermaLink="true">https://forum.qt.io/post/199495</guid><dc:creator><![CDATA[ocgltd]]></dc:creator><pubDate>Thu, 17 Oct 2013 16:54:41 GMT</pubDate></item><item><title><![CDATA[Reply to Why all the graphics libraries included for a console app on Thu, 17 Oct 2013 16:48:07 GMT]]></title><description><![CDATA[<p dir="auto">I tried adding CONFIG+=console to my .pro file, but the executable still has all the x11 libraries....</p>
]]></description><link>https://forum.qt.io/post/199492</link><guid isPermaLink="true">https://forum.qt.io/post/199492</guid><dc:creator><![CDATA[ocgltd]]></dc:creator><pubDate>Thu, 17 Oct 2013 16:48:07 GMT</pubDate></item><item><title><![CDATA[Reply to Why all the graphics libraries included for a console app on Thu, 17 Oct 2013 14:49:15 GMT]]></title><description><![CDATA[<p dir="auto">Yes, you should also add CONFIG += console. Take a look "here":<a href="http://qt-project.org/doc/qt-5.0/qtdoc/qmake-reference.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://qt-project.org/doc/qt-5.0/qtdoc/qmake-reference.html</a> to find out about other qmake options available.</p>
<p dir="auto">Anyway, the easiest way is to create an empty console app and take a look at the generated config.</p>
]]></description><link>https://forum.qt.io/post/199463</link><guid isPermaLink="true">https://forum.qt.io/post/199463</guid><dc:creator><![CDATA[Chris Kawa]]></dc:creator><pubDate>Thu, 17 Oct 2013 14:49:15 GMT</pubDate></item><item><title><![CDATA[Reply to Why all the graphics libraries included for a console app on Thu, 17 Oct 2013 14:08:05 GMT]]></title><description><![CDATA[<p dir="auto">I changed QApplication to QCoreApplication, and removed widgets from my .pro file (only QT += network left).  My Code is too big to post now...but are there other things I can look for?</p>
]]></description><link>https://forum.qt.io/post/199451</link><guid isPermaLink="true">https://forum.qt.io/post/199451</guid><dc:creator><![CDATA[ocgltd]]></dc:creator><pubDate>Thu, 17 Oct 2013 14:08:05 GMT</pubDate></item><item><title><![CDATA[Reply to Why all the graphics libraries included for a console app on Thu, 17 Oct 2013 09:43:25 GMT]]></title><description><![CDATA[<p dir="auto">Did you remove also QT += widgets etc. from your .pro file?</p>
]]></description><link>https://forum.qt.io/post/199387</link><guid isPermaLink="true">https://forum.qt.io/post/199387</guid><dc:creator><![CDATA[Chris Kawa]]></dc:creator><pubDate>Thu, 17 Oct 2013 09:43:25 GMT</pubDate></item><item><title><![CDATA[Reply to Why all the graphics libraries included for a console app on Thu, 17 Oct 2013 09:31:22 GMT]]></title><description><![CDATA[<p dir="auto">This is just a guess since I can't see your source code. Probably you are still using "QApplication" header instead of "QCoreApplication".</p>
<p dir="auto">Maybe you can post your code here</p>
]]></description><link>https://forum.qt.io/post/199382</link><guid isPermaLink="true">https://forum.qt.io/post/199382</guid><dc:creator><![CDATA[Code_ReaQtor]]></dc:creator><pubDate>Thu, 17 Oct 2013 09:31:22 GMT</pubDate></item></channel></rss>