ubuntu busybox-1.7.0编译
来源:互联网 发布:多益网络 校园招聘 编辑:程序博客网 时间:2024/05/17 05:02
1、操作系统:Ubuntu16.04
2、交叉编译工具链:arm-linux-gcc4.4.3
3、busybox版本:busybox-1.7.0
解压源码包 tar -jxvf busybox-1.7.0
1.make menuconfig
出现错误:
Makefile:405: *** mixed implicit and normalrules: deprecated syntaxMakefile:1242: *** mixed implicit andnormal rules: deprecated syntax
原因Make工具太新
修改Makefile
修改前:405行 config %config: scripts_basic outputmakefile FORCE
修改后:405 行 %config: scripts_basic outputmakefile FORCE
修改前:1242 行 / %/: prepare scripts FORCE
修改后:1242 行 %/: prepare scripts FORCE
继续make menuconfig
scripts/kconfig/lxdialog/dialog.h:31:20:fatal error: curses.h: 没有那个文件或目录
compilation terminated.
make[2]: *[scripts/kconfig/lxdialog/checklist.o] 错误 1
make[1]: * [menuconfig] 错误 2
make: * [menuconfig] 错误 ncurses devel ,把此套件安装即可
apt-get install libncurses5-dev
保存之后make menuconfig进行相关设置
2.修改makefile
175 ARCH ?= $(SUBARCH)176 CROSS_COMPLE ?=
175 ARCH ?= arm
176 CROSS_COMPLE ?= arm-linux-.执行make
错误:
make[1]: *** [ipsvd/tcpudp.o] Error 1Makefile:701: recipe for target 'ipsvd'failedmake: *** [ipsvd] Error 2
/usr/local/arm/opt/FriendlyARM/toolschain/4.4.3/arm-none-linux-gnueabi/sys-root/usr/include/linux
netfilter.h 头文件的开头
添加缺少的头文件:
include
iptunnel.c:(.text.print_tunnel+0x1ec):undefined reference to `__cpu_to_be16' iptunnel.c:(.text.print_tunnel+0x200):undefined reference to `__cpu_to_be16' iptunnel.c:(.text.print_tunnel+0x238):undefined reference to `__cpu_to_be16' iptunnel.c:(.text.print_tunnel+0x24c):undefined reference to `__cpu_to_be16' iptunnel.c:(.text.print_tunnel+0x26c):undefined reference to `__cpu_to_be16' networking/libiproute/lib.a(iptunnel.o):iptunnel.c:(.text.print_tunnel+0x290):more undefined references to `__cpu_to_be16' follow collect2: ld returned 1 exit status Makefile:678: recipe for target'busybox_unstripped' failed make: *** [busybox_unstripped] Error 1
修改 networking/libiproute/iptunnel.c文件
在#include
#include <asm/byteorder.h>
之后即可重新make通过
- ubuntu busybox-1.7.0编译
- ubuntu busybox-1.7.0编译
- BusyBox编译
- 编译busybox
- busybox编译
- 编译busybox
- busybox编译
- 编译busybox
- 编译Busybox
- 编译busybox
- ubuntu下编译busybox失败的一种解决方法
- Ubuntu环境下busybox编译报错处理
- ubuntu下使用qemu模拟ARM(四)-------编译busybox
- linux(ubuntu)编译busybox遇到的问题处理办法
- 编译busybox-1.16.0根文件移植
- 编译busybox-1.13.0错误解决
- busybox-1.7.0分析
- 在ubuntu上使用交叉编译工具链编译arm64版busybox
- 欢迎使用CSDN-markdown编辑器
- bzoj 1063: [Noi2008]道路设计 树形dp
- [数位DP Lucas定理] 2017 计蒜之道 复赛 E. 商汤智能机器人
- jsp与数据库交互(补六月十号)
- Java程序员必读的9本书
- ubuntu busybox-1.7.0编译
- 正则表达式
- 二分法c语言代码(递归、迭代)
- Python开发者最常犯的10个错误
- [Unity&多人游戏插件]GameSparks 的下载 安装以及简单的说明
- Android获取手机的IMEI
- linux应用调试之自制系统调用、编写进程查看器(一)
- Java--反射机制示例
- java-常见开源库2