How do I get an ARM C++ compiler for Eclipse on Windows (Derek Malloy Video)?

710 views
Skip to first unread message

BeagleNoob

unread,
Dec 24, 2013, 8:43:47 PM12/24/13
to beagl...@googlegroups.com
I was following along with Derek Malloy's Beaglebone video here:

For the first fifteen minutes, he goes through how to setup Eclipse and some plugins to connect to Beaglebone. Around 16:40, he installs a C++ compiler for ARM, on Ubuntu. I don't know what to do there because I don't know of any immediate Windows way I could install that ARM compiler (gcc-4.4-arm-linux-gnueabi). He then goes on in the video to change the settings to use this ARM compiler, so I can't really follow him anymore.

Does anyone have an idea of how I could continue following this video, despite running this on a PC? Or do I have no choice, but to work on Linux (I don't have Ubuntu installed yet on this laptop I am using now and would rather not go through the hassle, if I can avoid it).

Thanks in advance for any help and Happy Holidays! :-)

Tux Leonard

unread,
Dec 25, 2013, 11:35:57 AM12/25/13
to beagl...@googlegroups.com

Perhaps you could try to install Cygwin with an ARM cross compiler.

Or try  ARM DS
http://ds.arm.com/ds-5/build/?gclid=CKzwzrLmy7sCFchY3godTUwACw

Or search the TI website for a cross compiler

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

BeagleNoob

unread,
Dec 25, 2013, 7:21:19 PM12/25/13
to beagl...@googlegroups.com
Hi Tux Leonard,

I think I want to try the Cygwin way because I have at least a little experience using it. After some Googling, I found this document with all the steps needed: http://www.add.ece.ufl.edu/4924/docs/arm/ARM%20Code%20Development%20in%20Windows.pdf

For anyone who is curious, I followed through with the steps in this guide and got everything up and running and was able to continue with Malloy's video. Some things to note:

Whenever Malloy uses arm-linux-gnueabi, just use arm-none-linux-gnueabi instead (see below screenshot).

Likewise, when he goes to change the include paths, when he uses /usr/arm-linux-gnueabi/ instead use the path of Sourcery (shown below). 

In this case instead of using /usr/arm-linux-gnueabi/include, I used C:\Program Files (x86)\CodeSourcery\Sourcery G++ Lite\lib\gcc\arm-none-linux-gnueabi\4.5.2\include.


Everything else is more or less the same and I was able to get the C++ code working to make my user LED blink ten times! :-D

The part where I'm now stuck on is when he tries to remotely debug the BBB from his local machine using a tool from Ubuntu called gdb-multiarch (around 35:20). I am now going to see if there is a similar tool for this on Windows (but if you guys know about it or can find it faster, please post here!).

Tux Leonard

unread,
Dec 26, 2013, 5:19:39 AM12/26/13
to beagl...@googlegroups.com

Does a compiled program run on the target?
With some compilers I had problems with dynamic libraries on the BBB. I suppose this was related to hard/soft floating point.

--

BeagleNoob

unread,
Dec 26, 2013, 10:29:09 AM12/26/13
to beagl...@googlegroups.com
Hi Tux Leonard,

Yes, the compiled program ran on the target device (my BBB).

William Hermans

unread,
Dec 26, 2013, 2:58:33 PM12/26/13
to beagl...@googlegroups.com
Guys . . . There are Windows binaries for the LInaro gcc toolchain, and yes they work. I wrote up a quick rundown of a simple setup here: http://forum.beaglefu.com/topic/82-codeblocks-linaro-for-windows-quick-rundown/?hl=linaro (like 6-7 months ago ).

The thing is, you really need to understand how gcc toolchains work, and then how your IDE of choice works. Once you learn this, what you're experiencing here is no longer a problem, and in fact is information that can be used in the future for diffferent toolchain situations.


On Thu, Dec 26, 2013 at 8:29 AM, BeagleNoob <murshed...@gmail.com> wrote:
Hi Tux Leonard,

Yes, the compiled program ran on the target device (my BBB).

--

BeagleNoob

unread,
Dec 26, 2013, 8:34:13 PM12/26/13
to beagl...@googlegroups.com


On Thursday, December 26, 2013 2:58:33 PM UTC-5, William Hermans wrote:
The thing is, you really need to understand how gcc toolchains work, and then how your IDE of choice works. 

Hello William,

Okay here comes the stupid question (sorry!): How do GCC toolchains work? 

William Hermans

unread,
Dec 26, 2013, 8:44:43 PM12/26/13
to beagl...@googlegroups.com

William Hermans

unread,
Dec 26, 2013, 8:45:43 PM12/26/13
to beagl...@googlegroups.com
most of the questions you guys have can be answered by using google, and reading everything you come across . . .

Bogdan Teodorescu

unread,
Dec 27, 2013, 2:18:31 AM12/27/13
to beagl...@googlegroups.com

Works for me

Best tutorial

http://jkuhlm.tipido.net/hellobone/

Reply all
Reply to author
Forward
0 new messages