Apt-get Method:
We currently support all Ubuntu via PPA. The installation instructions is:
sudo add-apt-repository ppa:v-launchpad-jochen-sprickerhof-de/pcl
sudo apt-get update
sudo apt-get install Libpcl-all
The following are manual installations:
1, Download PCL
$ git clone https://github.com/PointCloudLibrary/pcl.git pcl-trunk
$ ln-s pcl-trunk PCL
2, installation dependencies
$ sudo apt-get install cmake
$ sudo apt-get install g++
$ sudo apt-get install libboost1.55-all-dev
$ sudo apt -get install Libeigen3-dev
$ sudo apt-get install Libflann-dev
$ sudo apt-get install python
$ sudo apt-get in Stall Libusb-1.0-0-dev
$ sudo apt-get install Libudev-dev
$ sudo apt-get install openjdk-6-jdk
$ sudo apt-get Install Freeglut3-dev
$ sudo apt-get install Doxygen
$ sudo apt-get install Graphviz
$ sudo apt-get install Libpng12-dev
$ sudo apt-get install Libgtest-dev
$ sudo apt-get install Libxmu-dev
$ sudo apt-get install Libxi-dev
$ sudo apt-get install Libpcap-dev
$ sudo apt-get install Libqhull-dev
$ sudo apt-get install Lib Vtk5-qt4-dev
$ sudo apt-get install PYTHON-VTK
$ sudo apt-get install Libvtk-java
3, compiling the library
$ cd pcl-trunk
$ mkdir Build
$ cd Build
$ cmake-dcmake_build_type=none-dbuild_gpu=on-dbuild_apps=on-dbuil
D_examples=on. $ make
$ sudo make install
Four, Test PCL
1, the home directory under Pcl-trunk->doc->tutorials->content->sources has PCL routine: Here I choose the Cloud_viewer folder under the Cloud_ Viewer.cpp
2. Create Demo Package
$ cd catkin_ws/src/
$ catkin_create_pkg demo std_msgs Rospy roscpp
3. Copy the Cloud_viewer.cpp file to the demo file, and replace the CmakeList.txt file under the Demo folder with CmakeList.txt under the Cloud_viewer folder.
4. Compile and run cloud_view.cpp source file
$ cd Demo
$ sudo cmake.
$ sudo make
$./cloud_viewer