[Noisebridge-discuss] [dorkbotsf-blabber] Beagle Bone Black running Debian - OSX toolchain?

Anders Nelson anders.k.nelson at gmail.com
Tue Sep 16 20:52:52 UTC 2014


Firstly, thanks so much for your responses - I seemed to have solved the
problem by just using the toolchain below.

UPDATE:

I found a toolchain that works well, though it's limited to the armv6 ISA
here:

http://will-tm.com/cross-compiling-mac-os-x-mavericks/

Using armv6, this compiler also works for Raspberry Pi which was smart of
Will IMHO. I sent a request for an OSX build to Linaro - they host a ton of
different arm toolchains, none of which work on OSX! Wah waah, first-world
problems:

http://releases.linaro.org/latest/components/toolchain/binaries/

So I'm up and running now but I imagine the armv7 ISA contains a lot of
good stuff...

I'm putting the stuff I referenced to get up and running in a blog post
here:

http://andersknelson.com/blog/?p=155

Hope this helps someone!

=]

--
Anders Nelson

+1 (517) 775-6129

www.erogear.com

On Mon, Sep 15, 2014 at 1:40 PM, Fiid Williams <fiid at fiid.net> wrote:

> No specific experience with your setup, but from hacking other unixes....
>
> Looks like you dynamically linked against a library that isn't on the BBB.
>
> Options to think about....
> 1) Statically link - should get you a binary that includes all it's
> dependencies, but it will be larger and won't share the library memory with
> other apps.
>
> 2) AFAIK, the version number on the file (libraryx.so.5 << the number 5)
> isn't necessarily the same as the actual library version (3.12.7 or
> whatever); it's determined by the distribution and compatability levels.
>  You might have the correct library, but not have the symlink in place to
> the numbered version you need.  If it's prototype-grade code, you might be
> able to win by symlinking libraryx.so to libraryx.so.5 (change for your
> specific needs).  Of course, if the version you're linking against isn't
> the same, this might not go well, but it might be worth looking at and/or
> investigating further.
>
> Your mileage may vary :)
>
> Cheers,
>
> Fiid.
>
>
>
>
> On Mon, Sep 15, 2014 at 1:22 PM, Torrie Fischer <tdfischer at hackerbots.net>
> wrote:
>
>> On Monday, September 15, 2014 12:43:41 PM Anders Nelson wrote:
>> > Good morfternoon!
>> >
>> > So I finally got my BBB and I'm turbo-jazzed to start working with it. I
>> > want to use Eclipse and an ARM toolchain on OSX, and so far I have it
>> > building swell with my *arm-none-linux-gnueabi* toolchain. "make -j7
>> all"
>> > goes by like a bolt of lightning.
>> >
>> > However, my executables won't run on the BBB, stating thus:
>> >
>> > "error while loading shared libraries: libstdc++.so.6: cannot open
>> shared
>> > object file: No such file or directory"
>>
>> You've got libstdc++6 installed on the BBB, right?
>>
>> >
>> > Yes, I've used apt-get and everything therein looks Kosher. From what
>> I've
>> > read, I need a *arm-linux-gnueabihf *toolchain built to run on OSX
>> because
>> > the version of Debian running on the BBB makes use of the hardware FPU
>> > (awesome). I found one here:
>> >
>> > http://will-tm.com/cross-compiling-mac-os-x-mavericks/
>> >
>> > but of course, it's not perfect - it is using the "armv6j" instruction
>> set
>> > instead of what I believe should be "armv7" or "armv8" or some such. I
>> see
>> > the name Linaro everywhere but they only have toolchains built for Linux
>> > and Windows.
>> >
>> > Yes, I could install Virtualbox and do everything in a Linux VM but that
>> > seems like terrific overkill (disk space, computing efficiency,
>> smoothness,
>> > etc.).
>> >
>> > *Has anyone built an ARM toolchain for OSX before? If so, can you help
>> me?*
>> > I promise to post it to my blog or somewhere useful so others can use
>> it,
>> > too!
>> >
>> > =]
>> >
>> > --
>> > Anders Nelson
>> >
>> > +1 (517) 775-6129
>> >
>> > www.erogear.com
>>
>> ----------
>>
>> dorkbot: people doing strange things with electricity
>> http://dorkbot.org/dorkbotsf/
>>
>> SUBSCRIPTION AND UNSUBSCRIBE OPTIONS HERE:
>> http://dorkbot.org/mailman/listinfo/dorkbotsf-blabber
>>
>> ----------
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.noisebridge.net/pipermail/noisebridge-discuss/attachments/20140916/031c518f/attachment.html>


More information about the Noisebridge-discuss mailing list