<?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[Cant access external or system libraries]]></title><description><![CDATA[<p dir="auto">Dear all,</p>
<p dir="auto">I've been trying to add an external library to the project, but only been successful when the library.a file is in my build tree.<br />
I can't add system library either. like /lib/librt.so.1 ;</p>
<p dir="auto">For adding, I follow:<br />
Side panel &gt; Projects &gt; add library &gt; External library &gt; ...<br />
for the system library I follow:<br />
Side panel &gt; Projects &gt; add library &gt; system library &gt; ...<br />
I also tried to add /lib to my Projects &gt; Build Settings &gt; Build environment &gt; LD_LIBRARY_PATH<br />
and added :/lib      , but didn't help.</p>
<p dir="auto">Although the file is there, the command "exists" in <a href="http://project.pro" target="_blank" rel="noopener noreferrer nofollow ugc">project.pro</a> file return as not found.</p>
<p dir="auto">Any idea's?<br />
Thanks in advance,<br />
Saeed<br />
Qt 4.7.4, (Qt creator 2.4.1) on linux (Fedora 15)</p>
]]></description><link>https://forum.qt.io/topic/14460/cant-access-external-or-system-libraries</link><generator>RSS for Node</generator><lastBuildDate>Fri, 08 May 2026 06:16:28 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/14460.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 27 Feb 2012 12:56:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Cant access external or system libraries on Tue, 28 Feb 2012 08:10:09 GMT]]></title><description><![CDATA[<p dir="auto">You're right,</p>
<p dir="auto">This "exist" command, not only helped, but made me believe that I can't access my libraries.</p>
<p dir="auto">All works now :D</p>
<p dir="auto">by the way, for the error like<br />
@/usr/bin/ld: note: 'clock_gettime@@GLIBC_2.2' is defined in DSO /lib/librt.so.1 so try adding it to the linker command line@<br />
one must include in the <a href="http://project.pro" target="_blank" rel="noopener noreferrer nofollow ugc">project.pro</a> this line,<br />
@-lrt<br />
@</p>
<p dir="auto">not<br />
@-lrt-2@</p>
<p dir="auto">Thanks,<br />
Saeed</p>
]]></description><link>https://forum.qt.io/post/130704</link><guid isPermaLink="true">https://forum.qt.io/post/130704</guid><dc:creator><![CDATA[saeed144]]></dc:creator><pubDate>Tue, 28 Feb 2012 08:10:09 GMT</pubDate></item><item><title><![CDATA[Reply to Cant access external or system libraries on Tue, 28 Feb 2012 06:34:28 GMT]]></title><description><![CDATA[<p dir="auto">The command "exists" just checks for existence of file. It does not know anything about libraries or standard paths.<br />
Why do you need this command in your .pro file? Your way to add a library to your project just adds some string to LIBS variable. If this library doesn't exists the linker will return an error so you don't have to check for existence of that library.</p>
]]></description><link>https://forum.qt.io/post/130686</link><guid isPermaLink="true">https://forum.qt.io/post/130686</guid><dc:creator><![CDATA[p-himik]]></dc:creator><pubDate>Tue, 28 Feb 2012 06:34:28 GMT</pubDate></item></channel></rss>