本人的第一篇部落格。
1.下載下傳PCL,網址https://github.com/PointCloudLibrary/pcl
1.1 可以使用指令:git clone https://github.com/PointCloudLibrary/pcl.git或者直接下載下傳zip檔案。
1.2 安裝依賴的庫
1. sudo apt-get update
2. sudo apt-get install git build-essential linux-libc-dev
3. sudo apt-get install cmake cmake-gui
4. sudo apt-get install libusb-1.0-0-dev libusb-dev libudev-dev
5. sudo apt-get install mpi-default-dev openmpi-bin openmpi-common
6. sudo apt-get install libflann1.8 libflann-dev
7. sudo apt-get install libeigen3-dev
8. sudo apt-get install libboost-all-dev
9. sudo apt-get install libvtk5.10-qt4 libvtk5.10 libvtk5-dev
10. sudo apt-get install libqhull* libgtest-dev
11. sudo apt-get install freeglut3-dev pkg-config
12. sudo apt-get install libxmu-dev libxi-dev
13. sudo apt-get install mono-complete
14. sudo apt-get install qt-sdk openjdk-8-jdk openjdk-8-jre
2.編譯源碼
1. cd pcl % 改變終端路徑為PCL
2. mkdir build % 接着在PCL檔案下建立build檔案夾
3. cd build % 改變終端路徑為build
4. cmake -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_PREFIX=/usr/local \
5. -DBUILD_GPU=ON -DBUILD_apps=ON -DBUILD_examples=ON ..
6. make
3.安裝
sudo make install