Unable to build with the lastest ros2_core.
Closed this issue · 0 comments
congliu0913 commented
Operating environment:
- ubuntu18.04
- ros2_core master branch(20190520)
- openvino_R5
- librealsense 2.17.1
- opencv 3.4.2
- DDS fastrtps
ros2_openvino_toolkit
devel branch ff542bd
Log information
[Processing: dynamic_vino_lib]
--- stderr: dynamic_vino_lib
/home/intel/openvino_ws/src/ros2_openvino_toolkit/dynamic_vino_lib/src/inputs/realsense_camera_topic.cpp: In member function ‘virtual bool Input::RealSenseCameraTopic::initialize()’:
/home/intel/openvino_ws/src/ros2_openvino_toolkit/dynamic_vino_lib/src/inputs/realsense_camera_topic.cpp:39:70: error: ‘std::shared_ptr<SubscriptionT> rclcpp::Node::create_subscription(const string&, CallbackT&&, const rmw_qos_profile_t&, rclcpp::callback_group::CallbackGroup::SharedPtr, bool, typename rclcpp::message_memory_strategy::MessageMemoryStrategy<typename rclcpp::subscription_traits::has_message_type<CallbackT>::type, AllocatorT>::SharedPtr, std::shared_ptr<PublisherT>) [with MessageT = sensor_msgs::msg::Image_<std::allocator<void> >; CallbackT = std::_Bind<void (Input::RealSenseCameraTopic::*(Input::RealSenseCameraTopic*, std::_Placeholder<1>))(std::shared_ptr<sensor_msgs::msg::Image_<std::allocator<void> > >)>; Alloc = std::allocator<void>; SubscriptionT = rclcpp::Subscription<sensor_msgs::msg::Image_<std::allocator<void> > >; std::__cxx11::string = std::__cxx11::basic_string<char>; rmw_qos_profile_t = rmw_qos_profile_t; rclcpp::callback_group::CallbackGroup::SharedPtr = std::shared_ptr<rclcpp::callback_group::CallbackGroup>; typename rclcpp::message_memory_strategy::MessageMemoryStrategy<typename rclcpp::subscription_traits::has_message_type<CallbackT>::type, AllocatorT>::SharedPtr = std::shared_ptr<rclcpp::message_memory_strategy::MessageMemoryStrategy<sensor_msgs::msg::Image_<std::allocator<void> >, std::allocator<void> > >]’ is deprecated: use create_subscription(const std::string &, const rclcpp::QoS &, CallbackT, ...) instead [-Werror=deprecated-declarations]
std::bind(&RealSenseCameraTopic::cb, this, std::placeholders::_1));
^
In file included from /home/intel/ros2_ws/install/rclcpp/include/rclcpp/node.hpp:1205:0,
from /home/intel/ros2_ws/install/rclcpp/include/rclcpp/executors/single_threaded_executor.hpp:28,
from /home/intel/ros2_ws/install/rclcpp/include/rclcpp/executors.hpp:22,
from /home/intel/ros2_ws/install/rclcpp/include/rclcpp/rclcpp.hpp:144,
from /home/intel/openvino_ws/src/ros2_openvino_toolkit/dynamic_vino_lib/include/dynamic_vino_lib/inputs/realsense_camera_topic.hpp:23,
from /home/intel/openvino_ws/src/ros2_openvino_toolkit/dynamic_vino_lib/src/inputs/realsense_camera_topic.cpp:22:
/home/intel/ros2_ws/install/rclcpp/include/rclcpp/node_impl.hpp:139:1: note: declared here
Node::create_subscription(
^~~~
cc1plus: all warnings being treated as errors
make[2]: *** [CMakeFiles/dynamic_vino_lib.dir/src/inputs/realsense_camera_topic.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/dynamic_vino_lib.dir/all] Error 2
make: *** [all] Error 2
---
Failed <<< dynamic_vino_lib [ Exited with code 2 ]