ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

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

From: Richard Sharpe <realrichardsharpe@xxxxxxxxx>
Date: Sun, 2 Dec 2018 17:31:25 -0800
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
(何以解憂?唯有杜康。--曹操)(传说杜康是酒的发明者)