Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Install PCL 1.8.0 on Ubuntu 16.04
# Clone latest PCL
sudo apt-get update
sudo apt-get install git
cd ~/Documents
git clone pcl-trunk
ln -s pcl-trunk pcl
cd pcl
# Install prerequisites
sudo apt-get install g++
sudo apt-get install cmake cmake-gui
sudo apt-get install doxygen
sudo apt-get install mpi-default-dev openmpi-bin openmpi-common
sudo apt-get install libflann1.8 libflann-dev
sudo apt-get install libeigen3-dev
sudo apt-get install libboost-all-dev
sudo apt-get install libvtk6-dev libvtk6.2 libvtk6.2-qt
#sudo apt-get install libvtk5.10-qt4 libvtk5.10 libvtk5-dev # I'm not sure if this is necessary.
sudo apt-get install 'libqhull*'
sudo apt-get install libusb-dev
sudo apt-get install libgtest-dev
sudo apt-get install git-core freeglut3-dev pkg-config
sudo apt-get install build-essential libxmu-dev libxi-dev
sudo apt-get install libusb-1.0-0-dev graphviz mono-complete
sudo apt-get install qt-sdk openjdk-9-jdk openjdk-9-jre
sudo apt-get install phonon-backend-gstreamer
sudo apt-get install phonon-backend-vlc
sudo apt-get install libopenni-dev libopenni2-dev
# Compile and install PCL
mkdir release
cd release
sudo make install

This comment has been minimized.

Copy link

dpwls1379 commented Aug 2, 2019

I got an error...
[ 88%] Building NVCC (Device) object gpu/utils/CMakeFiles/pcl_gpu_utils.dir/src/
/home/dpwls/Documents/pcl-trunk/gpu/utils/src/ error: identifier "copy_fields_t" is undefined

/home/dpwls/Documents/pcl-trunk/gpu/utils/src/ error: expected a ";"

/home/dpwls/Documents/pcl-trunk/gpu/utils/src/ error: namespace "pcl::device" has no member "copy_fields_t"

3 errors detected in the compilation of "/tmp/tmpxft_00003abb_00000000-15_repacks.compute_75.cpp1.ii".
CMake Error at (message):
Error generating file

gpu/utils/CMakeFiles/pcl_gpu_utils.dir/build.make:237: recipe for target 'gpu/utils/CMakeFiles/pcl_gpu_utils.dir/src/' failed
make[2]: *** [gpu/utils/CMakeFiles/pcl_gpu_utils.dir/src/] Error 1
CMakeFiles/Makefile2:10243: recipe for target 'gpu/utils/CMakeFiles/pcl_gpu_utils.dir/all' failed
make[1]: *** [gpu/utils/CMakeFiles/pcl_gpu_utils.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2

my computer info : nvidia410, cuda10, ubuntu16.04, opencv310
plz, help me with this problem.


This comment has been minimized.

Copy link

rkhatry commented Aug 28, 2019

@dpwls1379 I solved following the instructions from here: PointCloudLibrary/pcl#2541
"This is probably the reason for the build environment, gcc++ and nvcc do not open c++11 by default, you can add "add_definitions(-std=c++11) set(CUDA_NVCC_FLAGS "-std=c++11")" in CMakeLists.txt.(/home/.../pcl-1.9.1/CMakeLists.txt)
I have tried this way and solved those bottlenecks successfully."


This comment has been minimized.

Copy link

NozomiWyane commented Sep 19, 2019

thank you so much for solving this problem!I have compiled my pcl library on tx2 now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.