Wie man ROS2-Fehler behebt: catkinConfig.cmake
Problem
Beim Versuch, ein ROS-Paket mit colcon build zu bauen, sehen Sie eine Fehlermeldung wie
cmake_error_catkin.txt
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:
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.Lösung
Catkin ist derzeit nicht in einer Form verfügbar, die für die Installation aus den offiziellen ROS2-Quellen geeignet ist.
Klonen Sie daher das Repo, bauen Sie es mit colcon und führen Sie dann source install/setup.bash aus, bevor Sie Ihr Paket bauen.
build_catkin.sh
git clone https://github.com/ros/catkin.git
cd catkin
colcon build
source install/setup.bashDanach (in der gleichen Shell) bauen Sie Ihr anderes Paket erneut mit colcon build.
Check out similar posts by category:
ROS
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow