Install cross-compiler tool chain under Ubuntu

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.