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

fix(build): add missing eigen dependency #544

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions velodyne_pointcloud/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
<depend>tf2_ros</depend>
<depend>velodyne_msgs</depend>
<depend>yaml-cpp</depend>
<depend>eigen</depend>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<depend>eigen</depend>
<depend>eigen</depend>
<build_depend>pkg-config</build_depend>

I think that <build_depend>pkg-config</build_depend> should be added too. Without it, I'm getting this error:

...
> -- Found tf2_ros: 0.25.6 (/nix/store/6pxj2y6qkl5wlfmhjypkb9j4j95pmij9-ros-humble-tf2-ros-0.25.6-r1/share/tf2_ros/cmake)
> -- Found velodyne_msgs: 2.4.0 (/nix/store/xm5qphp0mqs8dbq14328g25ph8fys0im-ros-rolling-velodyne-msgs-2.4.0/share/velodyne_msgs/cmake)
> CMake Error at /nix/store/jacf2kn4dfj99c3ywbvfyg6w53xvxsfl-cmake-3.27.8/share/cmake-3.27/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
>   Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
> Call Stack (most recent call first):
>   /nix/store/jacf2kn4dfj99c3ywbvfyg6w53xvxsfl-cmake-3.27.8/share/cmake-3.27/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
>   /nix/store/jacf2kn4dfj99c3ywbvfyg6w53xvxsfl-cmake-3.27.8/share/cmake-3.27/Modules/FindPkgConfig.cmake:99 (find_package_handle_standard_args)
>   CMakeLists.txt:29 (find_package)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, you are correct that we also need pkg-config here.

That said, this should be temporary, as nowadays we should be able to find yaml-cpp with pure CMake. But that will be a separate PR.


<test_depend>ament_cmake_gtest</test_depend>
<test_depend>ament_lint_auto</test_depend>
Expand Down