Skip to content

colcon build giving cmake error #97

Description

@hannahwalk

Under build at step 5, I'm getting this error:

CMake Error at CMakeLists.txt:9 (find_package):
By not providing "Findament_cmake,cmake" in CMAKE_MODULE_PATH this project has asked Make to find a package configuration file provided by
"ament_cmake", but Make did not find one.

Could not find a package configuration file provided by "ament_cmake" with any of the following names:
ament_cmakeConfig.cmake
ament_cmake-config.cmake

Add the installation prefix of "ament_cmake" to CMAKE_PREFIX_ PATH or set
"ament_make_DIR" to a directory containing one of the above files. If
"ament_cake" provides a separate development package or SDK, be sure it has been installed.


For ROS2 I've installed Ubuntu Linux - Jammy Jellyfish (22.04)
deb packages (recommended)
and ran the talker-listener example with no issues.

For Gazebo Garden I installed Gazebo Fortress (recommended if using ROS 2 Humble).

Initially when running colcon build I had an error that my cmake version 3.22 was old and I needed at least 3.28. I updated Cmake (to 4.0) and am still getting the error above.

I've tried to be thorough by am unsure if I am missing a step somewhere or if this issue is ROS or gazebo specific and I should post the issue to their github. Any help is greatly appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions