赞
踩
# Notes for PCL installation, # 1. subset dependencies # sudo apt-get update # sudo apt-get install g++ # skip if already has # sudo apt-get install cmake # skip is already has # sudo apt-get install libboost-all-dev # Boost is strictly REQUIRED # sudo apt-get install libeigen3-dev # Eigen is strictly REQUIRED # sudo apt-get install libflann-dev # FLANN is strictly REQUIRED # sudo apt-get install libvtk6-dev # VTK is for pcl_visualization # sudo apt-get install 'libqhull*' # Qhull is for cl_surface # sudo apt-get install libopenni2-dev # OpenNI is for pcl_io # 2. all dependencies sudo apt-get update sudo apt-get install build-essential linux-libc-dev libxmu-dev libxi-dev sudo apt-get install cmake cmake-gui sudo apt-get install doxygen 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.9 libflann-dev sudo apt-get install libeigen3-dev sudo apt-get install libboost-all-dev sudo apt-get install libvtk7.1-qt sudo apt-get install libvtk7.1 sudo apt-get install libvtk7-jni libvtk7-java libvtk7-dev libvtk7-qt-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 graphviz sudo apt-get install openjdk-8-jdk openjdk-8-jre # 无法安装qt-sdk openjdk-9-jdk openjdk-9-jre sudo apt-get install libopenni-dev libopenni2-dev sudo apt-get install phonon-backend-gstreamer sudo apt-get install phonon-backend-vlc # 2. install PCL #git clone --branch pcl-1.8.1 https://github.com/PointCloudLibrary/pcl pcl-trunk # ln -s pcl-trunk pcl git clone https://github.com/PointCloudLibrary/pcl.git cd pcl mkdir build cd build cmake -DCMAKE_BUILD_TYPE=None -DBUILD_GPU=ON -DBUILD_apps=ON -DBUILD_examples=ON .. make -j 8 sudo make install # 3. uninstall PCL sudo rm -r /usr/local/include/pcl-1.8 /usr/local/share/pcl-1.8 /usr/local/bin/pcl* /usr/local/lib/libpcl*
编译时报了若干错误:
部分问题的解决方案:
sudo dpkg -i ensenso-sdk-2.2.147-x64.deb # https://www.ensenso.com/support/sdk-download/
sudo dpkg -i codemeter_6.80.3312.500_amd64.deb # https://www.wibu.com/support/user/downloads-user-software.html
sudo sh ./configure
sudo make
sudo make install
验证安装
cd /your_path_to_downloaded_pcl_repo/pcl/test
pcl_viewer car6.pcd
编译用到PCL的文件
error: ‘PointXYZ’ is not a member of ‘pcl’...
The imported target "vtkRenderingPythonTkWidgets" references the file
"/usr/lib/x86_64-linux-gnu/libvtkRenderingPythonTkWidgets.so" but this file does not exist....
The imported target "vtk" references the file "/usr/bin/vtk" but this file does not exist.
sudo ln -s /usr/lib/python2.7/dist-packages/vtk/libvtkRenderingPythonTkWidgets.x86_64-linux-gnu.so /usr/lib/x86_64-linux-gnu/libvtkRenderingPythonTkWidgets.so
sudo ln -s /usr/bin/vtk7 /usr/bin/vtk
** WARNING ** io features related to pcap will be disabled
** WARNING ** io features related to png will be disabled
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。