ros2 / rmw_cyclonedds

ROS 2 RMW layer for Eclipse Cyclone DDS
Apache License 2.0
108 stars 89 forks source link

colcon rmw_cyclonedds compile failed! #396

Closed fengtuo58 closed 2 years ago

fengtuo58 commented 2 years ago

Bug report

Required Info:

Steps to reproduce issue

~/ros2_ws$ colcon build --symlink-install
Starting >>> iceoryx_hoofs
Finished <<< iceoryx_hoofs [0.36s]                    
Starting >>> iceoryx_posh
Finished <<< iceoryx_posh [0.63s]                     
Starting >>> iceoryx_binding_c
Finished <<< iceoryx_binding_c [0.26s]                     
Starting >>> cyclonedds
Finished <<< cyclonedds [0.39s]                    
Starting >>> rmw_cyclonedds_cpp
--- stderr: rmw_cyclonedds_cpp                            
/home/user/ros2_ws/src/ros2/rmw_cyclonedds/rmw_cyclonedds_cpp/src/rmw_node.cpp:45:10: fatal error: rmw/features.h: No such file or directory
   45 | #include "rmw/features.h"
      |          ^~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/rmw_cyclonedds_cpp.dir/build.make:76: CMakeFiles/rmw_cyclonedds_cpp.dir/src/rmw_node.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:78: CMakeFiles/rmw_cyclonedds_cpp.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
---
Failed   <<< rmw_cyclonedds_cpp [0.20s, exited with code 2]

Summary: 4 packages finished [2.07s]
  1 package failed: rmw_cyclonedds_cpp
  1 package had stderr output: rmw_cyclonedds_cpp

Expected behavior

Actual behavior

Additional information


Feature request

Feature description

Implementation considerations

fengtuo58 commented 2 years ago

i exec "sudo find / -name features.h" there no features.h in rmw dir, anyone knows?

clalancette commented 2 years ago

Which ROS 2 distribution are you using? You can only compile the head of this repository if you are using Rolling.

fengtuo58 commented 2 years ago

@clalancette galactic

fengtuo58 commented 2 years ago

I flollow this url(https://docs.ros.org/en/galactic/Installation/DDS-Implementations/Working-with-Eclipse-CycloneDDS.html) to build from source code

clalancette commented 2 years ago

Yeah, for Galactic you need to use the galactic branch to compile. Otherwise it won't work.

Separately, we should update that documentation page to point to the correct branch. I'll open a PR to do that.

clalancette commented 2 years ago

See https://github.com/ros2/ros2_documentation/pull/2721 .

fengtuo58 commented 2 years ago

@clalancette thanks