安装依赖项
sudo apt install cmake libeigen3-dev libboost-all-dev
sudo apt-get install libflann1.9 libflann-dev
注意:
很多文档都是sudo apt-get install libflann1.8 libflann-dev
但是会发现显示无法定位包libflann1.8。后来在Ubuntu packages上面看到ubuntu 18.04 bionic对应的版本是libflann1.9,改用libflann1.9执行成功
安装
wget "https://github.com/PointCloudLibrary/pcl/archive/pcl-1.9.1.zip"
unzip pcl-*.zip
rm pcl-*.zip
cd pcl-*
mkdir build
cd build
cmake ..
make -j8
sudo make install