Skip to content

Compile Error when BUILD_TESTING=ON #72

Description

@felixf4xu

Hi,

I would like to try to run the test code, when I build

colcon build --merge-install --symlink-install --event-handlers console_direct+ --cmake-args -Wno-dev -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=ON --packages-select rosidl_typeadapter_protobuf_test

and I have this errors:

src/rosidl_typesupport_protobuf/rosidl_typeadapter_protobuf_test/test/subscribe_basic_types.cpp:21:10: fatal error: test_msgs/rosidl_adapter_proto__visibility_control.h: No such file or directory
   21 | #include "test_msgs/rosidl_adapter_proto__visibility_control.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I'm not sure where to find the rosidl_adapter_proto__visibility_control.h file, is it in ROS installation folder? I can't find it there.

Is it generated during compiling, but to which folder?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions