<?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[How to install gcc]]></title><description><![CDATA[<p dir="auto">How can I install gcc. I tried the following:</p>
<p dir="auto">root@Omega-0BED:/# opkg install gcc<br />
Installing gcc (4.8.3-1) to root...<br />
Collected errors:</p>
<ul>
<li>verify_pkg_installable: Only have 8884kb available on filesystem /overlay, pkg gcc needs 20983</li>
<li>opkg_install_cmd: Cannot install package gcc.</li>
</ul>
<p dir="auto">I noticed that the partition /tmp has 30Mb and / has 8Mb. I was wondering if there was a way of resizing / to have more space.</p>
<p dir="auto">Thanks</p>
<p dir="auto">Ajay</p>
]]></description><link>http://community.onion.io/topic/9/how-to-install-gcc</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Apr 2026 21:01:11 GMT</lastBuildDate><atom:link href="http://community.onion.io/topic/9.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 03 Nov 2015 05:08:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to install gcc on Tue, 03 Nov 2015 13:53:24 GMT]]></title><description><![CDATA[<p dir="auto">How can I install gcc. I tried the following:</p>
<p dir="auto">root@Omega-0BED:/# opkg install gcc<br />
Installing gcc (4.8.3-1) to root...<br />
Collected errors:</p>
<ul>
<li>verify_pkg_installable: Only have 8884kb available on filesystem /overlay, pkg gcc needs 20983</li>
<li>opkg_install_cmd: Cannot install package gcc.</li>
</ul>
<p dir="auto">I noticed that the partition /tmp has 30Mb and / has 8Mb. I was wondering if there was a way of resizing / to have more space.</p>
<p dir="auto">Thanks</p>
<p dir="auto">Ajay</p>
]]></description><link>http://community.onion.io/post/36</link><guid isPermaLink="true">http://community.onion.io/post/36</guid><dc:creator><![CDATA[Ajay Soni]]></dc:creator><pubDate>Tue, 03 Nov 2015 13:53:24 GMT</pubDate></item><item><title><![CDATA[Reply to How to install gcc on Tue, 03 Nov 2015 05:32:54 GMT]]></title><description><![CDATA[<p dir="auto">Hi Ajay,</p>
<p dir="auto">/tmp is a RAM disk, which means after your do a reboot, it will disappear. You might want to check out the tutorial here that shows you how to mount a USB drive to the Omega: <a href="https://onion.freshdesk.com/support/solutions/articles/6000080075-how-can-i-use-usb-storage-" rel="nofollow">https://onion.freshdesk.com/support/solutions/articles/6000080075-how-can-i-use-usb-storage-</a> Moreover, it's not recommended to install gcc on the Omega. If you want to compile programs for the Omega, it's generally recommended to setup a cross-compile environment on your computer/server to compile for it.</p>
<p dir="auto">For more information about setting up the cross-compile environment, please take a look at this guide: <a href="https://github.com/OnionIoT/OpenWRT-Packages/wiki/Setting-Up-the-Cross-Compile-Environment" rel="nofollow">https://github.com/OnionIoT/OpenWRT-Packages/wiki/Setting-Up-the-Cross-Compile-Environment</a></p>
<p dir="auto">Cheers!</p>
]]></description><link>http://community.onion.io/post/37</link><guid isPermaLink="true">http://community.onion.io/post/37</guid><dc:creator><![CDATA[Boken Lin]]></dc:creator><pubDate>Tue, 03 Nov 2015 05:32:54 GMT</pubDate></item><item><title><![CDATA[Reply to How to install gcc on Tue, 03 Nov 2015 21:00:32 GMT]]></title><description><![CDATA[<p dir="auto">Cool thanks I will give cross compiling a try.</p>
]]></description><link>http://community.onion.io/post/103</link><guid isPermaLink="true">http://community.onion.io/post/103</guid><dc:creator><![CDATA[Ajay Soni]]></dc:creator><pubDate>Tue, 03 Nov 2015 21:00:32 GMT</pubDate></item><item><title><![CDATA[Reply to How to install gcc on Wed, 18 Nov 2015 21:34:49 GMT]]></title><description><![CDATA[<p dir="auto">Boken,</p>
<p dir="auto">I read through the link you provided about the cross-compile environment. It looks like you have to download and compile the entire OpenWRT OS just to get the cross-compile environment.</p>
<p dir="auto">I'm not interested in tinkering with the OS or creating packages at this point - I just want to compile some small executables. Isn't there a cross-compile toolchain somewhere that would just allow me to compile executables?</p>
<p dir="auto">Bryan</p>
]]></description><link>http://community.onion.io/post/783</link><guid isPermaLink="true">http://community.onion.io/post/783</guid><dc:creator><![CDATA[Bryan Hilterbrand]]></dc:creator><pubDate>Wed, 18 Nov 2015 21:34:49 GMT</pubDate></item><item><title><![CDATA[Reply to How to install gcc on Thu, 19 Nov 2015 00:30:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/354">@Bryan-Hilterbrand</a> I would really like this too.  All I need (at present) is to be able to cross compile C/C++ programs on a KUbuntu host so I can copy the executable to the Omega and run it there.</p>
<p dir="auto">I too have been struggling with the full OpenWRT OS build as given in the instructions and would really like just a basic set of C/C+ tool chain for cross compilation without the full OS stuff</p>
]]></description><link>http://community.onion.io/post/788</link><guid isPermaLink="true">http://community.onion.io/post/788</guid><dc:creator><![CDATA[Kit Bishop]]></dc:creator><pubDate>Thu, 19 Nov 2015 00:30:37 GMT</pubDate></item><item><title><![CDATA[Reply to How to install gcc on Sat, 28 Nov 2015 00:51:35 GMT]]></title><description><![CDATA[<p dir="auto">Further to my previous post to this topic:<br />
I believed I had figured it out.</p>
<p dir="auto">I accessed the compilers etc. from<br />
<code>/home/kit/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.11/</code></p>
<p dir="auto">Using this,I appeared to be able to successfully build a small, very simple test program (testc) which I then copied to my Omega but when I try to run it on my Omega, all I get is:</p>
<pre><code>root@Omega:~# ls -l
-rwxrwxrwx    1 root     root          8994 Nov 18 12:26 testc
root@Omega:~# ./testc
-ash: ./testc: not found
root@Omega:~#
</code></pre>
<p dir="auto">So clearly I have done something wrong, but I haven't a clue what:-)<br />
Anyone have any thoughts?</p>
]]></description><link>http://community.onion.io/post/793</link><guid isPermaLink="true">http://community.onion.io/post/793</guid><dc:creator><![CDATA[Kit Bishop]]></dc:creator><pubDate>Sat, 28 Nov 2015 00:51:35 GMT</pubDate></item><item><title><![CDATA[Reply to How to install gcc on Thu, 19 Nov 2015 03:02:54 GMT]]></title><description><![CDATA[<p dir="auto">A further follow up in case it is of any assistance;<br />
I have installed the build chain etc based on instructions in <a href="https://github.com/OnionIoT/OpenWRT-Packages/wiki/Setting-Up-the-Cross-Compile-Environment" rel="nofollow">https://github.com/OnionIoT/OpenWRT-Packages/wiki/Setting-Up-the-Cross-Compile-Environment</a><br />
from this, I can apparently successfully build (most) packages.<br />
My next step at an attempt to build my own C/C++ program will be to effectively clone the <strong>fast-gpio</strong> package (because it seems to only contain C/C++ code) but with the source replaced by my own sources.<br />
Then, if this works, I will see if I can get the resulting build of my code to run on the Omega.<br />
However, this does seem an overly involved, run about process just to compile some simple C/C++ for the Omega and I would like something a bit simpler.</p>
]]></description><link>http://community.onion.io/post/795</link><guid isPermaLink="true">http://community.onion.io/post/795</guid><dc:creator><![CDATA[Kit Bishop]]></dc:creator><pubDate>Thu, 19 Nov 2015 03:02:54 GMT</pubDate></item><item><title><![CDATA[Reply to How to install gcc on Thu, 19 Nov 2015 22:28:41 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/354">@Bryan-Hilterbrand</a>, we have the toolchain in their binary format for some architectures available for download at <a href="https://onion.io/downloads" rel="nofollow">https://onion.io/downloads</a>. However, if your compile environment is running on a machine of different architecture, then it wouldn't be possible for us to provide the toolchain because we would need to have the exact same computer running the same operating system in order to compile the toolchain. Which operating system are you using currently?</p>
]]></description><link>http://community.onion.io/post/805</link><guid isPermaLink="true">http://community.onion.io/post/805</guid><dc:creator><![CDATA[Boken Lin]]></dc:creator><pubDate>Thu, 19 Nov 2015 22:28:41 GMT</pubDate></item><item><title><![CDATA[Reply to How to install gcc on Thu, 19 Nov 2015 22:33:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/19">@Kit-Bishop</a> The reason why it wasn't working before might be as a result of not setting up install directories properly in <code>makefile</code> (which means you can compile the code into binary, but the system wouldn't know to install it into <code>/bin</code> so that you can execute it in the terminal).</p>
<p dir="auto">Also, we have a few ideas to make compiling for the Omega a bit easier, such as setting up a shared compilation server where you can upload files to be compiled and it generates an opkg file for you to download. We welcome any idea on how we can scale this thing so that the server won't blow up if 100 people requested to compile something simultaneously.</p>
<p dir="auto">That's also why we are working so hard on the wrapper functions for various scripting languages! This will allow you to write software and get it to run on the Omega without compiling anything <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>
]]></description><link>http://community.onion.io/post/806</link><guid isPermaLink="true">http://community.onion.io/post/806</guid><dc:creator><![CDATA[Boken Lin]]></dc:creator><pubDate>Thu, 19 Nov 2015 22:33:58 GMT</pubDate></item><item><title><![CDATA[Reply to How to install gcc on Thu, 19 Nov 2015 23:16:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/5">@Boken-Lin</a> First, thanks for both of your above replies.</p>
<ul>
<li>I will certainly look at the reference you give in your first reply above: <em>we have the toolchain in their binary format for some architectures available for download at <a href="https://onion.io/downloads" rel="nofollow">https://onion.io/downloads</a>.</em></li>
<li>Regarding your comment: <em>which means you can compile the code into binary, but the system wouldn't know to install it into /bin so that you can execute it in the terminal</em><br />
I am puzzled here.  Why would I need to put an executable file in /bin just to run it.  I would have thought that any correctly compiled executable file would be capable of running from anywhere.<br />
I have tried putting the executable into all of the following directories just in case I was misunderstanding something: <em>/bin, /sbin, /usr/bin, /usr/sbin</em> and get the same <em><strong>not found</strong></em> message in all cases.<br />
I have also tried copying the fast-gpio file I built using <a href="https://github.com/OnionIoT/OpenWRT-Packages/wiki/Setting-Up-the-Cross-Compile-Environment" rel="nofollow">https://github.com/OnionIoT/OpenWRT-Packages/wiki/Setting-Up-the-Cross-Compile-Environment</a> and that gives the same <em><strong>not found</strong></em> message no matter what I do.<br />
I can successfully run an executable shell script, so I guess I am doing something wrong somewhere with my build processes.<br />
I will keep digging and see what I can find:-(</li>
</ul>
]]></description><link>http://community.onion.io/post/810</link><guid isPermaLink="true">http://community.onion.io/post/810</guid><dc:creator><![CDATA[Kit Bishop]]></dc:creator><pubDate>Thu, 19 Nov 2015 23:16:54 GMT</pubDate></item><item><title><![CDATA[Reply to How to install gcc on Thu, 19 Nov 2015 23:46:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/5">@Boken-Lin</a> said:</p>
<blockquote>
<p dir="auto">Which operating system are you using currently?</p>
</blockquote>
<p dir="auto">I'm using Ubuntu (Kubuntu) 15.10 64-bit (AMD64). My OS is running under VMWare, so there's a fair chance I could match whatever environment you told me to. I will note that compiling OpenWRT using your instructions (Setting Up the Cross Compile Environment) took well over an hour in VMWare!</p>
<p dir="auto">I'm puzzled like Kit Bishop why OpenWRT won't just run an executable, but I'm used to cross-compiling to uClinux so there must be some differences. I'm going to start playing around with adding a small package to see if I can get something to run on the Omega.</p>
]]></description><link>http://community.onion.io/post/811</link><guid isPermaLink="true">http://community.onion.io/post/811</guid><dc:creator><![CDATA[Bryan Hilterbrand]]></dc:creator><pubDate>Thu, 19 Nov 2015 23:46:01 GMT</pubDate></item><item><title><![CDATA[Reply to How to install gcc on Fri, 20 Nov 2015 00:30:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/19">@Kit-Bishop</a> Sorry, I misread your post. If you are running the binary from the current directory, then it shouldn't matter where you've installed the binary. Let's try to figure out what's causing the issue. Is the package installed as an opkg package or directly built into a firmware and re-flashed onto the Omega? Did you build the package again musl c library or uClibc? The current Omega firmware is built with uClibc, so there might be a mismatch of c library it uses.</p>
]]></description><link>http://community.onion.io/post/813</link><guid isPermaLink="true">http://community.onion.io/post/813</guid><dc:creator><![CDATA[Boken Lin]]></dc:creator><pubDate>Fri, 20 Nov 2015 00:30:15 GMT</pubDate></item><item><title><![CDATA[Reply to How to install gcc on Fri, 20 Nov 2015 00:45:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/354">@Bryan-Hilterbrand</a> We use Ubuntu 14.04 x64 on our compile environments. I'm going to zip up a compiled toolchain for you to download and test out.</p>
]]></description><link>http://community.onion.io/post/815</link><guid isPermaLink="true">http://community.onion.io/post/815</guid><dc:creator><![CDATA[Boken Lin]]></dc:creator><pubDate>Fri, 20 Nov 2015 00:45:13 GMT</pubDate></item><item><title><![CDATA[Reply to How to install gcc on Fri, 20 Nov 2015 00:54:53 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/354">@Bryan-Hilterbrand</a> , Sounds you are running something very similar to me.  I am using KUbuntu-10.04 running in a VirtualBox VM on an Intel iCore 5 system.<br />
So far,I have had no luck using  <a href="https://github.com/OnionIoT/OpenWRT-Packages/wiki/Setting-Up-the-Cross-Compile-Environment" rel="nofollow">https://github.com/OnionIoT/OpenWRT-Packages/wiki/Setting-Up-the-Cross-Compile-Environment</a><br />
Will shortly see how I go using <a href="https://downloads.onion.io/openwrt/sdk_ar71xx.tar.bz2" rel="nofollow">AR71xx SDK</a> from <a href="https://onion.io/downloads" rel="nofollow">https://onion.io/downloads</a>.<br />
Will report as and when I get anything done</p>
]]></description><link>http://community.onion.io/post/816</link><guid isPermaLink="true">http://community.onion.io/post/816</guid><dc:creator><![CDATA[Kit Bishop]]></dc:creator><pubDate>Fri, 20 Nov 2015 00:54:53 GMT</pubDate></item><item><title><![CDATA[Reply to How to install gcc on Fri, 20 Nov 2015 00:58:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/5">@Boken-Lin</a> Thanks for the additional feedback.  I will check out your comments.  Also, would be most interested to see the toolchain for Ubuntu 14.04 that you reference in your reply to <a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/354">@Bryan-Hilterbrand</a></p>
]]></description><link>http://community.onion.io/post/817</link><guid isPermaLink="true">http://community.onion.io/post/817</guid><dc:creator><![CDATA[Kit Bishop]]></dc:creator><pubDate>Fri, 20 Nov 2015 00:58:13 GMT</pubDate></item><item><title><![CDATA[Reply to How to install gcc on Fri, 20 Nov 2015 05:18:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/19">@Kit-Bishop</a>, <a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/354">@Bryan-Hilterbrand</a>: Files are uploading now.</p>
<p dir="auto">SDK: <a href="https://onion-cdn.s3.amazonaws.com/community/openwrt/OpenWrt-SDK-ar71xx-generic_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64.tar" rel="nofollow">https://onion-cdn.s3.amazonaws.com/community/openwrt/OpenWrt-SDK-ar71xx-generic_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64.tar</a><br />
Toolchain: <a href="https://onion-cdn.s3.amazonaws.com/community/openwrt/OpenWrt-Toolchain-ar71xx-generic_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64.tar" rel="nofollow">https://onion-cdn.s3.amazonaws.com/community/openwrt/OpenWrt-Toolchain-ar71xx-generic_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64.tar</a></p>
<p dir="auto">The links should become active in a little bit.</p>
<p dir="auto">EDIT: I posted the wrong links...</p>
<p dir="auto">SDK: <a href="https://s3-us-west-2.amazonaws.com/onion-cdn/community/openwrt/OpenWrt-SDK-ar71xx-generic_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64.tar.bz2" rel="nofollow">https://s3-us-west-2.amazonaws.com/onion-cdn/community/openwrt/OpenWrt-SDK-ar71xx-generic_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64.tar.bz2</a><br />
Toolchain: <a href="https://s3-us-west-2.amazonaws.com/onion-cdn/community/openwrt/OpenWrt-Toolchain-ar71xx-generic_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64.tar.bz2" rel="nofollow">https://s3-us-west-2.amazonaws.com/onion-cdn/community/openwrt/OpenWrt-Toolchain-ar71xx-generic_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64.tar.bz2</a></p>
]]></description><link>http://community.onion.io/post/819</link><guid isPermaLink="true">http://community.onion.io/post/819</guid><dc:creator><![CDATA[Boken Lin]]></dc:creator><pubDate>Fri, 20 Nov 2015 05:18:39 GMT</pubDate></item><item><title><![CDATA[Reply to How to install gcc on Fri, 20 Nov 2015 01:01:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/5">@Boken-Lin</a> Cool <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="🙂" /> That was quick <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>
]]></description><link>http://community.onion.io/post/820</link><guid isPermaLink="true">http://community.onion.io/post/820</guid><dc:creator><![CDATA[Kit Bishop]]></dc:creator><pubDate>Fri, 20 Nov 2015 01:01:00 GMT</pubDate></item><item><title><![CDATA[Reply to How to install gcc on Fri, 20 Nov 2015 03:30:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/5">@Boken-Lin</a> Am I being impatient and the links you reference are not up yet, or is there a problem with the links?</p>
<ul>
<li>For: SDK: <a href="https://onion-cdn.s3.amazonaws.com/community/openwrt/OpenWrt-SDK-ar71xx-generic_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64.tar" rel="nofollow">https://onion-cdn.s3.amazonaws.com/community/openwrt/OpenWrt-SDK-ar71xx-generic_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64.tar</a> I get:<br />
<em><strong>This XML file does not appear to have any style information associated with it. The document tree is shown below.<br />
&lt;Error&gt;&lt;Code&gt;AccessDenied&lt;/Code&gt;&lt;Message&gt;Access Denied&lt;/Message&gt;&lt;RequestId&gt;37A96A62308BF9F6&lt;/RequestId&gt;&lt;HostId&gt;2mMzuUG6KxeUd+k2PJDgjsV83q5k8QV8UXwosCL+CKvyGRKUbR0iI69xGU5PSQ+Pz8nUyKp1I2M=&lt;/HostId&gt;&lt;/Error&gt;</strong></em></li>
<li>For: Toolchain: <a href="https://onion-cdn.s3.amazonaws.com/community/openwrt/OpenWrt-Toolchain-ar71xx-generic_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64.tar" rel="nofollow">https://onion-cdn.s3.amazonaws.com/community/openwrt/OpenWrt-Toolchain-ar71xx-generic_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64.tar</a> I get:<br />
<em><strong>This XML file does not appear to have any style information associated with it. The document tree is shown below.<br />
&lt;Error&gt;&lt;Code&gt;AccessDenied&lt;/Code&gt;&lt;Message&gt;Access Denied&lt;/Message&gt;&lt;RequestId&gt;2D9FE457B4300D92&lt;/RequestId&gt;&lt;HostId&gt;myrvYfcMVTDgO/AVEEKQZ6YlkkwzbmhP1G8M68YMUmv6zQi5wA18ittx5HL0neMsIVZyMMtIf98=&lt;/HostId&gt;&lt;/Error&gt;</strong></em></li>
</ul>
]]></description><link>http://community.onion.io/post/831</link><guid isPermaLink="true">http://community.onion.io/post/831</guid><dc:creator><![CDATA[Kit Bishop]]></dc:creator><pubDate>Fri, 20 Nov 2015 03:30:17 GMT</pubDate></item><item><title><![CDATA[Reply to How to install gcc on Fri, 20 Nov 2015 03:39:57 GMT]]></title><description><![CDATA[<p dir="auto">The share property for those file doesn't seem to be open to everyone. That is why you received:<br />
Access Denied.</p>
]]></description><link>http://community.onion.io/post/832</link><guid isPermaLink="true">http://community.onion.io/post/832</guid><dc:creator><![CDATA[Eric]]></dc:creator><pubDate>Fri, 20 Nov 2015 03:39:57 GMT</pubDate></item><item><title><![CDATA[Reply to How to install gcc on Fri, 20 Nov 2015 04:37:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/19">@Kit-Bishop</a> Strange... Let me take a look...</p>
]]></description><link>http://community.onion.io/post/835</link><guid isPermaLink="true">http://community.onion.io/post/835</guid><dc:creator><![CDATA[Boken Lin]]></dc:creator><pubDate>Fri, 20 Nov 2015 04:37:30 GMT</pubDate></item><item><title><![CDATA[Reply to How to install gcc on Fri, 20 Nov 2015 05:19:54 GMT]]></title><description><![CDATA[<p dir="auto">@Eric-P. <a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/19">@Kit-Bishop</a>: I posted the wrong links... I've edited the post with the correct links now. My bad!</p>
]]></description><link>http://community.onion.io/post/841</link><guid isPermaLink="true">http://community.onion.io/post/841</guid><dc:creator><![CDATA[Boken Lin]]></dc:creator><pubDate>Fri, 20 Nov 2015 05:19:54 GMT</pubDate></item><item><title><![CDATA[Reply to How to install gcc on Fri, 20 Nov 2015 05:33:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/5">@Boken-Lin</a> No problem - can access them now <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>
]]></description><link>http://community.onion.io/post/842</link><guid isPermaLink="true">http://community.onion.io/post/842</guid><dc:creator><![CDATA[Kit Bishop]]></dc:creator><pubDate>Fri, 20 Nov 2015 05:33:35 GMT</pubDate></item><item><title><![CDATA[Reply to How to install gcc on Mon, 23 Nov 2015 22:44:54 GMT]]></title><description><![CDATA[<p dir="auto">After battling with this for quite some time, I finally have success with what I've been wanting to do <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="🙂" /><br />
Ended up being quite straightforward - I think I got bogged down in all the intricacies of building OpenWRT packages when all I wanted to do was build some basic C/C++ programs that would run on the Omega.</p>
<p dir="auto">For the record, in case it is of help to others, this is what I ended up doing based largely on the info in:<a href="http://techfindings.one/archives/1487" rel="nofollow">http://techfindings.one/archives/1487</a><br />
For the record my host system for the compilation is a pretty standard KUbuntu-14.04 system running in a VM under VirtualBox</p>
<ul>
<li>Download the tool chain from  <a href="https://s3-us-west-2.amazonaws.com/onion-cdn/community/openwrt/OpenWrt-Toolchain-ar71xx-generic_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64.tar.bz2" rel="nofollow">https://s3-us-west-2.amazonaws.com/onion-cdn/community/openwrt/OpenWrt-Toolchain-ar71xx-generic_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64.tar.bz2</a></li>
<li>Unpack it to some suitable directory (referred to below as <strong>&lt;tc_dir&gt;</strong>)</li>
<li>Set up environment variables as follows (I put this in my <strong>~/.profile</strong> file so it was always there):</li>
<li>
<ul>
<li>PATH=&lt;tc_dir&gt;/OpenWrt-Toolchain-ar71xx-generic_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin:$PATH</li>
</ul>
</li>
<li>
<ul>
<li>STAGING_DIR=&lt;tc_dir&gt;/OpenWrt-Toolchain-ar71xx-generic_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2</li>
</ul>
</li>
<li>
<ul>
<li>export STAGING_DIR</li>
</ul>
</li>
<li>Create your c program - e.g. <strong>test-prog.c</strong></li>
<li>Compile the program using (e.g.): <strong>mips-openwrt-linux-uclibc-gcc test-prog.c -o test-prog</strong></li>
<li>Transfer the output file (<strong>test-prog</strong>) to your Omega using you favourite tools.</li>
<li>On the Omega in the directory you placed the file, run it by: <strong>./test-prog</strong> - and there you are</li>
</ul>
<p dir="auto">I'm sure there will be other issues (e.g. using a makefile with multiple sources; access to libraries; building dynamic link libraries which I will want too), but these are all pretty standard development issues now that I have the code cross-compilation working.</p>
]]></description><link>http://community.onion.io/post/943</link><guid isPermaLink="true">http://community.onion.io/post/943</guid><dc:creator><![CDATA[Kit Bishop]]></dc:creator><pubDate>Mon, 23 Nov 2015 22:44:54 GMT</pubDate></item><item><title><![CDATA[Reply to How to install gcc on Tue, 01 Dec 2015 05:09:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/5">@Boken-Lin</a> Setup a Docker with the tool chain and cross compilers pre-configured. This way people can just docker run it from Ubuntu 14.04.</p>
<p dir="auto">A VM for virtual box would be more general, similar to what the C.H.I.P. people are doing.</p>
]]></description><link>http://community.onion.io/post/1316</link><guid isPermaLink="true">http://community.onion.io/post/1316</guid><dc:creator><![CDATA[John Richardson]]></dc:creator><pubDate>Tue, 01 Dec 2015 05:09:46 GMT</pubDate></item><item><title><![CDATA[Reply to How to install gcc on Tue, 01 Dec 2015 05:11:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/557">@John-Richardson</a> In addition get one of the Arduino style libraries for Linux that the Intel Galileo people did to ease porting of Arduino Sketches.</p>
<p dir="auto">Eventually the tool chain could plug into the Arduino IDE.</p>
]]></description><link>http://community.onion.io/post/1317</link><guid isPermaLink="true">http://community.onion.io/post/1317</guid><dc:creator><![CDATA[John Richardson]]></dc:creator><pubDate>Tue, 01 Dec 2015 05:11:49 GMT</pubDate></item><item><title><![CDATA[Reply to How to install gcc on Tue, 01 Dec 2015 16:22:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/557">@John-Richardson</a> Great ideas! We already have the docker image on our todo list. Just added the virtualbox VM to our todo as well.</p>
<p dir="auto">Can you explain what you mean by Arduino style library for Linux?</p>
]]></description><link>http://community.onion.io/post/1338</link><guid isPermaLink="true">http://community.onion.io/post/1338</guid><dc:creator><![CDATA[Boken Lin]]></dc:creator><pubDate>Tue, 01 Dec 2015 16:22:35 GMT</pubDate></item></channel></rss>