奥比中光 Astra Pro调试问题
安装调试参考链接 https://www.ncnynl.com/archives/201703/1444.html
catkin_make 时出现未定义引用,然而camera_driver.cpp中已引用了libuvc的头文件函数定义
百思不得其解,不知哪位大神可解答一下。
具体问题如下所示:
CMakeFiles/camera_node.dir/src/camera_driver.cpp.o:在函数‘libuvc_camera::CameraDriver::~CameraDriver()’中:
camera_driver.cpp:(.text+0x4a4):对‘uvc_free_frame’未定义的引用
camera_driver.cpp:(.text+0x4c7):对‘uvc_exit’未定义的引用
CMakeFiles/camera_node.dir/src/camera_driver.cpp.o:在函数‘libuvc_camera::CameraDriver::Start()’中:
camera_driver.cpp:(.text+0x67f):对‘uvc_init’未定义的引用
camera_driver.cpp:(.text+0x6a0):对‘uvc_perror’未定义的引用
CMakeFiles/camera_node.dir/src/camera_driver.cpp.o:在函数‘libuvc_camera::CameraDriver::Stop()’中:
camera_driver.cpp:(.text+0x839):对‘uvc_exit’未定义的引用
CMakeFiles/camera_node.dir/src/camera_driver.cpp.o:在函数‘libuvc_camera::CameraDriver::ReconfigureCallback(libuvc_camera::UVCCameraConfig&, unsigned int)’中:
camera_driver.cpp:(.text+0x9ee):对‘uvc_set_scanning_mode’未定义的引用
camera_driver.cpp:(.text+0xb86):对‘uvc_set_ae_mode’未定义的引用
camera_driver.cpp:(.text+0xd13):对‘uvc_set_ae_priority’未定义的引用
camera_driver.cpp:(.text+0xebb):对‘uvc_set_exposure_abs’未定义的引用
camera_driver.cpp:(.text+0x105f):对‘uvc_set_focus_auto’未定义的引用
camera_driver.cpp:(.text+0x11ed):对‘uvc_set_focus_abs’未定义的引用
camera_driver.cpp:(.text+0x137a):对‘uvc_set_gain’未定义的引用
camera_driver.cpp:(.text+0x1519):对‘uvc_set_iris_abs’未定义的引用
camera_driver.cpp:(.text+0x16a1):对‘uvc_set_brightness’未定义的引用
camera_driver.cpp:(.text+0x1841):对‘uvc_set_pantilt_abs’未定义的引用
CMakeFiles/camera_node.dir/src/camera_driver.cpp.o:在函数‘libuvc_camera::CameraDriver::ImageCallback(uvc_frame*)’中:
camera_driver.cpp:(.text+0x1ee8):对‘uvc_yuyv2bgr’未定义的引用
camera_driver.cpp:(.text+0x1f09):对‘uvc_perror’未定义的引用
camera_driver.cpp:(.text+0x1fbc):对‘uvc_mjpeg2rgb’未定义的引用
camera_driver.cpp:(.text+0x1fdd):对‘uvc_perror’未定义的引用
camera_driver.cpp:(.text+0x207d):对‘uvc_any2bgr’未定义的引用
camera_driver.cpp:(.text+0x209e):对‘uvc_perror’未定义的引用
CMakeFiles/camera_node.dir/src/camera_driver.cpp.o:在函数‘libuvc_camera::CameraDriver::OpenCamera(libuvc_camera::UVCCameraConfig&)’中:
camera_driver.cpp:(.text+0x2d42):对‘uvc_find_devices’未定义的引用
camera_driver.cpp:(.text+0x2d63):对‘uvc_perror’未定义的引用
camera_driver.cpp:(.text+0x2e04):对‘uvc_unref_device’未定义的引用
camera_driver.cpp:(.text+0x2f5c):对‘uvc_open’未定义的引用
camera_driver.cpp:(.text+0x3056):对‘uvc_get_device_address’未定义的引用
camera_driver.cpp:(.text+0x306f):对‘uvc_get_bus_number’未定义的引用
camera_driver.cpp:(.text+0x3185):对‘uvc_strerror’未定义的引用
camera_driver.cpp:(.text+0x319e):对‘uvc_get_device_address’未定义的引用
camera_driver.cpp:(.text+0x31b7):对‘uvc_get_bus_number’未定义的引用
camera_driver.cpp:(.text+0x321e):对‘uvc_unref_device’未定义的引用
camera_driver.cpp:(.text+0x3245):对‘uvc_set_status_callback’未定义的引用
camera_driver.cpp:(.text+0x32cb):对‘uvc_get_stream_ctrl_format_size’未定义的引用
camera_driver.cpp:(.text+0x32fc):对‘uvc_perror’未定义的引用
camera_driver.cpp:(.text+0x3312):对‘uvc_close’未定义的引用
camera_driver.cpp:(.text+0x3328):对‘uvc_unref_device’未定义的引用
camera_driver.cpp:(.text+0x3447):对‘uvc_print_diag’未定义的引用
camera_driver.cpp:(.text+0x347b):对‘uvc_start_streaming’未定义的引用
camera_driver.cpp:(.text+0x349c):对‘uvc_perror’未定义的引用
camera_driver.cpp:(.text+0x34b2):对‘uvc_close’未定义的引用
camera_driver.cpp:(.text+0x34c8):对‘uvc_unref_device’未定义的引用
camera_driver.cpp:(.text+0x34f6):对‘uvc_free_frame’未定义的引用
camera_driver.cpp:(.text+0x3523):对‘uvc_allocate_frame’未定义的引用
CMakeFiles/camera_node.dir/src/camera_driver.cpp.o:在函数‘libuvc_camera::CameraDriver::CloseCamera()’中:
camera_driver.cpp:(.text+0x36d1):对‘uvc_close’未定义的引用
camera_driver.cpp:(.text+0x36f3):对‘uvc_unref_device’未定义的引用
collect2: error: ld returned 1 exit status
libuvc_ros-master/libuvc_camera/CMakeFiles/camera_node.dir/build.make:192: recipe for target '/home/terry/catkin_ws/devel/lib/libuvc_camera/camera_node' failed
make[2]: *** [/home/terry/catkin_ws/devel/lib/libuvc_camera/camera_node] Error 1
CMakeFiles/Makefile2:1893: recipe for target 'libuvc_ros-master/libuvc_camera/CMakeFiles/camera_node.dir/all' failed
make[1]: *** [libuvc_ros-master/libuvc_camera/CMakeFiles/camera_node.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j2 -l2" failed
catkin_make 时出现未定义引用,然而camera_driver.cpp中已引用了libuvc的头文件函数定义
百思不得其解,不知哪位大神可解答一下。
具体问题如下所示:
CMakeFiles/camera_node.dir/src/camera_driver.cpp.o:在函数‘libuvc_camera::CameraDriver::~CameraDriver()’中:
camera_driver.cpp:(.text+0x4a4):对‘uvc_free_frame’未定义的引用
camera_driver.cpp:(.text+0x4c7):对‘uvc_exit’未定义的引用
CMakeFiles/camera_node.dir/src/camera_driver.cpp.o:在函数‘libuvc_camera::CameraDriver::Start()’中:
camera_driver.cpp:(.text+0x67f):对‘uvc_init’未定义的引用
camera_driver.cpp:(.text+0x6a0):对‘uvc_perror’未定义的引用
CMakeFiles/camera_node.dir/src/camera_driver.cpp.o:在函数‘libuvc_camera::CameraDriver::Stop()’中:
camera_driver.cpp:(.text+0x839):对‘uvc_exit’未定义的引用
CMakeFiles/camera_node.dir/src/camera_driver.cpp.o:在函数‘libuvc_camera::CameraDriver::ReconfigureCallback(libuvc_camera::UVCCameraConfig&, unsigned int)’中:
camera_driver.cpp:(.text+0x9ee):对‘uvc_set_scanning_mode’未定义的引用
camera_driver.cpp:(.text+0xb86):对‘uvc_set_ae_mode’未定义的引用
camera_driver.cpp:(.text+0xd13):对‘uvc_set_ae_priority’未定义的引用
camera_driver.cpp:(.text+0xebb):对‘uvc_set_exposure_abs’未定义的引用
camera_driver.cpp:(.text+0x105f):对‘uvc_set_focus_auto’未定义的引用
camera_driver.cpp:(.text+0x11ed):对‘uvc_set_focus_abs’未定义的引用
camera_driver.cpp:(.text+0x137a):对‘uvc_set_gain’未定义的引用
camera_driver.cpp:(.text+0x1519):对‘uvc_set_iris_abs’未定义的引用
camera_driver.cpp:(.text+0x16a1):对‘uvc_set_brightness’未定义的引用
camera_driver.cpp:(.text+0x1841):对‘uvc_set_pantilt_abs’未定义的引用
CMakeFiles/camera_node.dir/src/camera_driver.cpp.o:在函数‘libuvc_camera::CameraDriver::ImageCallback(uvc_frame*)’中:
camera_driver.cpp:(.text+0x1ee8):对‘uvc_yuyv2bgr’未定义的引用
camera_driver.cpp:(.text+0x1f09):对‘uvc_perror’未定义的引用
camera_driver.cpp:(.text+0x1fbc):对‘uvc_mjpeg2rgb’未定义的引用
camera_driver.cpp:(.text+0x1fdd):对‘uvc_perror’未定义的引用
camera_driver.cpp:(.text+0x207d):对‘uvc_any2bgr’未定义的引用
camera_driver.cpp:(.text+0x209e):对‘uvc_perror’未定义的引用
CMakeFiles/camera_node.dir/src/camera_driver.cpp.o:在函数‘libuvc_camera::CameraDriver::OpenCamera(libuvc_camera::UVCCameraConfig&)’中:
camera_driver.cpp:(.text+0x2d42):对‘uvc_find_devices’未定义的引用
camera_driver.cpp:(.text+0x2d63):对‘uvc_perror’未定义的引用
camera_driver.cpp:(.text+0x2e04):对‘uvc_unref_device’未定义的引用
camera_driver.cpp:(.text+0x2f5c):对‘uvc_open’未定义的引用
camera_driver.cpp:(.text+0x3056):对‘uvc_get_device_address’未定义的引用
camera_driver.cpp:(.text+0x306f):对‘uvc_get_bus_number’未定义的引用
camera_driver.cpp:(.text+0x3185):对‘uvc_strerror’未定义的引用
camera_driver.cpp:(.text+0x319e):对‘uvc_get_device_address’未定义的引用
camera_driver.cpp:(.text+0x31b7):对‘uvc_get_bus_number’未定义的引用
camera_driver.cpp:(.text+0x321e):对‘uvc_unref_device’未定义的引用
camera_driver.cpp:(.text+0x3245):对‘uvc_set_status_callback’未定义的引用
camera_driver.cpp:(.text+0x32cb):对‘uvc_get_stream_ctrl_format_size’未定义的引用
camera_driver.cpp:(.text+0x32fc):对‘uvc_perror’未定义的引用
camera_driver.cpp:(.text+0x3312):对‘uvc_close’未定义的引用
camera_driver.cpp:(.text+0x3328):对‘uvc_unref_device’未定义的引用
camera_driver.cpp:(.text+0x3447):对‘uvc_print_diag’未定义的引用
camera_driver.cpp:(.text+0x347b):对‘uvc_start_streaming’未定义的引用
camera_driver.cpp:(.text+0x349c):对‘uvc_perror’未定义的引用
camera_driver.cpp:(.text+0x34b2):对‘uvc_close’未定义的引用
camera_driver.cpp:(.text+0x34c8):对‘uvc_unref_device’未定义的引用
camera_driver.cpp:(.text+0x34f6):对‘uvc_free_frame’未定义的引用
camera_driver.cpp:(.text+0x3523):对‘uvc_allocate_frame’未定义的引用
CMakeFiles/camera_node.dir/src/camera_driver.cpp.o:在函数‘libuvc_camera::CameraDriver::CloseCamera()’中:
camera_driver.cpp:(.text+0x36d1):对‘uvc_close’未定义的引用
camera_driver.cpp:(.text+0x36f3):对‘uvc_unref_device’未定义的引用
collect2: error: ld returned 1 exit status
libuvc_ros-master/libuvc_camera/CMakeFiles/camera_node.dir/build.make:192: recipe for target '/home/terry/catkin_ws/devel/lib/libuvc_camera/camera_node' failed
make[2]: *** [/home/terry/catkin_ws/devel/lib/libuvc_camera/camera_node] Error 1
CMakeFiles/Makefile2:1893: recipe for target 'libuvc_ros-master/libuvc_camera/CMakeFiles/camera_node.dir/all' failed
make[1]: *** [libuvc_ros-master/libuvc_camera/CMakeFiles/camera_node.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j2 -l2" failed
1 个回复
lalala
赞同来自: