<?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[Cross Compiling With Libcurl]]></title><description><![CDATA[<h2>Background</h2>
<p dir="auto">I am trying to use libcurl in a program.</p>
<p dir="auto">I am cross compiling this program for the Omega 1 on my laptop using <a href="http://onioniot.github.io/wiki/Tutorials/Cross-Compile" rel="nofollow">the official guide</a>.</p>
<p dir="auto">I am having issues figuring out how to obtain the header files and the library for libcurl on the Omega 1 for cross compilation.</p>
<h2>Issues</h2>
<p dir="auto">If I compile the program for my host OS then my native toolchain will find the necessary libcurl files. I am not sure if these same files can be used to cross compile a program for the Omega 1.</p>
<p dir="auto">I can use <code>opkg</code> to install <code>libcurl</code> on the Omega. However I believe I need the files on my laptop instead.</p>
<p dir="auto">If I try to install the <code>libcurl</code> package on my laptop inside the OpenWRT git repository by running:</p>
<pre><code>scripts/feeds update -a
scripts/feeds install libcurl
</code></pre>
<p dir="auto">It does not seem to work for 2 reasons.</p>
<p dir="auto">First because that the install command shows this output:</p>
<pre><code>WARNING: Makefile 'package/network/utils/curl/Makefile' has a dependency on 'libgnutls', which does not exist
WARNING: Makefile 'package/network/utils/curl/Makefile' has a dependency on 'libopenldap', which does not exist
WARNING: Makefile 'package/network/utils/curl/Makefile' has a dependency on 'libidn2', which does not exist
WARNING: Makefile 'package/network/utils/curl/Makefile' has a dependency on 'libssh2', which does not exist
WARNING: Makefile 'package/boot/kexec-tools/Makefile' has a dependency on 'liblzma', which does not exist
WARNING: Makefile 'package/network/services/lldpd/Makefile' has a dependency on 'libnetsnmp', which does not exist
WARNING: Makefile 'package/network/utils/nftables/Makefile' has a dependency on 'jansson', which does not exist
</code></pre>
<p dir="auto">And second because the cross compile toolchain still can't find the <code>curl/curl.h</code>.</p>
<h2>Question</h2>
<p dir="auto">How would I go about obtaining the files needed to cross compile a binary for the Omega 1 with libcurl?</p>
]]></description><link>http://community.onion.io/topic/3367/cross-compiling-with-libcurl</link><generator>RSS for Node</generator><lastBuildDate>Sun, 08 Mar 2026 04:37:42 GMT</lastBuildDate><atom:link href="http://community.onion.io/topic/3367.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 18 Dec 2018 07:42:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Cross Compiling With Libcurl on Tue, 18 Dec 2018 07:49:51 GMT]]></title><description><![CDATA[<h2>Background</h2>
<p dir="auto">I am trying to use libcurl in a program.</p>
<p dir="auto">I am cross compiling this program for the Omega 1 on my laptop using <a href="http://onioniot.github.io/wiki/Tutorials/Cross-Compile" rel="nofollow">the official guide</a>.</p>
<p dir="auto">I am having issues figuring out how to obtain the header files and the library for libcurl on the Omega 1 for cross compilation.</p>
<h2>Issues</h2>
<p dir="auto">If I compile the program for my host OS then my native toolchain will find the necessary libcurl files. I am not sure if these same files can be used to cross compile a program for the Omega 1.</p>
<p dir="auto">I can use <code>opkg</code> to install <code>libcurl</code> on the Omega. However I believe I need the files on my laptop instead.</p>
<p dir="auto">If I try to install the <code>libcurl</code> package on my laptop inside the OpenWRT git repository by running:</p>
<pre><code>scripts/feeds update -a
scripts/feeds install libcurl
</code></pre>
<p dir="auto">It does not seem to work for 2 reasons.</p>
<p dir="auto">First because that the install command shows this output:</p>
<pre><code>WARNING: Makefile 'package/network/utils/curl/Makefile' has a dependency on 'libgnutls', which does not exist
WARNING: Makefile 'package/network/utils/curl/Makefile' has a dependency on 'libopenldap', which does not exist
WARNING: Makefile 'package/network/utils/curl/Makefile' has a dependency on 'libidn2', which does not exist
WARNING: Makefile 'package/network/utils/curl/Makefile' has a dependency on 'libssh2', which does not exist
WARNING: Makefile 'package/boot/kexec-tools/Makefile' has a dependency on 'liblzma', which does not exist
WARNING: Makefile 'package/network/services/lldpd/Makefile' has a dependency on 'libnetsnmp', which does not exist
WARNING: Makefile 'package/network/utils/nftables/Makefile' has a dependency on 'jansson', which does not exist
</code></pre>
<p dir="auto">And second because the cross compile toolchain still can't find the <code>curl/curl.h</code>.</p>
<h2>Question</h2>
<p dir="auto">How would I go about obtaining the files needed to cross compile a binary for the Omega 1 with libcurl?</p>
]]></description><link>http://community.onion.io/post/18482</link><guid isPermaLink="true">http://community.onion.io/post/18482</guid><dc:creator><![CDATA[Noah Huppert]]></dc:creator><pubDate>Tue, 18 Dec 2018 07:49:51 GMT</pubDate></item><item><title><![CDATA[Reply to Cross Compiling With Libcurl on Sat, 07 Sep 2019 23:57:38 GMT]]></title><description><![CDATA[<p dir="auto">For the sake of people who find this old-ish thread from internet search, the answer is that you’ll need to install libcurl in your buildroot toolchain, with headers and libraries.</p>
<p dir="auto">On the omega itself, you can just copy the .so library files from your buildroot into /usr/lib (or wherever you want to keep them)</p>
<p dir="auto">I’ve done this with several libs.</p>
]]></description><link>http://community.onion.io/post/20138</link><guid isPermaLink="true">http://community.onion.io/post/20138</guid><dc:creator><![CDATA[JP Norair]]></dc:creator><pubDate>Sat, 07 Sep 2019 23:57:38 GMT</pubDate></item><item><title><![CDATA[Reply to Cross Compiling With Libcurl on Mon, 09 Sep 2019 10:51:50 GMT]]></title><description><![CDATA[<p dir="auto">How do you install a library or package into the buildroot of the toolchain?</p>
]]></description><link>http://community.onion.io/post/20154</link><guid isPermaLink="true">http://community.onion.io/post/20154</guid><dc:creator><![CDATA[Jonathan Rizzo]]></dc:creator><pubDate>Mon, 09 Sep 2019 10:51:50 GMT</pubDate></item><item><title><![CDATA[Reply to Cross Compiling With Libcurl on Mon, 09 Sep 2019 22:22:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/1090">@Jonathan-Rizzo</a></p>
<p dir="auto">I figured this out myself, so hopefully it's all correct.  But it works <img src="http://community.onion.io/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=ic093v0mjao" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" title=":)" alt="🙂" /></p>
<ol>
<li>Make sure your shell is in the source directory</li>
<li>Run: "./scripts/feeds install &lt;&lt;your lib&gt;&gt;"</li>
<li>Often this works.  If it doesn't we will install manually.</li>
<li>mkdir -p package/libs/&lt;&lt;your lib&gt;&gt;</li>
<li>cd package/libs/&lt;&lt;your lib&gt;&gt;</li>
<li>wget <a href="https://raw.githubusercontent.com/openwrt/packages/master/libs/" rel="nofollow">https://raw.githubusercontent.com/openwrt/packages/master/libs/</a>&lt;&lt;your lib&gt;&gt;/Makefile</li>
<li>cd ../../../</li>
<li>make package/libs/&lt;&lt;your-lib&gt;&gt;/compile</li>
<li>make package/libs/&lt;&lt;your-lib&gt;&gt;/install</li>
<li>make package/libs/&lt;&lt;your-lib&gt;&gt;/clean</li>
</ol>
<p dir="auto">More information here:<br />
<a href="https://openwrt.org/docs/guide-developer/build-system/start" rel="nofollow">https://openwrt.org/docs/guide-developer/build-system/start</a></p>
<p dir="auto">Secondly, this may be a cleaner way to do it, but I haven't tried:<br />
<a href="https://navneetstudynotes.blogspot.com/2015/04/building-new-package-with-openwrt.html" rel="nofollow">https://navneetstudynotes.blogspot.com/2015/04/building-new-package-with-openwrt.html</a></p>
]]></description><link>http://community.onion.io/post/20162</link><guid isPermaLink="true">http://community.onion.io/post/20162</guid><dc:creator><![CDATA[JP Norair]]></dc:creator><pubDate>Mon, 09 Sep 2019 22:22:30 GMT</pubDate></item></channel></rss>