在TX2上ubuntu16.04 安装pcl1.8

环境:NVIDIA TX2 ubuntu16.04

安装过程如下:

1.下载pcl源码

git clone https://github.com/PointCloudLibrary/pcl.git

2.安装pcl依赖的一些库

sudo apt-get install cmake g++   libboost1.58-all-dev libeigen3-dev libflann-dev python libusb-1.0-0-dev libudev-dev freeglut3-dev doxygen graphviz libpng12-dev libgtest-dev libxmu-dev libxi-dev libpcap-dev libqhull-dev libvtk5-qt4-dev python-vtk libvtk-java 

3.编译安装pcl

cmake  -D CMAKE_BUILD_TYPE=None  -D BUILD_GPU=ON  -D BUILD_apps=ON  -D BUILD_examples=ON .  
sudo make -j2  
sudo make install  

4.遇到的问题

1)编译过程中提示/usr/include/vtk/QVTKWidget.h fatal error QtGui/QWidget: NO such file or directory

解决办法:由错误信息定位到QQVTKWidget.h在41行做如下修改:
//#include         //Qt4中写法
#include  //Qt5中写法

2)QVTKWidget.h error Qt::WFlags has not been declared

Change Qt::WFlags to Qt::WindowFlags
5.之后重新make,make install即可安装成功。


你可能感兴趣的:(tx2)