1. Preinstall dependency libraries
sudo add-apt-repository ppa:v-launchpad-jochen-sprickerhof-de/pcl
sudo apt-get update
sudo apt-get install libpcl-dev
Copy the code

Note: If you install libpcl-all in step 3, you will be prompted that the libpcl-all software package cannot be located. Update: there is no Release file in the PPA repository. This problem can be ignored. If the install fails, run the update again and install.

  1. Install the photo library

PCL has a real-time update trunk version and a Release version. You can install either one. The trunk version may not be stable. Install PCL Release Releases · PointCloudLibrary/ PCL · GitHub download and decompress it: tar -xvf source.tar

cd pcl && mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j2
sudo make -j2 install
Copy the code

Make – J2 I executed from 10:00 a.m. to 4:00 p.m., the NANO of 2G memory is really hurt, fortunately, there was no error in the installation process, the mentality did not bomb senior said do not use J2, directly run make, the choice between memory and CPU or a little more memory ORz, did not practice, I do not know whether the effect is better

  1. The test photo

I can directly use the four classic examples of PCL routines I learned

If you want to explore your own ⬇️

I am using the Point Cloud library PCLS learning tutorial in the routine, at the bottom of the clone warehouse lot – LiveStockShapeAnalysis/Point – the Cloud – Processing – example: Enter any folder with.cpp (with luck, some routines don’t run).

Recommendation Chapter 5

  1. cloud_viewer
  2. plotter
mkdir build && cd build
cmake ..
make
Copy the code

I’m just going to comment out the boost thread part at the end, Undefined reference to ‘boost::this_thread::hiden::sleep_until(timespec Const $_Dbojuedzw’s blog -CSDN blog

Resources

  • Ubuntu Under Point Cloud Library (PCL) installation _ Feel the stone punt -CSDN blog