Ubuntu 安裝arm-linux-gcc編譯器

/**********************************************************************************
 *                      Ubuntu 安裝arm-linux-gcc編譯器
 * 說明:
 *     Ubuntu下直接安裝arm-linux-gcc編譯器,免得去配置那些環境。
 *
 *                                           2017-3-21 深圳 南山平山村 曾劍鋒
 *********************************************************************************/

1、參考文檔:
    Install the ARM cross compiler toolchain on your Linux Ubuntu PC
        https://www.acmesystems.it/arm9_toolchain

2、查找支持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)

3、安裝命令:
    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
相關文章
相關標籤/搜索