Could NOT find Pcap (missing: PCAP_LIBRARIES PCAP_INCLUDE_DIRS)

问题描述

在安装pcl库时,对pcl源代码进行cmake分析,出现以下错误:

Could NOT find Pcap (missing: PCAP_LIBRARIES PCAP_INCLUDE_DIRS)_第1张图片

Could NOT find Pcap (missing: PCAP_LIBRARIES PCAP_INCLUDE_DIRS)
解决方案

1.官网下载pcap 1.9.0的压缩包

Could NOT find Pcap (missing: PCAP_LIBRARIES PCAP_INCLUDE_DIRS)_第2张图片
2.解压之后编译安装,命令如下:

$ tar -zxvf libpcap-1.9.0.tar.gz

$ cd libpcap-1.9.0

$ ./configure

$ make -j8

$ sudo make install

3.在./configure时如果出现如下错误:

configure: error: Neither flex nor lex was found.

直接输入下面命令安装缺少的依赖

$ sudo apt-get install flex bison

参考博客:https://www.cnblogs.com/nanmi/p/12840793.html

你可能感兴趣的:(PCL点云,pcl,pcap,cmake,ubuntu)