ubuntu14.04 编译源码安装PCL1.8

最近在搞三维重建,使用ubuntu14.04, 安装PCL1.8时,遇到了很多问题,现在安装成功。


1.安装依赖库

sudo apt-get install g++  
sudo apt-get install cmake cmake-gui  
sudo apt-get install doxygen    
sudo apt-get install mpi-default-dev openmpi-bin openmpi-common    
sudo apt-get install libflann-dev  
sudo apt-get install libeigen3-dev  
sudo apt-get install libboost-all-dev  libboost-system1.55.0
sudo apt-get install libvtk5.8-qt4 libvtk5.8 libvtk5-dev  libvtk-java  python-vtk 
sudo apt-get install libqhull*  
sudo apt-get install libusb-dev  
sudo apt-get install libgtest-dev  
sudo apt-get install git-core freeglut3-dev pkg-config  
sudo apt-get install build-essential libxmu-dev libxi-dev   
sudo apt-get install libusb-1.0-0-dev graphviz mono-complete  
sudo apt-get install qt-sdk openjdk-7-jdk openjdk-7-jre  
sudo apt-get install phonon-backend-gstreamer  
sudo apt-get install phonon-backend-vlc  


2. 编译/安装 ,make时间很长

cd pcl-trunk && mkdir build && cd build
cmake ..
make
sudo make install


Note:

1.有时,在运行程序时会遇到缺少libboost-system.so.1.46.1的问题,从boost的官网下载源码编译,不用安装,然后在源码文件夹下面查找libboost_system.1.46.1, 然后cp到/usr/lib/x86_64-linux-gnu/下, 再执行sudo chmod -x /usr/lib/x86_64-linux-gnu/libboost_system.1.46.1即可。

2.pcl 要求的VTK, boost,  eigen必需安装上,


你可能感兴趣的:(linux,Slam,pcl1.8)