Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Raspberry Pi Raspbian Cross Compiler Toolchains on 64-bit Linux

DZone's Guide to

Raspberry Pi Raspbian Cross Compiler Toolchains on 64-bit Linux

Here's a quick reference for those who need to setup Raspberry Pi tools on 64-bit Linux.

· IoT Zone ·
Free Resource

A while back I setup Eclipse C++ on Ubuntu to cross compile some ARM Assembly (see here). Last time I set up the Raspberry Pi tools on Ubuntu I was using a 32 bit install. More recently, I installed a 64 bit version of Kubuntu, and so was retracing my steps to get set up again.

It might be obvious if you’re more familiar with gcc and cross compiler toolchains, but in the Raspberry Pi tools project there’s 32 bit and 64 bit versions of the tools. Trying to use the 32 bit versions on 64 bit Linux does not work. Rather than some useful error though, trying to execute any of the 32 bit versions from a shell gives a rather un-useful "No such file or directory" error.

Referring back to my original Eclipse C++ setup instructions, if you’re running Eclipse on 32 bit Linux then you want to point to the tools here:

~/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin

Otherwise, point to the 64 bit version here:

~/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin

Topics:
raspberry pi ,toolchain

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}