PCL installation on Ubuntu

# 安装依赖
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  
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  
# 版本可能需要修改,比如libflann1.9

# 安装OpenNI
git clone https://github.com/OpenNI/OpenNI.git
cd OpenNI
cd Platform/Linux/CreateRedist
./RedistMaker
cd Platform/Linux/Redist/OpenNI-Bin-Dev-Linux-x64-v1.5.7.10
./install.sh

# 下载pcl
git clone `pcl`

# 编译
cd pcl
mkdir build && cd build
cmake BUILD_GPU ON \
	BUILD_CUDA ON \
	BUILD_OPENNI ON \
	BUILD_gpu_kinfu ON \
	BUILD_gpu_kinfu_large_scale ON ..
make -j8

# .so安装到/usr/local/lib中
make install

你可能感兴趣的:(图形学)