开发者

How to build libpcap source for static lib and headers only

开发者 https://www.devze.com 2023-03-25 03:01 出处:网络
I have source for li开发者_JAVA百科bpcap and I want to build static lib and headers for my linux platform.

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

精彩评论

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

关注公众号