Closed traversaro closed 3 years ago
The same error appears if the map2d_nws_ros2_msgs
package is built on its own as a single CMake package, so it is probably not directly related to colcon:
cd yarp-ros2/ros2_interfaces_ws/src/map2d_nws_ros2_msgs/
mkdir build
cd build
cmake ..
(ros_galactic) straversaro@IITICUBLAP102:~/yarp-ros2/ros2_interfaces_ws/src/map2d_nws_ros2_msgs/build$ cmake .
-- Found ament_cmake: 1.1.4 (/home/straversaro/mambaforge/envs/ros_galactic/share/ament_cmake/cmake)
-- Using PYTHON_EXECUTABLE: /home/straversaro/mambaforge/envs/ros_galactic/bin/python3
-- Found rclcpp: 9.1.0 (/home/straversaro/mambaforge/envs/ros_galactic/share/rclcpp/cmake)
-- Found rmw_implementation_cmake: 3.3.1 (/home/straversaro/mambaforge/envs/ros_galactic/share/rmw_implementation_cmake/cmake)
CMake Error at /home/straversaro/mambaforge/envs/ros_galactic/share/rmw_implementation_cmake/cmake/get_default_rmw_implementation.cmake:60 (message):
Could not find ROS middleware implementation 'NOTFOUND'. Choose one of the
following:
Call Stack (most recent call first):
/home/straversaro/mambaforge/envs/ros_galactic/share/rmw_implementation/cmake/rmw_implementation-extras.cmake:19 (get_default_rmw_implementation)
/home/straversaro/mambaforge/envs/ros_galactic/share/rmw_implementation/cmake/rmw_implementationConfig.cmake:41 (include)
/home/straversaro/mambaforge/envs/ros_galactic/share/rcl/cmake/ament_cmake_export_dependencies-extras.cmake:21 (find_package)
/home/straversaro/mambaforge/envs/ros_galactic/share/rcl/cmake/rclConfig.cmake:41 (include)
/home/straversaro/mambaforge/envs/ros_galactic/share/libstatistics_collector/cmake/ament_cmake_export_dependencies-extras.cmake:21 (find_package)
/home/straversaro/mambaforge/envs/ros_galactic/share/libstatistics_collector/cmake/libstatistics_collectorConfig.cmake:41 (include)
/home/straversaro/mambaforge/envs/ros_galactic/share/rclcpp/cmake/ament_cmake_export_dependencies-extras.cmake:21 (find_package)
/home/straversaro/mambaforge/envs/ros_galactic/share/rclcpp/cmake/rclcppConfig.cmake:41 (include)
CMakeLists.txt:20 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/straversaro/yarp-ros2/ros2_interfaces_ws/src/map2d_nws_ros2_msgs/build/CMakeFiles/CMakeOutput.log".
A preliminary investigation seems to indicate that something is not working in https://github.com/ros2/rmw/blob/c71e97a670717cbf755627723a6d7ef5d756c4f4/rmw_implementation_cmake/cmake/get_available_rmw_implementations.cmake#L28, probably we should look a bit in how ament_index works to adapt it to the conda case.
Everything compiles fine (except for the fact that /usr/local
is also searched for ament package files) if AMENT_PREFIX_PATH
is set to $CONDA_PREFIX
on *nix (or $CONDA_PREFIX/Library
on Windows, I guess, even if I did not tried). So in a sense this issue should be solved once https://github.com/RoboStack/ros-galactic/issues/5 is solved.
Closing as this is basically a duplicate of https://github.com/RoboStack/ros-galactic/issues/5 .
Evolution of https://github.com/RoboStack/ros-foxy/issues/15 for ROS Galactic.
Installation process
Build command
Build error
Environment (
conda list
):Details about
conda
and system (conda info
):