Hi, I'm compiling from source on ARM based ubuntu (14.04) system similar to Raspberry Pi. I've hit the: tshark: This version of TShark was not built with support for capturing packets message and I've read that I must "use --with-pcap option in your configure." I see the following files at the top level:
Where should I enable the use of pcap? Please be as specific as possible. Do I need to apt-get any other library for pcap? I'm compiling by: cmake . && make asked 21 May '16, 15:33 kupylin edited 21 May '16, 15:55 Guy Harris ♦♦ |
One Answer:
You should get the libpcap development package libpcap0.8-dev. That provides you with the development files you need to compile using --with-pcap (which cmake should be able to find just fine actually). answered 21 May '16, 15:59 Jaap ♦ edited 21 May '16, 16:00 At least if this is doing a native compile. The package might have some other name if they're cross-compiling. (21 May '16, 16:10) Guy Harris ♦♦
Both CMake and autotools should find libpcap without any help if the development package is installed; no need for (21 May '16, 16:11) Guy Harris ♦♦ |
Where did you read the statement that you must "use --with-pcap option in your configure."? That statement needs to be updated to handle CMake as well as autoconf;
--with-pcap
is an autoconf option, and doesn't apply if you're using CMake.Are you compiling on the ARM-based system to build a program to run on the same system, or are you compiling on some other system to produce a program to run on the ARM-based system, i.e. are you cross-compiling?
Hi, I'm doing a native compilation on the ARM based system that I intend to run. My installed compiler is gcc 4.8.x. I'll get back to you on where the message to use cap came from.