[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Mingw-cross-env-list] libpcap missing
From: |
Tony Theodore |
Subject: |
Re: [Mingw-cross-env-list] libpcap missing |
Date: |
Tue, 25 Sep 2012 22:02:05 +1000 |
On 25/09/2012, at 3:13 PM, Kee K Y CHEN <address@hidden> wrote:
>
> Hi All,
>
> When i compile network related app such as ssldump, tcptraceroute in MXE
> with ./configure --host=i686-pc-mingw32, it always complain can not
> find libpcap or PCAP, but i've installed libpcap and libpcap-devel.
>
> ...
> checking for inet_aton in -lresolv... no
> checking for pcap_open_live in -lpcap... no
> configure: error: cannot find libpcap
> ...
>
> ...
> checking for PCAP include files... found in /usr/include
> checking for PCAP library...
> configure: error: Couldn't find PCAP library: needed for ssldump
> ...
It gets installed as libwpcap without a pkg-config entry, so you need to
somehow convince ./configure to look for it. Check the help on configure, it
may give you some hints on how to specify the library.
Also, finding the headers in /usr/include is not what you want - they are the
native headers and not the cross-compile ones.
Hope this helps,
Tony