Colcon could not find a package configuration file provided by "catkin"

asked 2023-03-17 09:57:24 -0500

Nopas gravatar image

updated 2023-03-29 15:50:36 -0500


General information about my setup :

Laptop with Ubuntu 22.04.2 LTS x86 ; ROS desktop has been installed.

user@ROS:~/catkin_ws$ env | grep ROS


When trying to build ydlidar ros package (here :, it can't find configuration file catkinconfig.cmake

user@ROS:~/catkin_ws$ source /opt/ros/humble/setup.bash
user@ROS:~/catkin_ws$ colcon build --symlink-install

Output :

Starting >>> ydlidar 
--- stderr: ydlidar                         
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):

      Compatibility with CMake < 2.8.12 will be removed from a future version of

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

CMake Error at CMakeLists.txt:6 (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:


  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.

Failed   <<< ydlidar [0.20s, exited with code 1]

Summary: 0 packages finished [0.96s]
  1 package failed: ydlidar
  1 package had stderr output: ydlidar

Note that the package's instructions are to use catkin_make, but command isn't found.


Edit and Solution, In case this can help someone else :

I'm using ros2 but this package was for ros1. There is one for ROS2 here that isn't linked by the company's website : (EAIBOT seems to be the old name).

Yet, this driver is full of compilation errors that you'll have to correct by yourself.

edit retag flag offensive close merge delete