开发者

How to build libpcap source for static lib and headers only

I have source for li开发者_JAVA百科bpcap and I want to build static lib and headers for my linux platform.

I tried with ./configure and make command but it is not generating lib and headers.

Anyone does know the configure cmd for doing this.

Thanks.


At least on Ubuntu 10.0.4.2 LTS, building the latest libpcap release produces both the shared and static libraries.

$ wget http://www.tcpdump.org/beta/libpcap-1.2.0rc1.tar.gz
$ tar xf libpcap-1.2.0rc1.tar.gz && cd libpcap-1.2.0rc1
$ ./configure && make
$ find -name "libpcap.so*" -o -name "libpcap.a"
./libpcap.a
./libpcap.so.1.2.0

Information about your specific build environment would be necessary to further answer the question, e.g. Linux distribution, version of libpcap.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜