-
Notifications
You must be signed in to change notification settings - Fork 190
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
Comments
I think the version would depend on the current Ubuntu version.
If you use Ubuntu 20.04, you might download the PCL 1.10.0 source.
Canonical releases the PCL by apt with 1.10.0
https://packages.ubuntu.com/source/focal/pcl .
Installing different versions of packages not released by apt will cause
ABI incompatibility and segmentation faults in libraries and executables
that depend on PCL.
2024年4月21日(日) 16:05 Naoaki Kanazawa ***@***.***>:
… 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
<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
<PointCloudLibrary/pcl#2682>
Solution
These problems seem to have been resolved in PCL version 1.9.0, so I was
able to build as follows.
cd
wget https://github.com/PointCloudLibrary/pcl/archive/pcl-1.9.0.tar.gz
tar xvzf pcl-1.9.0.tar.gz
cd pcl-pcl-1.9.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.
—
Reply to this email directly, view it on GitHub
<#2827>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGUARFCR7RSNCTZSZQ6QTDLY6NQLJAVCNFSM6AAAAABGREKF76VHI2DSMVQWIX3LMV43ASLTON2WKOZSGI2TIOJTGYZDQMY>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
--
===========================================
Yoshiki Obinata
The University of Tokyo
Graduate School of Information Science and Technology
Department of Mechano Informatics
2nd grade Ph.D course student
JSK Robotics Laboratory
===========================================
|
When we want to build jsk_pcl_ros with your own cc. @pazeshun |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Related: PointCloudLibrary/pcl#2282
Error pattern 2
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.
If kinfu is successfully executed and there are no problems, I will create a PR.
The text was updated successfully, but these errors were encountered: