Ask Your Question

Revision history [back]

problem compiling tshark statically

I've been banging my head against this for 2 weeks. I'm not a developer, but I can generally use things pretty well. I'm running into this error while trying to compile wireshark statically -

tje210:/wireshark/build $ cmake ..
(lots of output...)
-- Found PCAP: /usr/lib/x86_64-linux-gnu/libpcap.a
-- Looking for pcap_lib_version
-- Looking for pcap_lib_version - not found
CMake Error at cmake/modules/FindPCAP.cmake:212 (message):
You need libpcap 0.8 or later
Call Stack (most recent call first):
CMakeLists.txt:1162 (find_package)
CMakeLists.txt:1211 (ws_find_package)

(end output)

How do I give cmake what it wants? The problem doesn't happen when I have these options -
option(ENABLE_STATIC "Build Wireshark libraries statically" ON)
option(USE_STATIC "Always link statically with external libraries" ON)

set to OFF.