1. decompress the compiler to the corresponding directory (I will extract it to the root directory): unzip root@localhostsmb?#tar-jxvfarm-linux-gcc-4.4.3.tar.bz2-C/-C (c is capitalized) is decompressed to the specified directory, I decompress the compiler to the root directory and apply-C//...
1. extract the compiler to the corresponding directory (I will extract it to the root directory ):
[Root @ localhost smb] # tar-jxvf arm-linux-gcc-4.4.3.tar.bz2-C/
-C (c is capitalized) is decompressed to the specified directory. I decompress the compiler to the root directory and apply-C/
Decompress the package to the/opt/FriendlyARM Directory (this directory does not necessarily work out the same for different packages. the following configuration is determined based on the corresponding path ).
2. configure environment variables
# Vim ~ /. Bashrc
Add at the end of the file:
Export PATH = $ PATH:/opt/FriendlyARM/toolschain/4.4.3/bin (compiler PATH)
As follows:
3. execute the set environment variables and test the cross-compilation environment.
Run:
[Root @ localhost local] # source ~ /. Bashrc
On the terminal, enter the arm-linux + tab key to check whether the following arm-linux-** compiler appears. If yes, the build is successful.
Author: xubin341719