You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--- stderr: canopen_core
In file included from /root/target_ws/src/ros2_canopen/canopen_core/include/canopen_core/device.hpp:27,
from /root/target_ws/src/ros2_canopen/canopen_core/include/canopen_core/master_node.hpp:23,
from /root/target_ws/src/ros2_canopen/canopen_core/src/master_node.cpp:1:
/root/target_ws/src/ros2_canopen/canopen_core/include/canopen_core/configuration_manager.hpp:24:10: fatal error: yaml-cpp/yaml.h: No such file or directory
24 | #include "yaml-cpp/yaml.h"
| ^~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/master_node.dir/build.make:63: CMakeFiles/master_node.dir/src/master_node.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:192: CMakeFiles/master_node.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/root/target_ws/src/ros2_canopen/canopen_core/src/lely_master_bridge.cpp: In member function ‘std::future<bool> ros2_canopen::LelyMasterBridge::async_write_nmt(uint8_t, uint8_t)’:
/root/target_ws/src/ros2_canopen/canopen_core/src/lely_master_bridge.cpp:224:5: warning: no return statement in function returning non-void [-Wreturn-type]
224 | }
| ^
make: *** [Makefile:141: all] Error 2
See ros-industrial/ros2_canopen#18 and related github actions ouput on foxy and galactic dockers for more details.
Interestingly, this behaviour does not occur on all systems. We have manually installed systems where it does not occur.
The workaround to the problem is manually adding yaml_cpp_vendor_INCLUDE_DIRS to include_dirs().
Expected behavior
yaml_cpp_vendor package behaves as every other package and can be added as dependency without additional efforts.
Actual behavior
When using find_package on yaml_cpp_vendor and adding it with ament_target_dependencies, yaml-vendor/yaml.h is not found.
Could this be realted to #16 maybe? As this is not consistent throughout every manually installed system we have.
The text was updated successfully, but these errors were encountered:
Bug report
When including yaml_cpp_vendor as Package dependency with ament_cmake package.
Required Info:
Operating System: Ubuntu 20.04
Installation type: binaries
Version or commit hash: galactic & foxy latest dockers
Client library (if applicable): rclcpp
Steps to reproduce:
In header file include yaml-cpp/yaml.h
In CMakeLists.txt find_package and add as target dependency.
Resulting compiler error:
See ros-industrial/ros2_canopen#18 and related github actions ouput on foxy and galactic dockers for more details.
Interestingly, this behaviour does not occur on all systems. We have manually installed systems where it does not occur.
The workaround to the problem is manually adding yaml_cpp_vendor_INCLUDE_DIRS to include_dirs().
Expected behavior
yaml_cpp_vendor package behaves as every other package and can be added as dependency without additional efforts.
Actual behavior
When using find_package on yaml_cpp_vendor and adding it with ament_target_dependencies, yaml-vendor/yaml.h is not found.
Could this be realted to #16 maybe? As this is not consistent throughout every manually installed system we have.
The text was updated successfully, but these errors were encountered: