感谢支持
我们一直在努力

Ubuntu 16.04 (64bit)中制作arm-linux-gcc

Mini2440官方所提供的arm-Linux-gcc是基于32位Linux系统的,在64位Linux中运行会出错[1]。在64位机时代里,继续使用32位Linux进行开发就显得有点out了。针对上述背景,本文在64位Linux中制作arm-linux-gcc工具,主要开发环境如下:

  • Ubuntu 16.04(64bit)  http://www.linuxidc.com/Linux/2016-04/130466.htm
  • arm-linux-gcc 4.6.3
  • Buildtroot

下载 arm-linux-gcc 4.4.3
下载链接 http://www.linuxidc.com/Linux/2011-05/35906.htm

Ubuntu 16.04 U盘安装图文教程 http://www.linuxidc.com/Linux/2016-04/130520.htm

1  Buildroot

1.1 配置

下载Buildroot源码并解压,进入其目录执行下述命令启动配置界面:

make menuconfig

配置界面如下:

第一次执行make menucofig时,可能会出错:

www.linuxidc.com@ubuntu:~/Mini2440/Buildroot/buildroot-2016.02$ make menuconfig
mkdir -p /home/onesea/Mini2440/Buildroot/buildroot-2016.02/output/build/buildroot-config/lxdialog
PKG_CONFIG_PATH=”” make CC=”/usr/bin/gcc” HOSTCC=”/usr/bin/gcc” \
    obj=/home/onesea/Mini2440/Buildroot/buildroot-2016.02/output/build/buildroot-config -C support/kconfig -f Makefile.br mconf
/usr/bin/gcc -DCURSES_LOC=”<curses.h>” -DLOCALE  -I/home/onesea/Mini2440/Buildroot/buildroot-2016.02/output/build/buildroot-config -DCONFIG_=\”\”  -MM *.c > /home/onesea/Mini2440/Buildroot/buildroot-2016.02/output/build/buildroot-config/.depend 2>/dev/null || :
/usr/bin/gcc -DCURSES_LOC=”<curses.h>” -DLOCALE  -I/home/onesea/Mini2440/Buildroot/buildroot-2016.02/output/build/buildroot-config -DCONFIG_=\”\”  -c conf.c -o /home/onesea/Mini2440/Buildroot/buildroot-2016.02/output/build/buildroot-config/conf.o
 *** Unable to find the ncurses libraries or the
 *** required header files.
 *** ‘make menuconfig’ requires the ncurses libraries.
 ***
 *** Install ncurses (ncurses-devel) and try again.
 ***
Makefile:199: recipe for target ‘/home/onesea/Mini2440/Buildroot/buildroot-2016.02/output/build/buildroot-config/dochecklxdialog’ failed
make[2]: *** [/home/onesea/Mini2440/Buildroot/buildroot-2016.02/output/build/buildroot-config/dochecklxdialog] Error 1
Makefile:753: recipe for target ‘/home/onesea/Mini2440/Buildroot/buildroot-2016.02/output/build/buildroot-config/mconf’ failed
make[1]: *** [/home/onesea/Mini2440/Buildroot/buildroot-2016.02/output/build/buildroot-config/mconf] Error 2
Makefile:36: recipe for target ‘_all’ failed
make: *** [_all] Error 2

根据上述错误提示,当前系统缺乏ncurses库,执行下述命令进行安装即可:

sudo apt-get install libncurses-dev 

本文永久更新链接地址:http://www.linuxidc.com/Linux/2016-12/138770.htm

赞(0) 打赏
转载请注明出处:服务器评测 » Ubuntu 16.04 (64bit)中制作arm-linux-gcc
分享到: 更多 (0)

听说打赏我的人,都进福布斯排行榜啦!

支付宝扫一扫打赏

微信扫一扫打赏