×
单片机 > 单片机程序设计 > 详情

Ubuntu 安装arm-linux-gcc编译器

发布时间:2020-09-03 发布时间:
|

/**********************************************************************************

 *                      Ubuntu 安装arm-linux-gcc编译器

 * 说明:

 *     Ubuntu下直接安装arm-linux-gcc编译器,省得去配置那些环境。

 *

 *                                           2017-3-21 深圳 南山平山村 曾剑锋

 *********************************************************************************/


一、参考文档:

    Install the ARM cross compiler toolchain on your Linux Ubuntu PC

        https://www.acmesystems.it/arm9_toolchain


二、查找支持armhf的软件包名:

    zengjf@zengjf:~/zengjf/zengjfos/busybox/busybox-1.26.2$ sudo apt-cache search arm | grep gcc | grep armhf

    gcc-arm-linux-gnueabihf - GNU C compiler for the armhf architecture

    libgcc-6-dev-armhf-cross - GCC support library (development files)

    libgcc1-armhf-cross - GCC support library

    gcc-multilib-arm-linux-gnueabihf - GNU C compiler for the armhf architecture

    gccgo-arm-linux-gnueabihf - Go compiler (based on GCC) for the armhf architecture

    libgcc-4.7-dev-armhf-cross - GCC support library (development files)

    libgcc-4.9-dev-armhf-cross - GCC support library (development files)

    libgcc-5-dev-armhf-cross - GCC support library (development files)

    libgcc1-dbg-armhf-cross - GCC support library (debug symbols)

    libsfgcc-4.7-dev-armhf-cross - GCC support library (soft float ABI development files)

    libsfgcc-4.9-dev-armhf-cross - GCC support library (soft float ABI development files)

    libsfgcc-5-dev-armhf-cross - GCC support library (soft float ABI development files)

    libsfgcc-6-dev-armhf-cross - GCC support library (soft float ABI development files)

    libsfgcc1-armhf-cross - GCC support library (soft float ABI)

    libsfgcc1-dbg-armhf-cross - GCC support library (debug symbols)


三、安装命令:

    1. sudo apt-get install gcc-arm-linux-gnueabihf

    2. 安装结果:

        zengjf@zengjf:~/zengjf/zengjfos/busybox/busybox-1.26.2$ arm

        arm2hpdl                          arm-linux-gnueabihf-gcc           arm-linux-gnueabihf-gcov-6        arm-linux-gnueabihf-objdump

        arm-linux-gnueabihf-addr2line     arm-linux-gnueabihf-gcc-6         arm-linux-gnueabihf-gcov-tool     arm-linux-gnueabihf-ranlib

        arm-linux-gnueabihf-ar            arm-linux-gnueabihf-gcc-ar        arm-linux-gnueabihf-gcov-tool-6   arm-linux-gnueabihf-readelf

        arm-linux-gnueabihf-as            arm-linux-gnueabihf-gcc-ar-6      arm-linux-gnueabihf-gprof         arm-linux-gnueabihf-size

        arm-linux-gnueabihf-c++filt       arm-linux-gnueabihf-gcc-nm        arm-linux-gnueabihf-ld            arm-linux-gnueabihf-strings

        arm-linux-gnueabihf-cpp           arm-linux-gnueabihf-gcc-nm-6      arm-linux-gnueabihf-ld.bfd        arm-linux-gnueabihf-strip

        arm-linux-gnueabihf-cpp-6         arm-linux-gnueabihf-gcc-ranlib    arm-linux-gnueabihf-ld.gold       

        arm-linux-gnueabihf-dwp           arm-linux-gnueabihf-gcc-ranlib-6  arm-linux-gnueabihf-nm            

        arm-linux-gnueabihf-elfedit       arm-linux-gnueabihf-gcov          arm-linux-gnueabihf-objcopy


关键字:Ubuntu  arm-linux-gcc  编译器 

『本文转载自网络,版权归原作者所有,如有侵权请联系删除』

热门文章 更多
MSP430F5529 上手小例程2