-
Notifications
You must be signed in to change notification settings - Fork 193
Open
Description
I tried to do "Install PCL from source with CUDA" on https://jsk-docs.readthedocs.io/projects/jsk_recognition/en/latest/install_pcl_from_source.html to use Kinfu, but errors occurred.
Error pattern 1
/home/kanazawa/pcl-pcl-1.8.1/segmentation/include/pcl/segmentation/plane_coefficient_comparator.h:144:17: error: invalid initialization of reference of type 'const std::vector<float>&' from expression of type 'const boost::shared_ptr<std::vector<float> >'
144 | return (plane_coeff_d_);
| ~^~~~~~~~~~~~~~~
Related: PointCloudLibrary/pcl#2282
Error pattern 2
/home/kanazawa/pcl-pcl-1.8.1/visualization/src/pcl_visualizer.cpp:103:10: fatal error: boost/uuid/sha1.hpp: No such file or directory
103 | #include <boost/uuid/sha1.hpp>
| ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Related: PointCloudLibrary/pcl#2682
Solution
These problems seem to have been resolved in PCL version >=1.9.0 and in noetic 1.10.0 is suitable, so I was able to build as follows.
cd
wget https://github.com/PointCloudLibrary/pcl/archive/pcl-1.10.0.tar.gz
tar xvzf pcl-1.10.0.tar.gz
cd pcl-pcl-1.10.0
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DWITH_CUDA:BOOL=ON
make -j 4
sudo make install
If kinfu is successfully executed and there are no problems, I will create a PR.
Metadata
Metadata
Assignees
Labels
No labels