yexiang@ubuntu:~/uboot$ arm-linux-g++ -v
/opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-g++: 15: exec: /opt/FriendlyARM/toolschain/4.4.3/bin/.arm-none-linux-gnueabi-g++: not found
// 这个问题是ubuntu 64位 需要安装一些32位的库文件。
// sudo apt-get install ia32-libs 或者 提示
However the following packages replace it:
lib32ncurses5 lib32z1
In file included from tools/aisimage.c:10:0:
include/image.h:920:27: fatal error: openssl/evp.h: 没有那个文件或目录
# include <openssl/evp.h>
^
compilation terminated.
scripts/Makefile.host:111: recipe for target 'tools/aisimage.o' failed
make[1]: *** [tools/aisimage.o] Error 1
Makefile:1194: recipe for target 'tools' failed
make: *** [tools] Error 2
这个是openssl的依赖的问题,运行命令sudo apt-get install libssl-dev 即可解决。
./scripts/dtc-version.sh: 行 17: dtc: 未找到命令
./scripts/dtc-version.sh: 行 18: dtc: 未找到命令
*** Your dtc is too old, please upgrade to dtc 1.4 or newer
Makefile:1353: recipe for target 'checkdtc' failed
make: *** [checkdtc] Error 1
好吧,,dtc是device-tree-compiler的缩写,即设备树编译器,说明系统中没有安装这个编译器
安装不就行了:
sudo apt-get install device-tree-compiler
sudo apt-get install build-essential
// 编译程序必须的软件包
// Ubuntu缺省情况下,并没有提供C/C++的编译环境,因此还需要手动安装。
如果单独安装gcc以及g 比较麻烦,幸运的是,为了能够编译Ubuntu的内核,Ubuntu提供了一个build-essential软件包。
查看该软件包的依赖关系,可以看到以下内容:
$ apt-cache depends build-essential
In file included from scripts/kconfig/lxdialog/checklist.c:24:
scripts/kconfig/lxdialog/dialog.h:32: fatal error: curses.h: No such file or directory
compilation terminated.
make[1]: *** [scripts/kconfig/lxdialog/checklist.o] Error 1
make: *** [menuconfig] Error 2
查找资料后得知,最小系统不支持图形显示造成
解决:
sudo apt-get install libncurses5-dev
//libncurses5-dev是Ubuntu操作系统内核编译工具
/bin/sh: 1: bc: not found
// sudo apt-get install bc
fatal error: sys/cdefs.h: No such file or directory|
sudo apt-get purge libc6-dev
sudo apt-get install libc6-dev
sudo apt-get install libc6-dev-i386
sudo apt-get install lib32readline*