1,解压libpcap-1.3.0.tar.gz,cd进入目录,修改confiugre文件,把下面两段注释掉
#if test -z "$with_pcap" && test "$cross_compiling" = yes; then
# { { echo "$as_me:$LINENO: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&5
#echo "$as_me: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&2;}
# { (exit 1); exit 1; }; }
#fi
2, ./configure --host=arm-linux CC=arm-xilinx-linux-gnueabi-gcc
3,make
或者makefile
all:
tar xzvf libpcap-1.3.0.tar.gz
cd libpcap-1.3.0 && CC=CC=arm-xilinx-linux-gnueabi-gcc ./configure --host=arm-linux
cd ..
make -C libpcap-1.3.0
romfs:
cp -f libpcap-1.3.0/libpcap-1.3.0.so.1.3.0 $(ROMFSDIR)/lib/
阅读(1492) | 评论(0) | 转发(0) |