Steps for installing cross-compiler in linux

Source: Internet
Author: User

 

Step 1:

Copy the arm-linux-gcc-4.3.2.tgz file to the/forlinx directory of Ubuntu, which is located in the user base

 

In the "utility" folder of the basic data disk. Create a new terminal in Ubuntu and enter the following command to install the cross

Compiler:

# Cd/forlinx

(Go to the/forlinx directory)

# Mkdir/usr/local/arm

(Create a directory. If the directory already exists, an error will be prompted. skip this step)

# Tar zxvf arm-linux-gcc-4.3.2.tgz-C/usr/local/arm

Compressed compiler package

The "4.3.2" Directory will be generated under the/usr/local/arm/directory.

Compiler

In this way, the kernel or other applications are/usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-gcc

To specify the cross compiler. For example, we can view the version of this compiler and run

#/Usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-gcc

If the compiler is correctly installed, information such as the version of the compiler will be displayed ,:

Step 2:

1. Copy the cross-4.2.2-eabi.tar.bz2 file to the/forlinx directory of Ubuntu.

2. Run the command #: cd/forlinux to enter the forlinux directory.

3 # mkdir/usr/local/arm

(Create a directory. If the directory already exists, an error will be prompted. skip this step)

4 # tar-xv-f arm-linux-gcc-4.3.2.tgz-C/usr/local/arm

(Decompress it to the/usr/local/arm directory)

 

From sunstars2009918

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.