Install arm-linux-gcc 4.5.1 cross-compilation environment on ubuntu16.4 64bit system

All the following steps are performed under root privileges:

1. Copy something similar to arm-linux-gcc-4.5.1-v6-vfp-20120301.tgz to a folder in ubuntu, and copy it to /tmp here.

2.$cd /tmp

   $tar xvzf arm-linux-gcc-4.5.1-v6-vfp-20120301.tgz –C /

Executing the above two commands will extract the compressed file to /opt/FriendlyARM/toolschain/4.5.1.

3.$gedit /root/.bashrc 

In the opened file, add export PATH=$PATH:/opt/FriendlyARM/toolschain/4.5.1/bin at the end, this path is the path of the decompression and installation in the previous step. Save and exit.

4.$apt-get update

Execute after the update is complete

  $apt-get install lib32ncurses5 lib32z1

After the installation is complete, execute $arm-linux-gcc -v. Finally, the version number of the cross compiler is displayed, indicating that the cross compilation environment is successfully installed.


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325806901&siteId=291194637