catkin_make failed
MukilSaravanan opened this issue · 2 comments
MukilSaravanan commented
I'm using ROS noetic in Ubuntu 20.04 LTS without using containers. I git cloned the repositories and installed all dependencies through rosdep install
. When I try the command catkin_make
, it is not building completely. It throws the following error and got failed. I noticed that error didn't happen when I try catkin_make
without nav-competition-icra2022 repository. Thank you in advance.
| ^~~
/home/mukil/ros/jackal_ws/src/nav-competition-icra2022/jackal_helper/src/collision_publisher.cpp: In function ‘void forcesCb(ConstContactsPtr&)’:
/home/mukil/ros/jackal_ws/src/nav-competition-icra2022/jackal_helper/src/collision_publisher.cpp:26:64: error: ‘Extract’ was not declared in this scope
26 | entity1 = entity1.substr(0, entity1.find(DELIMITER)); Extract entity1 name
| ^~~~~~~
/home/mukil/ros/jackal_ws/src/nav-competition-icra2022/jackal_helper/src/collision_publisher.cpp:29:9: error: ‘entity2’ was not declared in this scope; did you mean ‘entity1’?
29 | entity2 = entity2.substr(0, entity2.find(DELIMITER)); Extract entity1 name
| ^~~~~~~
| entity1
/home/mukil/ros/jackal_ws/src/nav-competition-icra2022/jackal_helper/src/collision_publisher.cpp:29:71: error: expected ‘;’ before ‘entity1’
29 | entity2 = entity2.substr(0, entity2.find(DELIMITER)); Extract entity1 name
| ^~~~~~~~
| ;
In file included from /usr/lib/x86_64-linux-gnu/pkgconfig/../../../include/ignition/math6/ignition/math/Quaternion.hh:20,
from /usr/lib/x86_64-linux-gnu/pkgconfig/../../../include/ignition/math6/ignition/math/Pose3.hh:20,
from /usr/include/sdformat-9.7/sdf/Actor.hh:23,
from /usr/include/sdformat-9.7/sdf/sdf.hh:2,
from /usr/lib/x86_64-linux-gnu/pkgconfig/../../../include/gazebo-11/gazebo/msgs/msgs.hh:22,
from /usr/lib/x86_64-linux-gnu/pkgconfig/../../../include/gazebo-11/gazebo/transport/CallbackHelper.hh:29,
from /usr/lib/x86_64-linux-gnu/pkgconfig/../../../include/gazebo-11/gazebo/transport/transport.hh:2,
from /home/mukil/ros/jackal_ws/src/nav-competition-icra2022/jackal_helper/src/collision_publisher.cpp:5:
/usr/lib/x86_64-linux-gnu/pkgconfig/../../../include/ignition/math6/ignition/math/Helpers.hh: In instantiation of ‘std::tuple<_Tps ...> ignition::math::v6::breakDownDurations(DurationIn) [with Durations = {std::chrono::duration<long unsigned int, std::ratio<86400, 1> >, std::chrono::duration<long int, std::ratio<3600, 1> >, std::chrono::duration<long int, std::ratio<60, 1> >, std::chrono::duration<long int, std::ratio<1, 1> >, std::chrono::duration<long int, std::ratio<1, 1000> >}; DurationIn = std::chrono::duration<long int, std::ratio<1, 1000000000> >]’:
/usr/lib/x86_64-linux-gnu/pkgconfig/../../../include/ignition/math6/ignition/math/Helpers.hh:829:57: required from here
/usr/lib/x86_64-linux-gnu/pkgconfig/../../../include/ignition/math6/ignition/math/Helpers.hh:810:29: error: no matching function for call to ‘get<std::chrono::duration<long unsigned int, std::ratio<86400, 1> > >(std::tuple<std::chrono::duration<long unsigned int, std::ratio<86400, 1> >, std::chrono::duration<long int, std::ratio<3600, 1> >, std::chrono::duration<long int, std::ratio<60, 1> >, std::chrono::duration<long int, std::ratio<1, 1> >, std::chrono::duration<long int, std::ratio<1, 1000> > >&)’
810 | (std::get<Durations>(retval) =
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from /usr/include/c++/9/algorithm:60,
from /usr/include/google/protobuf/stubs/common.h:38,
from /usr/include/google/protobuf/arena_impl.h:39,
from /usr/include/google/protobuf/arena.h:51,
from /usr/include/google/protobuf/message.h:118,
from /usr/lib/x86_64-linux-gnu/pkgconfig/../../../include/gazebo-11/gazebo/transport/CallbackHelper.hh:20,
from /usr/lib/x86_64-linux-gnu/pkgconfig/../../../include/gazebo-11/gazebo/transport/transport.hh:2,
from /home/mukil/ros/jackal_ws/src/nav-competition-icra2022/jackal_helper/src/collision_publisher.cpp:5:
/usr/include/c++/9/utility:219:5: note: candidate: ‘template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type& std::get(std::pair<_Tp1, _Tp2>&)’
219 | get(std::pair<_Tp1, _Tp2>& __in) noexcept
| ^~~
/usr/include/c++/9/utility:219:5: note: template argument deduction/substitution failed:
/usr/include/c++/9/utility:224:5: note: candidate: ‘template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type&& std::get(std::pair<_Tp1, _Tp2>&&)’
224 | get(std::pair<_Tp1, _Tp2>&& __in) noexcept
| ^~~
/usr/include/c++/9/utility:224:5: note: template argument deduction/substitution failed:
/usr/include/c++/9/utility:229:5: note: candidate: ‘template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr const typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type& std::get(const std::pair<_Tp1, _Tp2>&)’
229 | get(const std::pair<_Tp1, _Tp2>& __in) noexcept
| ^~~
/usr/include/c++/9/utility:229:5: note: template argument deduction/substitution failed:
/usr/include/c++/9/utility:234:5: note: candidate: ‘template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr const typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type&& std::get(const std::pair<_Tp1, _Tp2>&&)’
234 | get(const std::pair<_Tp1, _Tp2>&& __in) noexcept
| ^~~
/usr/include/c++/9/utility:234:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/tuple:39,
from /usr/include/c++/9/bits/stl_map.h:63,
from /usr/include/c++/9/map:61,
from /usr/include/google/protobuf/stubs/common.h:40,
from /usr/include/google/protobuf/arena_impl.h:39,
from /usr/include/google/protobuf/arena.h:51,
from /usr/include/google/protobuf/message.h:118,
from /usr/lib/x86_64-linux-gnu/pkgconfig/../../../include/gazebo-11/gazebo/transport/CallbackHelper.hh:20,
from /usr/lib/x86_64-linux-gnu/pkgconfig/../../../include/gazebo-11/gazebo/transport/transport.hh:2,
from /home/mukil/ros/jackal_ws/src/nav-competition-icra2022/jackal_helper/src/collision_publisher.cpp:5:
/usr/include/c++/9/array:307:5: note: candidate: ‘template<long unsigned int _Int, class _Tp, long unsigned int _Nm> constexpr _Tp& std::get(std::array<_Tp, _Nm>&)’
307 | get(array<_Tp, _Nm>& __arr) noexcept
| ^~~
/usr/include/c++/9/array:307:5: note: template argument deduction/substitution failed:
/usr/include/c++/9/array:316:5: note: candidate: ‘template<long unsigned int _Int, class _Tp, long unsigned int _Nm> constexpr _Tp&& std::get(std::array<_Tp, _Nm>&&)’
316 | get(array<_Tp, _Nm>&& __arr) noexcept
| ^~~
/usr/include/c++/9/array:316:5: note: template argument deduction/substitution failed:
/usr/include/c++/9/array:324:5: note: candidate: ‘template<long unsigned int _Int, class _Tp, long unsigned int _Nm> constexpr const _Tp& std::get(const std::array<_Tp, _Nm>&)’
324 | get(const array<_Tp, _Nm>& __arr) noexcept
| ^~~
/usr/include/c++/9/array:324:5: note: template argument deduction/substitution failed:
/usr/include/c++/9/array:333:5: note: candidate: ‘template<long unsigned int _Int, class _Tp, long unsigned int _Nm> constexpr const _Tp&& std::get(const std::array<_Tp, _Nm>&&)’
333 | get(const array<_Tp, _Nm>&& __arr) noexcept
| ^~~
/usr/include/c++/9/array:333:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/bits/stl_map.h:63,
from /usr/include/c++/9/map:61,
from /usr/include/google/protobuf/stubs/common.h:40,
from /usr/include/google/protobuf/arena_impl.h:39,
from /usr/include/google/protobuf/arena.h:51,
from /usr/include/google/protobuf/message.h:118,
from /usr/lib/x86_64-linux-gnu/pkgconfig/../../../include/gazebo-11/gazebo/transport/CallbackHelper.hh:20,
from /usr/lib/x86_64-linux-gnu/pkgconfig/../../../include/gazebo-11/gazebo/transport/transport.hh:2,
from /home/mukil/ros/jackal_ws/src/nav-competition-icra2022/jackal_helper/src/collision_publisher.cpp:5:
/usr/include/c++/9/tuple:1320:5: note: candidate: ‘template<long unsigned int __i, class ... _Elements> constexpr std::__tuple_element_t<__i, std::tuple<_Args2 ...> >& std::get(std::tuple<_Args2 ...>&)’
1320 | get(tuple<_Elements...>& __t) noexcept
| ^~~
/usr/include/c++/9/tuple:1320:5: note: template argument deduction/substitution failed:
/usr/include/c++/9/tuple:1326:5: note: candidate: ‘template<long unsigned int __i, class ... _Elements> constexpr std::__tuple_element_t<__i, std::tuple<_Args2 ...> >& std::get(const std::tuple<_Args2 ...>&)’
1326 | get(const tuple<_Elements...>& __t) noexcept
| ^~~
/usr/include/c++/9/tuple:1326:5: note: template argument deduction/substitution failed:
/usr/include/c++/9/tuple:1332:5: note: candidate: ‘template<long unsigned int __i, class ... _Elements> constexpr std::__tuple_element_t<__i, std::tuple<_Args2 ...> >&& std::get(std::tuple<_Args2 ...>&&)’
1332 | get(tuple<_Elements...>&& __t) noexcept
| ^~~
/usr/include/c++/9/tuple:1332:5: note: template argument deduction/substitution failed:
/usr/include/c++/9/tuple:1341:5: note: candidate: ‘template<long unsigned int __i, class ... _Elements> constexpr std::__tuple_element_t<__i, std::tuple<_Args2 ...> >&& std::get(const std::tuple<_Args2 ...>&&)’
1341 | get(const tuple<_Elements...>&& __t) noexcept
| ^~~
/usr/include/c++/9/tuple:1341:5: note: template argument deduction/substitution failed:
In file included from /usr/lib/x86_64-linux-gnu/pkgconfig/../../../include/ignition/math6/ignition/math/Quaternion.hh:20,
from /usr/lib/x86_64-linux-gnu/pkgconfig/../../../include/ignition/math6/ignition/math/Pose3.hh:20,
from /usr/include/sdformat-9.7/sdf/Actor.hh:23,
from /usr/include/sdformat-9.7/sdf/sdf.hh:2,
from /usr/lib/x86_64-linux-gnu/pkgconfig/../../../include/gazebo-11/gazebo/msgs/msgs.hh:22,
from /usr/lib/x86_64-linux-gnu/pkgconfig/../../../include/gazebo-11/gazebo/transport/CallbackHelper.hh:29,
from /usr/lib/x86_64-linux-gnu/pkgconfig/../../../include/gazebo-11/gazebo/transport/transport.hh:2,
from /home/mukil/ros/jackal_ws/src/nav-competition-icra2022/jackal_helper/src/collision_publisher.cpp:5:
/usr/lib/x86_64-linux-gnu/pkgconfig/../../../include/ignition/math6/ignition/math/Helpers.hh:813:30: error: no matching function for call to ‘get<std::chrono::duration<long unsigned int, std::ratio<86400, 1> > >(std::tuple<std::chrono::duration<long unsigned int, std::ratio<86400, 1> >, std::chrono::duration<long int, std::ratio<3600, 1> >, std::chrono::duration<long int, std::ratio<60, 1> >, std::chrono::duration<long int, std::ratio<1, 1> >, std::chrono::duration<long int, std::ratio<1, 1000> > >&)’
813 | std::get<Durations>(retval))))), 0)...};
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from /usr/include/c++/9/algorithm:60,
from /usr/include/google/protobuf/stubs/common.h:38,
from /usr/include/google/protobuf/arena_impl.h:39,
from /usr/include/google/protobuf/arena.h:51,
from /usr/include/google/protobuf/message.h:118,
from /usr/lib/x86_64-linux-gnu/pkgconfig/../../../include/gazebo-11/gazebo/transport/CallbackHelper.hh:20,
from /usr/lib/x86_64-linux-gnu/pkgconfig/../../../include/gazebo-11/gazebo/transport/transport.hh:2,
from /home/mukil/ros/jackal_ws/src/nav-competition-icra2022/jackal_helper/src/collision_publisher.cpp:5:
/usr/include/c++/9/utility:219:5: note: candidate: ‘template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type& std::get(std::pair<_Tp1, _Tp2>&)’
219 | get(std::pair<_Tp1, _Tp2>& __in) noexcept
| ^~~
/usr/include/c++/9/utility:219:5: note: template argument deduction/substitution failed:
/usr/include/c++/9/utility:224:5: note: candidate: ‘template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type&& std::get(std::pair<_Tp1, _Tp2>&&)’
224 | get(std::pair<_Tp1, _Tp2>&& __in) noexcept
| ^~~
/usr/include/c++/9/utility:224:5: note: template argument deduction/substitution failed:
/usr/include/c++/9/utility:229:5: note: candidate: ‘template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr const typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type& std::get(const std::pair<_Tp1, _Tp2>&)’
229 | get(const std::pair<_Tp1, _Tp2>& __in) noexcept
| ^~~
/usr/include/c++/9/utility:229:5: note: template argument deduction/substitution failed:
/usr/include/c++/9/utility:234:5: note: candidate: ‘template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr const typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type&& std::get(const std::pair<_Tp1, _Tp2>&&)’
234 | get(const std::pair<_Tp1, _Tp2>&& __in) noexcept
| ^~~
/usr/include/c++/9/utility:234:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/tuple:39,
from /usr/include/c++/9/bits/stl_map.h:63,
from /usr/include/c++/9/map:61,
from /usr/include/google/protobuf/stubs/common.h:40,
from /usr/include/google/protobuf/arena_impl.h:39,
from /usr/include/google/protobuf/arena.h:51,
from /usr/include/google/protobuf/message.h:118,
from /usr/lib/x86_64-linux-gnu/pkgconfig/../../../include/gazebo-11/gazebo/transport/CallbackHelper.hh:20,
from /usr/lib/x86_64-linux-gnu/pkgconfig/../../../include/gazebo-11/gazebo/transport/transport.hh:2,
from /home/mukil/ros/jackal_ws/src/nav-competition-icra2022/jackal_helper/src/collision_publisher.cpp:5:
/usr/include/c++/9/array:307:5: note: candidate: ‘template<long unsigned int _Int, class _Tp, long unsigned int _Nm> constexpr _Tp& std::get(std::array<_Tp, _Nm>&)’
307 | get(array<_Tp, _Nm>& __arr) noexcept
| ^~~
/usr/include/c++/9/array:307:5: note: template argument deduction/substitution failed:
/usr/include/c++/9/array:316:5: note: candidate: ‘template<long unsigned int _Int, class _Tp, long unsigned int _Nm> constexpr _Tp&& std::get(std::array<_Tp, _Nm>&&)’
316 | get(array<_Tp, _Nm>&& __arr) noexcept
| ^~~
/usr/include/c++/9/array:316:5: note: template argument deduction/substitution failed:
/usr/include/c++/9/array:324:5: note: candidate: ‘template<long unsigned int _Int, class _Tp, long unsigned int _Nm> constexpr const _Tp& std::get(const std::array<_Tp, _Nm>&)’
324 | get(const array<_Tp, _Nm>& __arr) noexcept
| ^~~
/usr/include/c++/9/array:324:5: note: template argument deduction/substitution failed:
/usr/include/c++/9/array:333:5: note: candidate: ‘template<long unsigned int _Int, class _Tp, long unsigned int _Nm> constexpr const _Tp&& std::get(const std::array<_Tp, _Nm>&&)’
333 | get(const array<_Tp, _Nm>&& __arr) noexcept
| ^~~
/usr/include/c++/9/array:333:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/bits/stl_map.h:63,
from /usr/include/c++/9/map:61,
from /usr/include/google/protobuf/stubs/common.h:40,
from /usr/include/google/protobuf/arena_impl.h:39,
from /usr/include/google/protobuf/arena.h:51,
from /usr/include/google/protobuf/message.h:118,
from /usr/lib/x86_64-linux-gnu/pkgconfig/../../../include/gazebo-11/gazebo/transport/CallbackHelper.hh:20,
from /usr/lib/x86_64-linux-gnu/pkgconfig/../../../include/gazebo-11/gazebo/transport/transport.hh:2,
from /home/mukil/ros/jackal_ws/src/nav-competition-icra2022/jackal_helper/src/collision_publisher.cpp:5:
/usr/include/c++/9/tuple:1320:5: note: candidate: ‘template<long unsigned int __i, class ... _Elements> constexpr std::__tuple_element_t<__i, std::tuple<_Args2 ...> >& std::get(std::tuple<_Args2 ...>&)’
1320 | get(tuple<_Elements...>& __t) noexcept
| ^~~
/usr/include/c++/9/tuple:1320:5: note: template argument deduction/substitution failed:
/usr/include/c++/9/tuple:1326:5: note: candidate: ‘template<long unsigned int __i, class ... _Elements> constexpr std::__tuple_element_t<__i, std::tuple<_Args2 ...> >& std::get(const std::tuple<_Args2 ...>&)’
1326 | get(const tuple<_Elements...>& __t) noexcept
| ^~~
/usr/include/c++/9/tuple:1326:5: note: template argument deduction/substitution failed:
/usr/include/c++/9/tuple:1332:5: note: candidate: ‘template<long unsigned int __i, class ... _Elements> constexpr std::__tuple_element_t<__i, std::tuple<_Args2 ...> >&& std::get(std::tuple<_Args2 ...>&&)’
1332 | get(tuple<_Elements...>&& __t) noexcept
| ^~~
/usr/include/c++/9/tuple:1332:5: note: template argument deduction/substitution failed:
/usr/include/c++/9/tuple:1341:5: note: candidate: ‘template<long unsigned int __i, class ... _Elements> constexpr std::__tuple_element_t<__i, std::tuple<_Args2 ...> >&& std::get(const std::tuple<_Args2 ...>&&)’
1341 | get(const tuple<_Elements...>&& __t) noexcept
| ^~~
/usr/include/c++/9/tuple:1341:5: note: template argument deduction/substitution failed:
make[2]: *** [nav-competition-icra2022/jackal_helper/CMakeFiles/collision_publisher_node.dir/build.make:63: nav-competition-icra2022/jackal_helper/CMakeFiles/collision_publisher_node.dir/src/collision_publisher.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2851: nav-competition-icra2022/jackal_helper/CMakeFiles/collision_publisher_node.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
Invoking "make -j12 -l12" failed
Daffan commented
Could try to change -std=c++11
to -std=c++17
in jackal_helper/CMakeLists.txt
line 3?
MukilSaravanan commented
Thanks it worked