ubuntu14.04 Installing the PCL

Source: Internet
Author: User
Tags git clone

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  

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.