noshluk2 / ros2_learners

This repository is for ROS2 future developers . This will support everyone to become a good developer .
MIT License
40 stars 14 forks source link

colcon build error for [point_cloud_perception] packages #4

Closed KimDoYoung1997 closed 1 year ago

KimDoYoung1997 commented 1 year ago

hello luqman. I'm watching your video well. Thank you a lot.

https://www.youtube.com/watch?v=VCobOzw2kHM

when I followed your video, i got some build issues. can you help me?

systme environment : OS :Ubuntu 20.04 ROS: FOXY workspace : ros2_ws

and I command below

$ sudo apt install libpcl-dev $ sudo apt-get install ros-foxy-pcl-ros $ sudo apt-get install ros-foxy-pcl-conversion $ cd ~/ros2_ws/src $ git clone https://github.com/noshluk2/ros2_learners.git $ cd ~/ros2_ws $ rosdep install --from-paths src --ignore-src -r -y $ colcon build --symlink-install

when I colcon build, I got this error. image Starting >>> navigation_ Starting >>> nodes Starting >>> point_cloud_perception --- stderr: point_cloud_perception
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/pcl/PCLConfig.cmake:62 (message): common is required but boost was not found Call Stack (most recent call first): /usr/lib/x86_64-linux-gnu/cmake/pcl/PCLConfig.cmake:367 (pcl_report_not_found) /usr/lib/x86_64-linux-gnu/cmake/pcl/PCLConfig.cmake:551 (find_external_library) CMakeLists.txt:10 (find_package)


Failed <<< point_cloudperception [0.17s, exited with code 1] Aborted <<< navigation [0.38s]
Aborted <<< nodes [0.38s]

Summary: 0 packages finished [0.48s] 1 package failed: point_cloudperception 2 packages aborted: navigation nodes 1 package had stderr output: point_cloud_perception

I think pcl library is not compatible with my system..

how can i fix it?

thank you sincerely for your lecture.

noshluk2 commented 1 year ago

Kindly run this command as well

sudo apt-get install pcl-tools
KimDoYoung1997 commented 1 year ago

Thank you for kind reply lugman!

actually I already remove that package and resintall pcl-tools.

so I tried this another computer which ros version is foxy, but error is same..

Im sorry to bother you.

Thank you.

-----Original Message----- From: "Muhammad @.> To: @.>; Cc: @.>; @.>; Sent: 2023-02-07 (화) 13:48:06 (GMT+09:00) Subject: Re: [noshluk2/ros2_learners] colcon build error for [point_cloud_perception] packages (Issue #4)

Kindly run this command as well sudo apt-get install pcl-tools — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

JPJSea commented 1 year ago

Your issue is related to cmake not being able to find Boost and nothing to do with reinstalling pcl-tools

The following information in your screenshot is relevent:

common is required but boost was not found

If you have boost installed on your system, CMake is probably looking for it in the wrong place. This may help you: https://github.com/PointCloudLibrary/pcl/issues/5052#issuecomment-984042504

noshluk2 commented 1 year ago

@KimDoYoung1997 is it now solved after installing boost library?

KimDoYoung1997 commented 1 year ago

@noshluk2 hi Im sorry to be late.. actually not yet. so I decided to use new computer and then it is solved..