ROS-TCP-Endpoint icon indicating copy to clipboard operation
ROS-TCP-Endpoint copied to clipboard

ROS2 windows error : CMake Error at CMakeLists.txt:4 (find_package)

Open dhananjayrajmane opened this issue 3 years ago • 4 comments

D:\ros2\ROS-TCP-Endpoint>colcon build Starting >>> ros_tcp_endpoint --- stderr: ros_tcp_endpoint CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 2.8.12 will be removed from a future version of CMake.

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

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


Failed <<< ros_tcp_endpoint [14.7s, exited with code 1]

Summary: 0 packages finished [15.1s] 1 package failed: ros_tcp_endpoint 1 package had stderr output: ros_tcp_endpoint

dhananjayrajmane avatar Oct 14 '22 06:10 dhananjayrajmane

You should clone the dev-ros2 branch for ROS 2

bcanozter avatar Dec 16 '22 19:12 bcanozter

You should clone the dev-ros2 branch for ROS 2

How should I do, if I installed ROS2 by apt install?

LiangHuangBC avatar Oct 05 '23 18:10 LiangHuangBC

Cloned dev-ros2 and it is working~~~

LiangHuangBC avatar Oct 05 '23 18:10 LiangHuangBC