Skip to content

Errors when building the package #5

@mc13756

Description

@mc13756

Hello.

I tried to build the package with: colcon build and I get this error:

CMake Error at /opt/ros/foxy/share/rosidl_cmake/cmake/rosidl_generate_interfaces.cmake:229 (message):
Packages installing interfaces must include
'<member_of_group>rosidl_interface_packages</member_of_group>' in their
package.xml
Call Stack (most recent call first):
CMakeLists.txt:15 (rosidl_generate_interfaces)

When I add the <member_of_group>rosidl_interface_packages</member_of_group> in the package.xml of the ros2socketcan_bridge package OR in the package.xml of the can_msgs package I get this errors, that says that the line should not be added:

Error(s):

  • The manifest of package "ros2socketcan_bridge" (with format version 2) must not contain the following tags: member_of_group
    Starting >>> can_msgs
    --- stderr: can_msgs
    CMake Error at /opt/ros/foxy/share/rosidl_cmake/cmake/rosidl_generate_interfaces.cmake:229 (message):
    Packages installing interfaces must include
    '<member_of_group>rosidl_interface_packages</member_of_group>' in their
    package.xml
    Call Stack (most recent call first):
    CMakeLists.txt:15 (rosidl_generate_interfaces)

Then I tried to build only the ros2socketcan_bridge package with colcon: colcon build --packages-select ros2socketcan_bridge, and I get this error:

CMake Error at CMakeLists.txt:22 (find_package):
By not providing "Findcan_msgs.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "can_msgs",
but CMake did not find one.

Could not find a package configuration file provided by "can_msgs" with any
of the following names:

can_msgsConfig.cmake
can_msgs-config.cmake

Add the installation prefix of "can_msgs" to CMAKE_PREFIX_PATH or set
"can_msgs_DIR" to a directory containing one of the above files. If
"can_msgs" provides a separate development package or SDK, be sure it has
been installed.

And when I try with the: ament build --only packages ros2socketcan_bridge I get: ament: command not fould.
But it should work since colcon is based on the ament library, right?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions