1
2
3
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或者 提示
1
2
However the following packages replace it:
lib32ncurses5 lib32z1
1
2
3
4
5
6
7
8
9
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即可解决
1
2
3
4
5
./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的缩写,即设备树编译器,说明系统中没有安装这个编译器 安装不就行了
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
build-essential
|Depends: libc6-dev
Depends: <libc-dev>
libc6-dev
Depends: gcc
Depends: g++
Depends: make
make-guile
Depends: dpkg-dev
1
2
3
4
5
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
- 查找资料后得知,最小系统不支持图形显示造成 解决方法:
1
2
sudo apt-get install libncurses5-dev
// libncurses5-dev是Ubuntu操作系统内核编译工具
1
/bin/sh: 1: bc: not found
- 解决方法:
sudo apt-get install bc
1
fatal error: sys/cdefs.h: No such file or directory
- 解决方法:
1
2
3
4
sudo apt-get purge libc6-dev
sudo apt-get install libc6-dev
sudo apt-get install libc6-dev-i386
sudo apt-get install lib32readline*