ROS2 - Cannot build examples
Hi,
I am trying to build the examples from the tutorials
I did precisely this
mkdir -p ros2_ws/src
cd ros2_ws
git clone https://github.com/ros2/examples src/examples -b foxy
cd src
colcon build --symlink-install
I get this
pi@ros-pi:~/WORK/ros2_ws$ colcon build --symlink-install
Starting >>> examples_rclcpp_async_client
Starting >>> examples_rclcpp_cbg_executor
Starting >>> examples_rclcpp_minimal_action_client
Starting >>> examples_rclcpp_minimal_action_server
--- stderr: examples_rclcpp_minimal_action_client
CMake Error at CMakeLists.txt:14 (find_package):
By not providing "Findexample_interfaces.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
"example_interfaces", but CMake did not find one.
Could not find a package configuration file provided by
"example_interfaces" with any of the following names:
example_interfacesConfig.cmake
example_interfaces-config.cmake
Add the installation prefix of "example_interfaces" to CMAKE_PREFIX_PATH or
set "example_interfaces_DIR" to a directory containing one of the above
files. If "example_interfaces" provides a separate development package or
SDK, be sure it has been installed.
---
Failed <<< examples_rclcpp_minimal_action_client [4.11s, exited with code 1]
Aborted <<< examples_rclcpp_minimal_action_server [4.08s]
Aborted <<< examples_rclcpp_async_client [4.18s]
Aborted <<< examples_rclcpp_cbg_executor [8.65s]
Summary: 0 packages finished [9.83s]
1 package failed: examples_rclcpp_minimal_action_client
3 packages aborted: examples_rclcpp_async_client examples_rclcpp_cbg_executor examples_rclcpp_minimal_action_server
3 packages had stderr output: examples_rclcpp_async_client examples_rclcpp_minimal_action_client examples_rclcpp_minimal_action_server
18 packages not processed