Ubuntu 12.04 is installed arm-linux-gcc-4.4.3.tar.gz (cross compile environment)

Source: Internet
Author: User
Tags posix

1. Download arm-linux-gcc-4.4.3.tar.gz

Http://download.csdn.net/download/jwzhangjie/5183630

2. Create a directory

Root @ Zhangjie:Mkdir/usr/local/ARM

3. Unzip the file

Root @ Zhangjie:/usr/local/arm:Tar xvf arm-linux-gcc-4.4.3.tar.gz

4. Set the environment variable

Root @ Zhangjie:/usr/local/arm # Vim/etc/bash. bashrc

In the last line

Arm_gcc =/usr/local/ARM/opt/friendlyarm/toolschain/4.4.3/bin
Export Path = $ arm_gcc: $ path

Root @ Zhangjie:/usr/local/arm # WQ

5. Update environment variable

Root @ Zhangjie:/usr/local/arm # source/etc/bash. bashrc

6. Check
The Environment Variable

Root @ Zhangjie:/usr/local/arm # arm-Linux-gcc-V

Using built-in specs.
Target: Arm-None-Linux-gnueabi
Configured: /opt/friendlyarm/mini2440/build-toolschain/working/src/gcc-4.4.3/configure -- Build = i386-build_redhat-linux-gnu -- Host = i386-build_redhat-linux-gnu -- target = arm-None-Linux-gnueabi -- prefix =/ OPT/friendlyarm/toolschain/4.4.3 -- With-sysroot =/opt/friendlyarm/toolschain/4.4.3/ARM-None-Linux-gnueabi // sys-Root
-- Enable-languages ages = C, c ++ -- disable-multilib -- With-arch = armv4t -- With-CPU = ARM920T -- With-tune = ARM920T -- With-float = soft -- With-pkgversion = ctng-1.6.1 -- disable- sjlj-exceptions -- enable-_ cxa_atexit -- With-GMP =/opt/friendlyarm/toolschain/4.4.3 -- With-mpfr =/opt/friendlyarm/toolschain/4.4.3
-- With-PPL =/opt/friendlyarm/toolschain/4.4.3 -- With-cloog =/opt/friendlyarm/toolschain/4.4.3 -- With-MPC =/opt/friendlyarm/toolschain/4.4.3 -- with-local-Prefix =/opt/friendlyarm/toolschain/4.4.3/ARM-None-Linux-gnueabi // sys-root -- disable-NLS -- enable-threads = POSIX
-- Enable-symvers = GNU -- enable-c99 -- enable-long -- enable-target-optspace
Thread model: POSIX
GCC version 4.4.3 (ctng-1.6.1)

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.