ARM-LINUX-GNUEABIHF-GCC is an arm cross-compilation tool launched by Linaro based on GCC. Code that can be used to cross-compile all aspects of an arm system, including bare-metal programs, u-boot, Linux kernel, filesystem, and app applications.
ARM-LINUX-GNEABIHF-GCC, similar to Codesourcery 's ARM-NONE-LINUX-GNUEABI-GCC, can be used to compile all the link codes based on the arm platform, Codesourcery The cross-compilation tool was released earlier, starting from 2005 until now.
Linaro is a non-profit company that is jointly developed by ARM, Freescale, IBM, Samsung, St-ericsson, and ti to develop common software for a single chip (SoC) platform for different semiconductor systems. Linaro was established in 2010 and was issued in November
The first edition of Arm cortex-a is a software tool for optimizing the performance of the core SoC.
1. Download the package
Download the precompiled binary package from the Linaro website, address: https://launchpad.net/linaro-toolchain-binaries/trunk/2013.10.
Note the selected version Oh, we want to use Linux under the OH. Select this:
gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux.tar.bz2
2. Unzip
Unzip the gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux.tar.xz to the ~/arm-cross-toolchain/directory
3. Setting Environment variables
~$ Vi. BASHRC
Add the following 2 lines at the end:
Path= $PATH:/home/lxl/arm-cross-toolchain/gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux/bin
Export PATH
Note that the first line of $path is followed by a colon, and the colon is followed by the absolute path of your cross-toolchain's executable directory (Bin directory). The meaning of these two sentences is to add the Cross-toolchain executable path to the system environment variable path.
4. Make Environment variables effective
~$ source. BASHRC
5. Testing
~$ arm-linux-gnueabihf-gcc-v
Error: Arm-linux-gnueabihf-gcc:error while loading shared libraries:libstdc++.so.6:cannot open shared object File:no such File or directory
Reason: 64-bit system, missing lib32stdc++6 this package
FIX:~$ sudo apt-get install lib32stdc++6
Install cross-compiler tool chain under Ubuntu