micro-ROS / micro-ROS-Agent

ROS 2 package using Micro XRCE-DDS Agent.
Apache License 2.0
97 stars 51 forks source link

Unable to build micro-ros-agent : DDS_CDR #229

Closed n0sc3tipsum closed 3 weeks ago

n0sc3tipsum commented 3 weeks ago

Issue template

Steps to reproduce the issue

Follow the steps in installing micro_ros shown here : https://micro.ros.org/docs/tutorials/core/first_application_linux/

Start the build process

Expected behavior

Package builds successfully

Actual behavior

Get the following output :

Starting >>> rosidl_typesupport_microxrcedds_c_tests

--- stderr: micro_ros_agent                                                                                                                    

Cloning into 'xrceagent'...

Switched to a new branch 'ros2'

HEAD is now at c25243c Enable Domain Override on Reference and XML Participant (#351)

CMake Warning (dev) at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:438 (message):

  The package name passed to `find_package_handle_standard_args` (tinyxml2)

  does not match the name of the calling package (TinyXML2).  This can lead

  to problems in calling code that expects `find_package` result variables

  (e.g., `_FOUND`) to follow a certain pattern.

Call Stack (most recent call first):

  cmake/modules/FindTinyXML2.cmake:40 (find_package_handle_standard_args)

  /opt/ros/humble/share/fastrtps/cmake/fastrtps-config.cmake:51 (find_package)

  CMakeLists.txt:153 (find_package)

This warning is for project developers.  Use -Wno-dev to suppress it.

/home/n0sc3tipsum/microros_ws/src/uros/micro-ROS-Agent/micro_ros_agent/src/agent/graph_manager/graph_typesupport.cpp: In member function ‘virtual bool uros::agent::graph_manager::ParticipantEntitiesInfoTypeSupport::serialize(void*, eprosima::fastrtps::rtps::SerializedPayload_t*)’:

/home/n0sc3tipsum/microros_ws/src/uros/micro-ROS-Agent/micro_ros_agent/src/agent/graph_manager/graph_typesupport.cpp:57:33: error: ‘DDS_CDR’ is not a member of ‘eprosima::fastcdr::Cdr’

   57 |         eprosima::fastcdr::Cdr::DDS_CDR);

      |                                 ^~~~~~~

/home/n0sc3tipsum/microros_ws/src/uros/micro-ROS-Agent/micro_ros_agent/src/agent/graph_manager/graph_typesupport.cpp:64:54: error: ‘class eprosima::fastcdr::Cdr’ has no member named ‘getSerializedDataLength’; did you mean ‘get_serialized_data_length’?

   64 |         payload->length = static_cast<uint32_t>(scdr.getSerializedDataLength());

      |                                                      ^~~~~~~~~~~~~~~~~~~~~~~

      |                                                      get_serialized_data_length

/home/n0sc3tipsum/microros_ws/src/uros/micro-ROS-Agent/micro_ros_agent/src/agent/graph_manager/graph_typesupport.cpp: In member function ‘virtual bool uros::agent::graph_manager::ParticipantEntitiesInfoTypeSupport::deserialize(eprosima::fastrtps::rtps::SerializedPayload_t*, void*)’:

/home/n0sc3tipsum/microros_ws/src/uros/micro-ROS-Agent/micro_ros_agent/src/agent/graph_manager/graph_typesupport.cpp:80:33: error: ‘DDS_CDR’ is not a member of ‘eprosima::fastcdr::Cdr’

   80 |         eprosima::fastcdr::Cdr::DDS_CDR);

      |                                 ^~~~~~~

/home/n0sc3tipsum/microros_ws/src/uros/micro-ROS-Agent/micro_ros_agent/src/agent/graph_manager/graph_typesupport.cpp: In member function ‘virtual bool uros::agent::graph_manager::MicrorosGraphInfoTypeSupport::serialize(void*, eprosima::fastrtps::rtps::SerializedPayload_t*)’:

/home/n0sc3tipsum/microros_ws/src/uros/micro-ROS-Agent/micro_ros_agent/src/agent/graph_manager/graph_typesupport.cpp:149:33: error: ‘DDS_CDR’ is not a member of ‘eprosima::fastcdr::Cdr’

  149 |         eprosima::fastcdr::Cdr::DDS_CDR);

      |                                 ^~~~~~~

/home/n0sc3tipsum/microros_ws/src/uros/micro-ROS-Agent/micro_ros_agent/src/agent/graph_manager/graph_typesupport.cpp:156:54: error: ‘class eprosima::fastcdr::Cdr’ has no member named ‘getSerializedDataLength’; did you mean ‘get_serialized_data_length’?

  156 |         payload->length = static_cast<uint32_t>(scdr.getSerializedDataLength());

      |                                                      ^~~~~~~~~~~~~~~~~~~~~~~

      |                                                      get_serialized_data_length

/home/n0sc3tipsum/microros_ws/src/uros/micro-ROS-Agent/micro_ros_agent/src/agent/graph_manager/graph_typesupport.cpp: In member function ‘virtual bool uros::agent::graph_manager::MicrorosGraphInfoTypeSupport::deserialize(eprosima::fastrtps::rtps::SerializedPayload_t*, void*)’:

/home/n0sc3tipsum/microros_ws/src/uros/micro-ROS-Agent/micro_ros_agent/src/agent/graph_manager/graph_typesupport.cpp:172:33: error: ‘DDS_CDR’ is not a member of ‘eprosima::fastcdr::Cdr’

  172 |         eprosima::fastcdr::Cdr::DDS_CDR);

      |                                 ^~~~~~~

gmake[5]: *** [CMakeFiles/micro_ros_agent.dir/build.make:118: CMakeFiles/micro_ros_agent.dir/src/agent/graph_manager/graph_typesupport.cpp.o] Error 1

gmake[4]: *** [CMakeFiles/Makefile2:137: CMakeFiles/micro_ros_agent.dir/all] Error 2

gmake[3]: *** [Makefile:146: all] Error 2

gmake[2]: *** [CMakeFiles/micro_ros_agent.dir/build.make:86: micro_ros_agent-prefix/src/micro_ros_agent-stamp/micro_ros_agent-build] Error 2

gmake[1]: *** [CMakeFiles/Makefile2:111: CMakeFiles/micro_ros_agent.dir/all] Error 2

gmake: *** [Makefile:91: all] Error 2

---

Failed   <<< micro_ros_agent [7min 39s, exited with code 2]

Aborted  <<< rosidl_typesupport_microxrcedds_c_tests [21.7s]         

Additional information

pablogs9 commented 3 weeks ago

Duplicated https://github.com/micro-ROS/micro_ros_setup/issues/705