Ubuntu 16.04如何安装PCL环境

需要安装PCL1.7已上版本,以及OPENNI2,VTK,QT等依赖库,已经按照教程安装了ROS依赖包,但还是无法通过cmake

1赞

搞定了之后上传解决方法哈~你行的😁

1赞

ubuntu16.04安装PCL1.8,亲测有效
依次执行:
sudo apt-get update
sudo apt-get install git build-essential linux-libc-dev
sudo apt-get install cmake cmake-gui
sudo apt-get install libusb-1.0-0-dev libusb-dev libudev-dev
sudo apt-get install mpi-default-dev openmpi-bin openmpi-common
sudo apt-get install libflann1.8 libflann-dev
sudo apt-get install libeigen3-dev
sudo apt-get install libboost-all-dev
sudo apt-get install libvtk5.10-qt4 libvtk5.10 libvtk5-dev(如果安装ros时安装了vtk6.2版本,这一项可以省略,VTK不能低于6.2版本)
sudo apt-get install libqhull* libgtest-dev
sudo apt-get install freeglut3-dev pkg-config
sudo apt-get install libxmu-dev libxi-dev
sudo apt-get install mono-complete
sudo apt-get install qt-sdk openjdk-8-jdk openjdk-8-jre
下载源码
git clone https://github.com/PointCloudLibrary/pcl.git
编译源码
cd pcl
mkdir release
cd release
cmake -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_PREFIX=/usr
-DBUILD_GPU=ON -DBUILD_apps=ON -DBUILD_examples=ON
-DCMAKE_INSTALL_PREFIX=/usr …
Make

 sudo make install
2赞


终于安好了,十分感谢 @tanry99882 :rofl:

cmake 部分建议使用 cmake gui,方便查找修改缺失的库或文件

附上中途可能遇到的 libGL.so 链接问题的解决地址: https://blog.csdn.net/wuguangbin1230/article/details/77816299

great job.

不客气,一起交流怎么踩坑啊:sweat_smile:

好的,请多指教 :hear_no_evil: