Wireshark-dev: Re: [Wireshark-dev] How do you tell cmake to look in /usr/local/lib for libpcap?

From: Roland Knall <rknall@xxxxxxxxx>
Date: Mon, 3 Dec 2018 09:19:28 +0100
Have you recreated the CMakeCache.txt? Could you try running the command in a completely new environment, but with PCAP_HINTS set to /usr/local for the first run?

It seems that cmake/modules/FindPCAP.cmake just does not take PCAP_HINTS and most likely with cmake that's because it has already stored a value for that internally. So clearing the cache would do the trick.

cheers
Roland

Am Mo., 3. Dez. 2018 um 02:32 Uhr schrieb Richard Sharpe <realrichardsharpe@xxxxxxxxx>:
Hi folks,

I am not having much luck getting cmake to look in the right place for
the library.

I have set PCAP_HINTS to /usr/local and cmake is finding the include
files, but not the correct libraries ...

----------------------
-- Looking for pcap_set_tstamp_type - found
-- Looking for pcap_open
-- Looking for pcap_open - not found
-- PCAP FOUND
-- PCAP includes: /usr/local/include
-- PCAP libs: /lib64/libpcap.so   # This is not what I want.
----------------------

--
Regards,
Richard Sharpe
(何以解憂?唯有杜康。--曹操)(传说杜康是酒的发明者)
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe