Skip to content

Instantly share code, notes, and snippets.

@IgniparousTempest
Last active June 24, 2024 08:08
Show Gist options
  • Save IgniparousTempest/ce5fadbe742526d10d6bdbf15c3a3fe7 to your computer and use it in GitHub Desktop.
Save IgniparousTempest/ce5fadbe742526d10d6bdbf15c3a3fe7 to your computer and use it in GitHub Desktop.
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 https://github.com/PointCloudLibrary/pcl.git 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
cmake -DCMAKE_BUILD_TYPE=None -DBUILD_GPU=ON -DBUILD_apps=ON -DBUILD_examples=ON ..
make
sudo make install
@lchop
Copy link

lchop commented Mar 30, 2020

Hello I try to build using you file: I get this error on Ubuntu 16.04 Can you help me ?
home/l/Documents/pcl/gpu/utils/src/repacks.cu(84): error: identifier "copy_fields_t" is undefined

/home/l/Documents/pcl/gpu/utils/src/repacks.cu(84): error: expected a ";"

/home/l/Documents/pcl/gpu/utils/src/repacks.cu(96): error: namespace "pcl::device" has no member "copy_fields_t"

3 errors detected in the compilation of "/tmp/tmpxft_00002747_00000000-15_repacks.compute_75.cpp1.ii".
CMake Error at pcl_gpu_utils_generated_repacks.cu.o.cmake:268 (message):
Error generating file
/home/l/Documents/pcl/release/gpu/utils/CMakeFiles/pcl_gpu_utils.dir/src/./pcl_gpu_utils_generated_repacks.cu.o

gpu/utils/CMakeFiles/pcl_gpu_utils.dir/build.make:237: recipe for target 'gpu/utils/CMakeFiles/pcl_gpu_utils.dir/src/pcl_gpu_utils_generated_repacks.cu.o' failed
make[2]: *** [gpu/utils/CMakeFiles/pcl_gpu_utils.dir/src/pcl_gpu_utils_generated_repacks.cu.o] Error 1
CMakeFiles/Makefile2:3493: 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

@goktugyildirim
Copy link

Hello, I faced this error. How can I solve it? My system is Ubuntu 18.04

/usr/lib/x86_64-linux-gnu/libSM.so: undefined reference to uuid_generate@UUID_1.0' /usr/lib/x86_64-linux-gnu/libSM.so: undefined reference to uuid_unparse_lower@UUID_1.0'
collect2: error: ld returned 1 exit status
apps/CMakeFiles/pcl_ni_trajkovic.dir/build.make:186: recipe for target 'bin/pcl_ni_trajkovic' failed
make[2]: *** [bin/pcl_ni_trajkovic] Error 1
CMakeFiles/Makefile2:1863: recipe for target 'apps/CMakeFiles/pcl_ni_trajkovic.dir/all' failed
make[1]: *** [apps/CMakeFiles/pcl_ni_trajkovic.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2

@dopeboy
Copy link

dopeboy commented Sep 3, 2020

If it's helpful to anyone, I needed sudo apt install libflann-dev too. Running 20.04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment