colcon build error / Ubuntu22.04 humble ros2

Author: h1natqCreated Feb 26, 2024Updated Nov 19, 2025

I got an error when I colcon build cartographer_ros_msgs as follows.

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

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

catkinConfig.cmake
catkin-config.cmake

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

Sorry for my bad English.

Source: cartographer-project/cartographer