Ubuntu: How to cross compile for ARM?
The Question: How do I set up GCC for cross compiling for the ARM processor? The host would
be on x86_64 ( AMD64 - Ubuntu 12.04 ) and the target would be ARM (Raspberry Pi
as well as Pandaboard - will do separate compilations for each)?
Solutions Sample (Please watch the whole video to see all solutions, in order of how many people found them helpful):
== This solution helped 41 people ==
Install gcc-arm-linux-gnueabi and binutils-arm-linux-gnueabi packages, and then
just use arm-linux-gnueabi-gcc instead of gcc for compilation.
You need to be careful on what flavour of linux and binutils you have on your
target system. The newest stuff is hardfloat, in this case you would do:
sudo apt-get install gcc-arm-linux-gnueabihf
This brings in the complete cross-compile environment, including binutils.
With thanks & praise to God! With thanks to the many people who have made this project possible! | Content (except music & images) licensed under cc by-sa 3.0 | Music: [ Ссылка ] | Images: [ Ссылка ] & others | With thanks to user Maratyszcza ([ Ссылка ]), user haziz ([ Ссылка ]), user Eric Carvalho ([ Ссылка ]), user Ciro Santilli ?????? ???? ??? ([ Ссылка ]), and the Stack Exchange Network ([ Ссылка ]). Trademarks are property of their respective owners. Disclaimer: All information is provided "AS IS" without warranty of any kind. You are responsible for your own actions. Please contact me if anything looks amiss at Roel D.OT VandePaar A.T gmail.com.
![](https://i.ytimg.com/vi/fI3tLDk_nXA/maxresdefault.jpg)