<?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[Cloud Compile - Can-Utils]]></title><description><![CDATA[<p dir="auto">Hi All,</p>
<p dir="auto">I'm an experienced electrical engineer, but definitely light when it comes to coding. I can do some Python, but haven't delved into C++ in years (or similar, where actual compiling takes place).</p>
<p dir="auto">I want to use Can-Utils on my Omega:</p>
<p dir="auto"><a href="https://github.com/linux-can/can-utils" rel="nofollow">https://github.com/linux-can/can-utils</a></p>
<p dir="auto">But it appears that I'll either need to Cloud Compile or setup a cross-compilation environment.</p>
<p dir="auto">I tried cross-compilation, but I hit a brick wall on my other Linux box with errors that seem like quite a bit to dive into.</p>
<p dir="auto">As an alternative, it seems like Cloud Compile is perfect for me. With that said, I'm starting at zero for exactly how to take what is in the link above for Can-Utils, and package it CORRECTLY for Cloud Compile to do it's job for me.</p>
<p dir="auto">Anyone able to lend a suggestion or two my way. I am willing to read material on this, but am having a hard time determining what to search for.</p>
<p dir="auto">Thanks!</p>
<p dir="auto">--Jim--</p>
]]></description><link>http://community.onion.io/topic/808/cloud-compile-can-utils</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Apr 2026 18:57:45 GMT</lastBuildDate><atom:link href="http://community.onion.io/topic/808.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 26 May 2016 15:38:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Cloud Compile - Can-Utils on Thu, 26 May 2016 15:38:54 GMT]]></title><description><![CDATA[<p dir="auto">Hi All,</p>
<p dir="auto">I'm an experienced electrical engineer, but definitely light when it comes to coding. I can do some Python, but haven't delved into C++ in years (or similar, where actual compiling takes place).</p>
<p dir="auto">I want to use Can-Utils on my Omega:</p>
<p dir="auto"><a href="https://github.com/linux-can/can-utils" rel="nofollow">https://github.com/linux-can/can-utils</a></p>
<p dir="auto">But it appears that I'll either need to Cloud Compile or setup a cross-compilation environment.</p>
<p dir="auto">I tried cross-compilation, but I hit a brick wall on my other Linux box with errors that seem like quite a bit to dive into.</p>
<p dir="auto">As an alternative, it seems like Cloud Compile is perfect for me. With that said, I'm starting at zero for exactly how to take what is in the link above for Can-Utils, and package it CORRECTLY for Cloud Compile to do it's job for me.</p>
<p dir="auto">Anyone able to lend a suggestion or two my way. I am willing to read material on this, but am having a hard time determining what to search for.</p>
<p dir="auto">Thanks!</p>
<p dir="auto">--Jim--</p>
]]></description><link>http://community.onion.io/post/5735</link><guid isPermaLink="true">http://community.onion.io/post/5735</guid><dc:creator><![CDATA[Jim Esposito]]></dc:creator><pubDate>Thu, 26 May 2016 15:38:54 GMT</pubDate></item><item><title><![CDATA[Reply to Cloud Compile - Can-Utils on Tue, 31 May 2016 15:46:23 GMT]]></title><description><![CDATA[<p dir="auto">Made a little more progress over the weekend.</p>
<p dir="auto">I went into the zip file from GitHub and stripped it of any and all non- C and H files, and evaluated the content of any files I was taking away. They all appeared to be 'harmless' to remove, such as the existing makefile which would be ignored anyway, and some readmes with little content, or one auto-config script file that I can always manually execute or add back in.</p>
<p dir="auto">I do kind of get stuck at the same point though. I upload everything to cloud compile, it attempts to compile, and I'm faced with a wall of errors that appear to be:</p>
<ul>
<li>Mostly references to "multiple definition of ___"</li>
<li>"first defined here"</li>
</ul>
<p dir="auto">and then finally:</p>
<ul>
<li>collect2: error: ld returned 1 exit status</li>
<li>make: *** [bin/cloud-compile-target] Error 1</li>
</ul>
<p dir="auto">Can someone bridge the gap for me and let me know how to approach solving my errors? Am I attempting to use Cloud Compile in the correct way?</p>
]]></description><link>http://community.onion.io/post/5764</link><guid isPermaLink="true">http://community.onion.io/post/5764</guid><dc:creator><![CDATA[Jim Esposito]]></dc:creator><pubDate>Tue, 31 May 2016 15:46:23 GMT</pubDate></item><item><title><![CDATA[Reply to Cloud Compile - Can-Utils on Wed, 01 Jun 2016 03:09:58 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/583">@Jim-Esposito</a><br />
I think you're definitely using Cloud Compile the correct way, it just looks like there's some issues with the code you're compiling!</p>
<p dir="auto">Usually the '<em>multiple definitions of ___</em>' error is due to a variable being initialized in a header file. If this header file is included in multiple source files, then it will actually create multiple definitions of the variable. Check out <a href="http://stackoverflow.com/questions/11622258/c-multiple-definition-error" rel="nofollow">this StackOverflow thread</a> for more info.</p>
<p dir="auto">Also, for best practises, make sure you're <a href="http://stackoverflow.com/questions/1653958/why-are-ifndef-and-define-used-in-c-header-files" rel="nofollow">using include guards</a>.</p>
]]></description><link>http://community.onion.io/post/5769</link><guid isPermaLink="true">http://community.onion.io/post/5769</guid><dc:creator><![CDATA[Lazar Demin]]></dc:creator><pubDate>Wed, 01 Jun 2016 03:09:58 GMT</pubDate></item><item><title><![CDATA[Reply to Cloud Compile - Can-Utils on Wed, 01 Jun 2016 15:20:07 GMT]]></title><description><![CDATA[<p dir="auto">Thanks much this has me a little more on track.</p>
<p dir="auto">I looked over the header files, and almost every one appears to already have guards in place. BTW, this is proving a good lesson in the concept for me <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>
<p dir="auto">For good measure, and after reading the articles, I also put #pragma once at the top of all header files just in case.</p>
<p dir="auto">Unfortunately no luck. Looks like my errors are coming from the C files and not the headers. For example:</p>
<p dir="auto">build/can-utils-master-edit/slcan_attach.o: In function <code>main': slcan_attach.c:(.text.startup+0x1): multiple definition of </code>main'<br />
build/can-utils-master-edit/bcmserver.o:bcmserver.c:(.text.startup+0x1): first defined here</p>
<p dir="auto">Is placing guards in C file ALSO advised?</p>
]]></description><link>http://community.onion.io/post/5777</link><guid isPermaLink="true">http://community.onion.io/post/5777</guid><dc:creator><![CDATA[Jim Esposito]]></dc:creator><pubDate>Wed, 01 Jun 2016 15:20:07 GMT</pubDate></item></channel></rss>