Ubuntu compiler ARM-LINUX-GCC Tool chain-Install Crosstool-ng

Source: Internet
Author: User
Tags bz2

First, installation Crosstool-ng

1 , establish Arm-linux-tools directory, and enter the directory

$ mkdir arm-linux-tools

$ cd arm-linux-tools

2 , Get Crosstool-ng the source code

$ wget http://crosstool-ng.org/download/crosstool-ng/crosstool-ng-1.20.0.tar.bz2

3 , decompression Crosstool-ng the source code

$ tar xvjf crosstool-ng-1.20.0.tar.bz2

Consider the various directories that will be used in the future, and set up the following directories first.

$ mkdir crosstool-build crosstool-install src crosstoo

4 , configure and perform dependency detection

$ cd crosstool-ng-1.20.0

$ ./configure--prefix/home/eric/arm-linux-tools/crosstool-install/

Before you configure, you need to make sure that the following software is installed

1 ) Gperf

2 ) Bison

3 ) Flex

4 ) Texinfo

5 ) gawk

6 ) Libtool

7 ) Automake

8 ) Libncurses5-dev

9 ) g++

Ten ) Help2man

In the configuration, it will be dependent on detection, if there is a missing package, install and then perform the configuration.

after a successful configuration, we will automatically create the required Makefile file.

5 , compile, and install

$ make

$ make install

6 , configure environment variables

$ Export path= $PATH:/home/eric/arm-linux-tools/crosstool-install/bin/

7 , check Crosstool-ng whether the installation was successful

$ ct-ng-v

Ubuntu compiler ARM-LINUX-GCC Tool chain-Install Crosstool-ng

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.