Error Installing astra_camera Package

asked 2019-10-16 17:51:22 -0500

dbalaban gravatar image

I am using an indigo ros install on Ubuntu 14.04.6, I followed the install instructions from the package documentation:

http://wiki.ros.org/astra_camera

however on the last step I get the compile error printed below, my gcc version is 4.8.4. I am explicitly forbidden from updating the operating system or compiler. Is there a way to compile this package?

Base path: /home/cobot4/catkin_ws Source space: /home/cobot4/catkin_ws/src Build space: /home/cobot4/catkin_ws/build Devel space: /home/cobot4/catkin_ws/devel Install space: /home/cobot4/catkin_ws/install

#

Running command: "make cmake_check_build_system" in "/home/cobot4/catkin_ws/build"

#

#

Running command: "make -j4 -l4" in "/home/cobot4/catkin_ws/build/ros_astra_camera"

#

[ 2%] Built target astra_camera_gencfg [ 2%] Built target _astra_camera_generate_messages_check_deps_SetUVCWhiteBalance [ 2%] Built target sensor_msgs_generate_messages_lisp [ 2%] [ 2%] Built target _astra_camera_generate_messages_check_deps_GetUVCExposure Built target _astra_camera_generate_messages_check_deps_SetUVCGain [ 2%] Built target std_msgs_generate_messages_lisp [ 2%] Built target _astra_camera_generate_messages_check_deps_SetIRExposure [ 2%] Built target _astra_camera_generate_messages_check_deps_SetIRFlood [ 2%] Built target _astra_camera_generate_messages_check_deps_GetSerial [ 2%] Built target _astra_camera_generate_messages_check_deps_GetCameraInfo [ 2%] Built target _astra_camera_generate_messages_check_deps_ResetIRExposure [ 2%] [ 2%] Built target _astra_camera_generate_messages_check_deps_GetIRGain Built target _astra_camera_generate_messages_check_deps_SetLDP [ 2%] Built target _astra_camera_generate_messages_check_deps_GetDeviceType [ 2%] Built target _astra_camera_generate_messages_check_deps_SetUVCExposure [ 2%] Built target _astra_camera_generate_messages_check_deps_GetUVCGain [ 2%] Built target _astra_camera_generate_messages_check_deps_SetLaser [ 2%] [ 2%] Built target _astra_camera_generate_messages_check_deps_SetIRGain Built target _astra_camera_generate_messages_check_deps_ResetIRGain [ 2%] Built target _astra_camera_generate_messages_check_deps_SwitchIRCamera [ 2%] [ 2%] Built target _astra_camera_generate_messages_check_deps_GetIRExposure Built target sensor_msgs_generate_messages_cpp [ 2%] [ 2%] Built target std_msgs_generate_messages_cpp Built target sensor_msgs_generate_messages_py [ 2%] Built target _astra_camera_generate_messages_check_deps_GetUVCWhiteBalance [ 2%] Built target std_msgs_generate_messages_py [ 3%] [ 26%] Built target astra_usb_reset Built target astra_camera_generate_messages_cpp [ 50%] Built target astra_camera_generate_messages_lisp [ 74%] Built target astra_camera_generate_messages_py [ 85%] [ 86%] Built target astra_wrapper Building CXX object ros_astra_camera/CMakeFiles/camera_node.dir/src/libuvc_camera/camera_driver.cpp.o [ 87%] [ 87%] Building CXX object ros_astra_camera/CMakeFiles/libuvc_camera_nodelet.dir/src/libuvc_camera/camera_driver.cpp.o
Built target astra_camera_generate_messages [ 90%] Built target astra_driver_lib Scanning dependencies of target astra_test_wrapper Linking CXX executable /home/cobot4/catkin_ws/devel/lib/astra_camera/astra_list_devices [ 91%] Building CXX object ros_astra_camera/CMakeFiles/astra_test_wrapper.dir/test/test_wrapper.cpp.o /home/cobot4/catkin_ws/src/ros_astra_camera/include/openni2_redist/x64/libOpenNI2.so: undefined reference to __cxa_throw_bad_array_new_length@CXXABI_1.3.8' collect2: error: ld returned 1 exit status make[2]: *** [/home/cobot4/catkin_ws/devel/lib/astra_camera/astra_list_devices] Error 1 make[1]: *** [ros_astra_camera/CMakeFiles/astra_list_devices.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... /home/cobot4/catkin_ws/src/ros_astra_camera/src/libuvc_camera/camera_driver.cpp: In member function ‘bool libuvc_camera::CameraDriver::getUVCExposureCb(astra_camera::GetUVCExposureRequest&, astra_camera::GetUVCExposureResponse&)’: /home/cobot4/catkin_ws/src/ros_astra_camera/src/libuvc_camera/camera_driver.cpp:98:67: warning: invalid conversion from ‘uint32_t* {aka unsigned int*}’ to ‘int*’ [-fpermissive] uvc_error_t err = uvc_get_exposure_abs(devh_, &expo, UVC_GET_CUR); ^ In file included from /home/cobot4/catkin_ws/src/ros_astra_camera/include/libuvc_camera/camera_driver.h:3:0, from /home/cobot4/catkin_ws/src/ros_astra_camera/src/libuvc_camera/camera_driver.cpp:34: /opt/ros/indigo/include/libuvc/libuvc.h:442:13: warning: initializing argument 2 of ‘uvc_error_t uvc_get_exposure_abs(uvc_device_handle_t*, int*, uvc_req_code)’ [-fpermissive] uvc_error_t uvc_get_exposure_abs(uvc_device_handle_t *devh, int *time, enum uvc_req_code req_code); ^ /home/cobot4/catkin_ws/src/ros_astra_camera/src/libuvc_camera/camera_driver.cpp: In member function ‘bool libuvc_camera::CameraDriver::getUVCGainCb(astra_camera::GetUVCGainRequest&, astra_camera::GetUVCGainResponse&)’: /home/cobot4/catkin_ws/src/ros_astra_camera/src/libuvc_camera/camera_driver.cpp:123:59: error: ‘uvc_get_gain’ was not declared in this scope uvc_error_t err = uvc_get_gain(devh_, &gain, UVC_GET_CUR); ^ /home/cobot4/catkin_ws/src ...

(more)
edit retag flag offensive close merge delete