Robotics StackExchange | Archived questions

ROS2 colcon build fails on demo pkg docker

Hello,

when I try to build the demos pkg (https://github.com/ros2/demos) I get following error:

Starting >>> actiontutorialsinterfaces Starting >>> dummymapserver Starting >>> dummysensors Starting >>> pendulummsgs Finished <<< dummymapserver [14.6s]
Starting >>> composition Finished <<< dummysensors [15.2s]
Starting >>> demo
nodescpp --- stderr: composition
CMake Error at CMakeLists.txt:15 (find
package): By not providing "Findexampleinterfaces.cmake" in CMAKEMODULEPATH this project has asked CMake to find a package configuration file provided by "exampleinterfaces", 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 "exampleinterfaces" to CMAKEPREFIXPATH or set "exampleinterfacesDIR" to a directory containing one of the above files. If "exampleinterfaces" provides a separate development package or SDK, be sure it has been installed.


Failed <<< composition [ Exited with code 1 ] --- stderr: demonodescpp
CMake Error at CMakeLists.txt:15 (findpackage): By not providing "Findexampleinterfaces.cmake" in CMAKEMODULEPATH 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 "exampleinterfaces" to CMAKEPREFIXPATH or set "exampleinterfacesDIR" to a directory containing one of the above files. If "exampleinterfaces" provides a separate development package or SDK, be sure it has been installed.


Aborted <<< demonodescpp Aborted <<< pendulummsgs
Aborted <<< action
tutorials_interfaces

Summary: 2 packages finished [19.1s] 1 package failed: composition 3 packages aborted: actiontutorialsinterfaces demonodescpp pendulummsgs 2 packages had stderr output: composition demonodes_cpp

Runing on the latest ros:dashing-ros-core-bionic docker image. Steps to reproduce:

source /opt/ros/dashing/setup.bash 
mkdir -p ros2_ws/src
cd ros2_ws/src
git clone https://github.com/ros2/demos
cd ..
colcon build --symlink

Thank you for your help

Edit:

Was missing this git repo: https://github.com/ros2/example_interfaces

Asked by GeorgNo on 2019-08-26 11:53:01 UTC

Comments

how do you install it ?

Asked by phil123456 on 2023-07-27 15:11:31 UTC

Answers