Problema
Ao tentar compilar algum pacote ROS usando colcon build, você vê uma mensagem de erro como
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)Solução
rosunit atualmente não está disponível como pacote apt para ROS jazzy.
Portanto, clone o repositório, compile-o usando colcon e então source install/setup.bash antes de compilar seu pacote.
install_rosunit.sh
git clone https://github.com/ros/ros.git
cd ros/tools/rosunit
colcon build
source install/setup.bashDepois disso (no mesmo shell), compile seu outro pacote usando colcon build novamente.
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