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

[rolling] grid_map_pcl needs PCLConfig.cmake but not included in package.xml #341

Closed
wants to merge 2 commits into from

Conversation

kazuki0824
Copy link

@kazuki0824 kazuki0824 commented Feb 21, 2022

In compile time, it needs PCLConfig.cmake for configuration, which is in libpcl-dev(in rosdep, it is defined as libpcl-all-dev)

On,

  • Ubuntu 20.04
  • Inside a Docker container Docker (ros:foxy)
  • current HEAD on foxy_devel
    ,

I failed to build grid_map_pcl like below:

root@cb0f1bcd71a1:/_build_ws# colcon build
Starting >>> grid_map_cmake_helpers
--- stderr: grid_map_cmake_helpers
CMake Error at CMakeLists.txt:5 (find_package):
  By not providing "Findament_cmake_core.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "ament_cmake_core", but CMake did not find one.

  Could not find a package configuration file provided by "ament_cmake_core"
  with any of the following names:

    ament_cmake_coreConfig.cmake
    ament_cmake_core-config.cmake

  Add the installation prefix of "ament_cmake_core" to CMAKE_PREFIX_PATH or
  set "ament_cmake_core_DIR" to a directory containing one of the above
  files.  If "ament_cmake_core" provides a separate development package or
  SDK, be sure it has been installed.


MattSYoung and others added 2 commits June 29, 2021 09:42
…evel) (ANYbotics#308)

* Replaced pcl_ros dependency with PCL

* Removed PCL version specification

* Removed pcl_ros dependency

* Updated changelog

* Updated package.xml with correct PCL dependency
In compile time, it needs PCLConfig.cmake for configuration, which is in libpcl-dev(in rosdep, it is defined as libpcl-all-dev)
@kazuki0824
Copy link
Author

Maybe this PR is subset of #245 ? Even if not, the topic seems related.

@Ryanf55
Copy link
Collaborator

Ryanf55 commented Feb 1, 2024

Hello,

It appears this is still affecting non-EOL distro's. Do you mind changing the target branch to rolling and rebasing? I would like to get this in.

@kazuki0824
Copy link
Author

Sure. There’s no problem to rebase it. Any actions for me to do?

@Ryanf55
Copy link
Collaborator

Ryanf55 commented Feb 1, 2024

Sure. There’s no problem to rebase it. Any actions for me to do?

Naw, just a rebase, and test it if you have time to make sure the key resolves in rolling. I'll be testing the change manually anyways for the time being because CI is broken.
Thanks for the quick response.

@Ryanf55 Ryanf55 changed the title [foxy] grid_map_pcl needs PCLConfig.cmake but not included in package.xml [rolling] grid_map_pcl needs PCLConfig.cmake but not included in package.xml Feb 1, 2024
@Ryanf55
Copy link
Collaborator

Ryanf55 commented Feb 2, 2024

Looks like rolling already depends on the dev version of PCL, which is a bit overly bloated, but solves this issue.

<depend>libpcl-all-dev</depend>

Same with humble:

<depend>libpcl-all-dev</depend>

A more optimal way to do dependencies is exactly what you did. I would be happy to accept this change in rolling which should reduce runtime dependency bloat.

@Ryanf55 Ryanf55 added this to the 2.2.0 milestone Feb 3, 2024
@Ryanf55 Ryanf55 changed the base branch from foxy-devel to rolling February 12, 2024 04:01
@Ryanf55
Copy link
Collaborator

Ryanf55 commented Feb 12, 2024

See #423 for a rebased and correct fix.

@Ryanf55 Ryanf55 closed this Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ros2 Affects ROS 2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants