<?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[Osx include files installed with brew]]></title><description><![CDATA[<p dir="auto">I want to use <code>libssh</code> in my <code>QT</code> project.</p>
<p dir="auto">I installed it with <code>brew install libssh</code>. Then I did <code>#include &lt;libssh/libssh.h&gt;</code> and trying to compile.<br />
However the file could not be found, so I guess I need to link to my brew path somehow.</p>
<p dir="auto">How can I include <code>/usr/local/Cellar/libssh/0.7.5</code> into my project?</p>
<p dir="auto"><em>edit</em><br />
<a href="http://doc.qt.io/qtcreator/creator-project-qmake-libraries.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://doc.qt.io/qtcreator/creator-project-qmake-libraries.html</a> &lt;- adding library in the creator does not work as nothing happens. Even including the full relative path does not work<br />
<code>#include &lt;../../usr/local/Cellar/libssh/0.7.5/include/libssh/libssh.h&gt;</code></p>
<p dir="auto">for libssh I also have <code> libssh.a</code> and <code> libssh.dylib</code> in  <code>/usr/local/lib/</code></p>
<p dir="auto">thanks</p>
]]></description><link>https://forum.qt.io/topic/79670/osx-include-files-installed-with-brew</link><generator>RSS for Node</generator><lastBuildDate>Tue, 06 Oct 2026 11:25:22 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/79670.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 26 May 2017 15:30:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Osx include files installed with brew on Fri, 26 May 2017 16:28:17 GMT]]></title><description><![CDATA[<p dir="auto">Ok adding following did the trick for me</p>
<pre><code>INCLUDEPATH += /usr/local/include/
LIBS += -L /usr/local/lib/ -lssh 
</code></pre>
]]></description><link>https://forum.qt.io/post/395686</link><guid isPermaLink="true">https://forum.qt.io/post/395686</guid><dc:creator><![CDATA[xhallix]]></dc:creator><pubDate>Fri, 26 May 2017 16:28:17 GMT</pubDate></item><item><title><![CDATA[Reply to Osx include files installed with brew on Fri, 20 Mar 2020 10:51:47 GMT]]></title><description><![CDATA[<p dir="auto">i use this .pro snippet (change gmp w/ssh) or what so ever.</p>
<p dir="auto">GMP=/usr/local/Cellar/gmp/6.2.0 # GMP brew location<br />
INCLUDEPATH += $${GMP}/include<br />
macx: LIBS += -L$${GMP}/lib -lgmp</p>
<p dir="auto">or in a more general form:</p>
<p dir="auto">lib=gmp<br />
lib_loc=$$system(/usr/local/bin/brew --prefix $${lib})<br />
INCLUDEPATH += $${lib_loc}/include<br />
macx: LIBS += -L$${lib_loc}/lib -l$${lib}</p>
]]></description><link>https://forum.qt.io/post/583656</link><guid isPermaLink="true">https://forum.qt.io/post/583656</guid><dc:creator><![CDATA[rforcen]]></dc:creator><pubDate>Fri, 20 Mar 2020 10:51:47 GMT</pubDate></item><item><title><![CDATA[Reply to Osx include files installed with brew on Fri, 26 May 2017 16:28:17 GMT]]></title><description><![CDATA[<p dir="auto">Ok adding following did the trick for me</p>
<pre><code>INCLUDEPATH += /usr/local/include/
LIBS += -L /usr/local/lib/ -lssh 
</code></pre>
]]></description><link>https://forum.qt.io/post/395686</link><guid isPermaLink="true">https://forum.qt.io/post/395686</guid><dc:creator><![CDATA[xhallix]]></dc:creator><pubDate>Fri, 26 May 2017 16:28:17 GMT</pubDate></item></channel></rss>