安裝必須的依賴庫
新建一個pcl_dependences.sh文件,將以下內容寫入文件:
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 libvtk6.3 libvtk6.3-qt libvtk6-dev
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
安裝所需的依賴庫,執行命令:
sudo sh pcl_dependences.sh
提示[y/n]時都選則y即可。
下載源碼解壓
配置並編譯
因爲本人需要visualization,所以我選擇cmake圖形界面來配置一下pcl。
Where is the source code:選擇剛纔解壓的pcl所在的文件夾
Where tobuild the binaries:選擇剛纔新建的build文件夾
點擊Configure,選擇需要的BUILD_visualization(其他的我是默認的)
接着點擊Generate,讓它完成配置。(這一步相當於cmake操作)
再接着回到命令行:(build文件夾下)
make -j8
泡杯茶等着~
sudo make install
等待安裝好就可以啦。
- https://blog.csdn.net/yingmai7741/article/details/86531850