Can not catkin_make azure kinect package on ros melodic

asked 2021-01-07 00:30:02 -0600

mrill gravatar image

updated 2021-04-22 11:25:53 -0600

miura gravatar image

Hi all,

I tried to catkin_make the azure_kinect_ros_driver package and it failed with the error "Invoking 'make -j8 -l8 failed". I am running ros melodic on ubuntu 18.04, my device is NVIDIA AGX Xavier. I have searched several solutions online but none of them worked. Any help would be appreciated.

The error code is as follows

 Base path: /home/rover/catkin_ws
Source space: /home/rover/catkin_ws/src
Build space: /home/rover/catkin_ws/build
Devel space: /home/rover/catkin_ws/devel
Install space: /home/rover/catkin_ws/install
####
#### Running command: "make cmake_check_build_system" in "/home/rover/catkin_ws/build"
####
####
#### Running command: "make -j8 -l8" in "/home/rover/catkin_ws/build"
####

[  0%] Built target std_msgs_generate_messages_py
[  0%] Built target std_msgs_generate_messages_eus
[  0%] Built target std_msgs_generate_messages_cpp
[  0%] Built target std_msgs_generate_messages_lisp
[  0%] Built target std_msgs_generate_messages_nodejs
[  0%] Built target _rr_openrover_driver_msgs_generate_messages_check_deps_RawRrOpenroverDriverMedRateData
[  0%] Built target _rr_openrover_driver_msgs_generate_messages_check_deps_SmartBatteryStatus
[  0%] Built target _rr_openrover_driver_msgs_generate_messages_check_deps_RawRrOpenroverDriverFastRateData
[  4%] Built target rplidarNodeClient
[  4%] Built target geometry_msgs_generate_messages_cpp
[ 19%] Built target rplidarNode
[ 19%] Built target _rr_openrover_driver_msgs_generate_messages_check_deps_RawRrOpenroverDriverSlowRateData
[ 19%] Built target nav_msgs_generate_messages_cpp
[ 19%] Built target roscpp_generate_messages_py
[ 19%] Built target roscpp_generate_messages_lisp
[ 19%] Built target roscpp_generate_messages_nodejs
[ 19%] Built target rosgraph_msgs_generate_messages_cpp
[ 19%] Built target roscpp_generate_messages_eus
[ 19%] Built target roscpp_generate_messages_cpp
[ 19%] Built target rosgraph_msgs_generate_messages_eus
[ 19%] Built target rosgraph_msgs_generate_messages_nodejs
[ 19%] Built target rosgraph_msgs_generate_messages_py
[ 19%] Built target actionlib_msgs_generate_messages_nodejs
[ 19%] Built target actionlib_msgs_generate_messages_py
[ 19%] Built target rosgraph_msgs_generate_messages_lisp
[ 19%] Built target actionlib_msgs_generate_messages_eus
[ 19%] Built target actionlib_msgs_generate_messages_lisp
[ 19%] Built target nav_msgs_generate_messages_py
[ 19%] Built target actionlib_msgs_generate_messages_cpp
[ 19%] Built target geometry_msgs_generate_messages_py
[ 19%] Built target geometry_msgs_generate_messages_eus
[ 19%] Built target nav_msgs_generate_messages_eus
[ 19%] Built target geometry_msgs_generate_messages_lisp
[ 19%] Built target nav_msgs_generate_messages_lisp
[ 19%] Built target geometry_msgs_generate_messages_nodejs
[ 19%] Built target nav_msgs_generate_messages_nodejs
[ 19%] Built target tf2_msgs_generate_messages_py
[ 19%] Built target tf2_msgs_generate_messages_nodejs
[ 19%] Built target tf2_msgs_generate_messages_eus
[ 19%] Built target tf2_msgs_generate_messages_cpp
[ 23%] Built target odom_control
[ 23%] Built target tf2_msgs_generate_messages_lisp
[ 34%] Built target rr_openrover_driver_msgs_generate_messages_eus
[ 45%] Built target rr_openrover_driver_msgs_generate_messages_py
[ 54%] Built target rr_openrover_driver_msgs_generate_messages_lisp
[ 56%] Linking CXX executable /home/rover/catkin_ws/devel/lib/azure_kinect_ros_driver/node
[ 67%] Built target azure_kinect_ros_driver_nodelet
[ 76%] Built target rr_openrover_driver_msgs_generate_messages_cpp
[ 84%] Built target rr_openrover_driver_msgs_generate_messages_nodejs
[ 86%] Built target rr_openrover_driver_generate_messages_lisp
[ 86%] Built target rr_openrover_driver_generate_messages_eus
[ 86%] Built target rr_openrover_driver_generate_messages_py
[ 86%] Built target rr_openrover_driver_generate_messages_cpp
[ 86%] Built target rr_openrover_driver_msgs_generate_messages
[ 86%] Built target rr_openrover_driver_generate_messages_nodejs
[ 86%] Built target rr_openrover_driver_generate_messages
[ 91%] Built target openrover_driver_node
CMakeFiles/azure_kinect_ros_driver_node.dir/src/k4a_ros_device.cpp.o: In function `cv::Mat::Mat(int, int, int, void*, unsigned long)':
k4a_ros_device.cpp:(.text._ZN2cv3MatC2EiiiPvm[_ZN2cv3MatC5EiiiPvm]+0x150): undefined reference to `cv::error(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*, char const*, int)'
k4a_ros_device.cpp:(.text._ZN2cv3MatC2EiiiPvm[_ZN2cv3MatC5EiiiPvm]+0x244): undefined reference to `cv::error(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*, char const*, int)'
k4a_ros_device.cpp:(.text._ZN2cv3MatC2EiiiPvm[_ZN2cv3MatC5EiiiPvm]+0x2cc): undefined reference to `cv::Mat::updateContinuityFlag()'
collect2: error: ld returned 1 exit status
Azure_Kinect_ROS_Driver/CMakeFiles/azure_kinect_ros_driver_node.dir/build.make:213: recipe for target '/home/rover/catkin_ws/devel/lib/azure_kinect_ros_driver/node' failed
make[2]: *** [/home/rover/catkin_ws/devel/lib/azure_kinect_ros_driver/node] Error 1
CMakeFiles/Makefile2:3927: recipe for target 'Azure_Kinect_ROS_Driver/CMakeFiles/azure_kinect_ros_driver_node.dir/all' failed
make[1]: *** [Azure_Kinect_ROS_Driver/CMakeFiles/azure_kinect_ros_driver_node.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j8 -l8" failed
edit retag flag offensive close merge delete