Tuesday, July 22, 2014

Install PCL in Linux

The bottom line is that in order to install pcl, you have to install boost

The command for boost installation is:

sudo apt-get install libboost-all-dev
 
The lib files can usually be found at:
 
 /usr/lib or usr/lib/x86_64-linux-gpu

After that, you can install PCL,

the command is (assume its ubuntu)

sudo add-apt-repository ppa:v-launchpad-jochen-sprickerhof-de/pcl
sudo apt-get update
sudo apt-get install libpcl-all
  
 
Then, suppose you are using codeblock

You need to add search directories of include (under global compiler settings):

/usr/include/pcl-1.7
/usr/include/pcl-1.7/pcl/surface
/usr/include/eigen3
/usr/include/vtk-5.8

and add link libraries (under linker settings):

/usr/lib/libvtk*
/usr/lib/x86_64-linux-gnu/libpthread.so
/usr/lib/x86_64-linux-gnu/libboost_thread.so
/usr/lib/libpcl*
/usr/lib/x86_64-linux-gnu/libboost_system.so

No comments:

Post a Comment