Wie man ROS-Fehler behebt: missing rosunitConfig.cmake
Problem
Beim Versuch, ein ROS-Paket mit colcon build zu bauen, sehen Sie eine Fehlermeldung wie
cmake_error_rosunit.txt
CMake Error at /home/uli/dev/Versatile/catkin/install/catkin/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by "rosunit" with any
of the following names:
rosunitConfig.cmake
rosunit-config.cmake
Add the installation prefix of "rosunit" to CMAKE_PREFIX_PATH or set
"rosunit_DIR" to a directory containing one of the above files. If
"rosunit" provides a separate development package or SDK, be sure it has
been installed.
Call Stack (most recent call first):
CMakeLists.txt:8 (find_package)Lösung
rosunit ist derzeit nicht als apt-Paket für ROS jazzy verfügbar.
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.
install_rosunit.sh
git clone https://github.com/ros/ros.git
cd ros/tools/rosunit
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