Closed ChrisTimperley closed 6 years ago
After switching to the more recent and appropriate kinetic
distro:
[ 93%] Building CXX object repo-under-test/mavros/CMakeFiles/mavros_plugins.dir/src/plugins/waypoint.cpp.o
/ros_ws/src/repo-under-test/mavros/src/plugins/param.cpp: In member function ‘void mavros::std_plugins::ParamPlugin::handle_param_value(const mavlink_message_t*, mavlink::common::msg::PARAM_VALUE&)’:
/ros_ws/src/repo-under-test/mavros/src/plugins/param.cpp:425:19: error: ‘to_string’ is not a member of ‘mavlink’
auto param_id = mavlink::to_string(pmsg.param_id);
^
/ros_ws/src/repo-under-test/mavros/src/plugins/param.cpp:425:19: note: suggested alternatives:
In file included from /usr/include/c++/5/string:52:0,
from /usr/include/c++/5/stdexcept:39,
from /usr/include/c++/5/array:38,
from /usr/include/c++/5/tuple:39,
from /usr/include/c++/5/mutex:38,
from /usr/include/c++/5/condition_variable:39,
from /ros_ws/src/repo-under-test/mavros/src/plugins/param.cpp:18:
/usr/include/c++/5/bits/basic_string.h:5351:3: note: ‘std::__cxx11::to_string’
to_string(long double __val)
^
/usr/include/c++/5/bits/basic_string.h:5351:3: note: ‘std::__cxx11::to_string’
In file included from /usr/include/boost/exception_ptr.hpp:9:0,
from /usr/include/boost/thread/exceptional_ptr.hpp:10,
from /usr/include/boost/thread/future.hpp:23,
from /usr/include/boost/thread.hpp:24,
from /opt/ros/kinetic/include/diagnostic_updater/diagnostic_updater.h:48,
from /ros_ws/src/repo-under-test/mavros/include/mavros/mavros_plugin.h:23,
from /ros_ws/src/repo-under-test/mavros/src/plugins/param.cpp:19:
/usr/include/boost/exception/detail/exception_ptr.hpp:492:5: note: ‘boost::to_string’
to_string( exception_ptr const & p )
^
In file included from /usr/include/boost/exception/to_string_stub.hpp:15:0,
from /usr/include/boost/exception/info.hpp:16,
from /usr/include/boost/exception/detail/exception_ptr.hpp:20,
from /usr/include/boost/exception_ptr.hpp:9,
from /usr/include/boost/thread/exceptional_ptr.hpp:10,
from /usr/include/boost/thread/future.hpp:23,
from /usr/include/boost/thread.hpp:24,
from /opt/ros/kinetic/include/diagnostic_updater/diagnostic_updater.h:48,
from /ros_ws/src/repo-under-test/mavros/include/mavros/mavros_plugin.h:23,
from /ros_ws/src/repo-under-test/mavros/src/plugins/param.cpp:19:
/usr/include/boost/exception/to_string.hpp:72:5: note: ‘boost::to_string’
to_string( std::pair<T,U> const & x )
^
In file included from /ros_ws/src/repo-under-test/mavros/include/mavros/mavros_uas.h:27:0,
from /ros_ws/src/repo-under-test/mavros/include/mavros/mavros_plugin.h:25,
from /ros_ws/src/repo-under-test/mavros/src/plugins/param.cpp:19:
/ros_ws/src/repo-under-test/mavros/include/mavros/utils.h:46:13: note: ‘mavros::utils::to_string’
std::string to_string(mavlink::common::MAV_STATE e);
^
/ros_ws/src/repo-under-test/mavros/src/plugins/sys_status.cpp: In member function ‘void mavros::std_plugins::SystemStatusPlugin::handle_statustext(const mavlink_message_t*, mavlink::common::msg::STATUSTEXT&)’:
/ros_ws/src/repo-under-test/mavros/src/plugins/sys_status.cpp:676:15: error: ‘to_string’ is not a member of ‘mavlink’
auto text = mavlink::to_string(textm.text);
^
/ros_ws/src/repo-under-test/mavros/src/plugins/sys_status.cpp:676:15: note: suggested alternatives:
In file included from /usr/include/c++/5/string:52:0,
from /usr/include/c++/5/stdexcept:39,
from /usr/include/c++/5/array:38,
from /usr/include/c++/5/tuple:39,
from /ros_ws/src/repo-under-test/mavros/include/mavros/mavros_plugin.h:20,
from /ros_ws/src/repo-under-test/mavros/src/plugins/sys_status.cpp:17:
/usr/include/c++/5/bits/basic_string.h:5351:3: note: ‘std::__cxx11::to_string’
to_string(long double __val)
^
/usr/include/c++/5/bits/basic_string.h:5351:3: note: ‘std::__cxx11::to_string’
In file included from /usr/include/boost/exception_ptr.hpp:9:0,
from /usr/include/boost/thread/exceptional_ptr.hpp:10,
from /usr/include/boost/thread/future.hpp:23,
from /usr/include/boost/thread.hpp:24,
from /opt/ros/kinetic/include/diagnostic_updater/diagnostic_updater.h:48,
from /ros_ws/src/repo-under-test/mavros/include/mavros/mavros_plugin.h:23,
from /ros_ws/src/repo-under-test/mavros/src/plugins/sys_status.cpp:17:
/usr/include/boost/exception/detail/exception_ptr.hpp:492:5: note: ‘boost::to_string’
to_string( exception_ptr const & p )
^
In file included from /usr/include/boost/exception/to_string_stub.hpp:15:0,
from /usr/include/boost/exception/info.hpp:16,
from /usr/include/boost/exception/detail/exception_ptr.hpp:20,
from /usr/include/boost/exception_ptr.hpp:9,
from /usr/include/boost/thread/exceptional_ptr.hpp:10,
from /usr/include/boost/thread/future.hpp:23,
from /usr/include/boost/thread.hpp:24,
from /opt/ros/kinetic/include/diagnostic_updater/diagnostic_updater.h:48,
from /ros_ws/src/repo-under-test/mavros/include/mavros/mavros_plugin.h:23,
from /ros_ws/src/repo-under-test/mavros/src/plugins/sys_status.cpp:17:
/usr/include/boost/exception/to_string.hpp:72:5: note: ‘boost::to_string’
to_string( std::pair<T,U> const & x )
^
In file included from /ros_ws/src/repo-under-test/mavros/include/mavros/mavros_uas.h:27:0,
from /ros_ws/src/repo-under-test/mavros/include/mavros/mavros_plugin.h:25,
from /ros_ws/src/repo-under-test/mavros/src/plugins/sys_status.cpp:17:
/ros_ws/src/repo-under-test/mavros/include/mavros/utils.h:46:13: note: ‘mavros::utils::to_string’
std::string to_string(mavlink::common::MAV_STATE e);
^
[ 93%] Linking CXX executable /ros_ws/devel/lib/mavros/gcs_bridge
[ 93%] Building CXX object repo-under-test/mavros/CMakeFiles/mavros_plugins.dir/src/plugins/rc_io.cpp.o
[ 94%] Building CXX object repo-under-test/mavros/CMakeFiles/mavros_plugins.dir/src/plugins/command.cpp.o
[ 94%] Built target gcs_bridge
[ 94%] Building CXX object repo-under-test/mavros/CMakeFiles/mavros_plugins.dir/src/plugins/local_position.cpp.o
repo-under-test/mavros/CMakeFiles/mavros_plugins.dir/build.make:158: recipe for target 'repo-under-test/mavros/CMakeFiles/mavros_plugins.dir/src/plugins/param.cpp.o' failed
make[2]: *** [repo-under-test/mavros/CMakeFiles/mavros_plugins.dir/src/plugins/param.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
repo-under-test/mavros/CMakeFiles/mavros_plugins.dir/build.make:86: recipe for target 'repo-under-test/mavros/CMakeFiles/mavros_plugins.dir/src/plugins/sys_status.cpp.o' failed
make[2]: *** [repo-under-test/mavros/CMakeFiles/mavros_plugins.dir/src/plugins/sys_status.cpp.o] Error 1
[ 94%] Linking CXX executable /ros_ws/devel/lib/mavros/mavros_node
[ 94%] Built target mavros_node
CMakeFiles/Makefile2:3960: recipe for target 'repo-under-test/mavros/CMakeFiles/mavros_plugins.dir/all' failed
make[1]: *** [repo-under-test/mavros/CMakeFiles/mavros_plugins.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
This now builds as expected.