Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error in Install PCL from source #2827

Open
Kanazawanaoaki opened this issue Apr 21, 2024 · 2 comments
Open

Build error in Install PCL from source #2827

Kanazawanaoaki opened this issue Apr 21, 2024 · 2 comments

Comments

@Kanazawanaoaki
Copy link
Contributor

Kanazawanaoaki commented Apr 21, 2024

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.

@mqcmd196
Copy link
Member

mqcmd196 commented Apr 21, 2024 via email

@knorth55
Copy link
Member

When we want to build jsk_pcl_ros with your own PCL, you need to carefully check PCL version match.
ldd libjsk_pcl_ros.so | grep pcl
At least, we need to build these packages when we use PCL 1.8 on indigo or kinetic, i remember.

cc. @pazeshun
https://github.com/start-jsk/jsk_apc/blob/a468d3e44b3964a69faa372d9fe141b72ab13f94/fc.rosinstall.kinetic#L21-L32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants