Cross Compile iptables
来源:互联网 发布:橙光制作工具 mac 编辑:程序博客网 时间:2024/06/06 06:57
Cross Compile iptables
- Iptables
FIRST
Download and extra iptables tar ball.
Simple compile on local machine:
cd iptables-1.4.21./configuremakemake install
Cross compile
Host: arm-hisiv600-linux
Cross compiler: arm-hisiv600-linux-gcc
./configure --host=arm-hisiv600-linux --prefix= CC=arm-hisiv600-linux-gccmakemake install prefix=/home/xxx/arm/install/iptables
then copy all files in /home/xxx/arm/iptables to target arm board.
prefix: where to install
according to error infomation, compile dependence first.
Compile static:
./configure --host=arm-hisiv600-linux --prefix= CC=arm-hisiv600-linux-gcc --enable-static./configure --host=arm-hisiv600-linux --prefix= CC=arm-hisiv600-linux-gcc --enable-static --diable-share
Set PKG_CONFIG_PATH
./configure --host=aarch64-hisiv610-linux --prefix= CC=aarch64-hisiv610-linux-gcc PKG_CONFIG_PATH=/home/xxx/arm/usr/lib/pkgconfig
Compile dependence
All dependence would be same to compile.
./configure --host=arm-hisiv600-linux --prefix=/home/xxx/arm/usr CC=arm-hisiv600-linux-gccmakemake install
- libmnl
- libnfnetlink
- libnftnl
Maybe also need nftables - nftables
Intall pkg-config if not intalled in system.
Add
e.g.
#Append to ~/.bashrcexport PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/home/xxx/arm/usr/lib/pkgconfig#sourcesource ~/.bashrc
阅读全文
1 0
- Cross Compile iptables
- cross compile
- au1200 kdrive cross compile
- mplayer cross compile
- mplayer cross compile 2
- mplayer cross compile 3
- ffmpeg cross compile
- ffmpeg cross compile 2
- mplayer cross compile 4
- mplayer cross compile 5
- mplayer_r29702 cross compile
- live555 cross compile
- Cross compile - scratchbox
- dhcp cross compile
- Cross Compile zlib
- Cross Compile libpng
- git cross-compile
- cross compile tcpdump tool
- 简单任务调度问题(贪心)
- Android4.4 Uri获取图片及document理解
- iOS用域名或主机名获取IP地址(包含C语言接口 和iOS原生)
- API网关orange在ubuntu安装记录
- HDU 2094 产生冠军
- Cross Compile iptables
- 1110. Complete Binary Tree (25)完全二叉树
- 线程的四种状态以及wait和sleep的区别
- 二叉树1——创建与插入节点
- 设计模式-观察模式
- Xutils创建数据库添加数据
- MVG读书笔记——射影变换的校正(一)
- Linux下双网卡桥接
- hdu6071 2017hdu多校第四场