Linux Pi4中的ros_astra_摄像头安装错误(未定义的参考错误)

Linux Pi4中的ros_astra_摄像头安装错误(未定义的参考错误),linux,ros,pi,Linux,Ros,Pi,我安装ros_astra_摄像头时出错。我已经在另一个工作区成功构建了libuvc_相机,但libuvc_相机仍然存在错误。是因为路径问题还是我没有正确安装 我遵循这些步骤,并从下载。我的工作区目前有动态重新配置、图像公用、rgbd启动、ros\U astra\U摄像头和rplidar\U ros 至于下载它的依赖项(libuvs和libuvc_摄像头),我已经按照上面的步骤进行了操作。至于其他人,我从他们的git repo和cmake中克隆了git。使 我现在用的是带ros melodic的r

我安装ros_astra_摄像头时出错。我已经在另一个工作区成功构建了libuvc_相机,但libuvc_相机仍然存在错误。是因为路径问题还是我没有正确安装

我遵循这些步骤,并从下载。我的工作区目前有动态重新配置、图像公用、rgbd启动、ros\U astra\U摄像头和rplidar\U ros

至于下载它的依赖项(libuvs和libuvc_摄像头),我已经按照上面的步骤进行了操作。至于其他人,我从他们的git repo和cmake中克隆了git。使

我现在用的是带ros melodic的raspbian buster的Pi4

请帮帮我。我需要这个为我的最后一年项目安装astra pro相机驱动程序

[ 98%] Built target astra_camera_nodelet
/usr/bin/ld: CMakeFiles/camera_node.dir/src/libuvc_camera/camera_driver.cpp.o: in function `libuvc_camera::CameraDriver::~CameraDriver()':
camera_driver.cpp:(.text+0xcb4): undefined reference to `uvc_free_frame'
/usr/bin/ld: camera_driver.cpp:(.text+0xcd4): undefined reference to `uvc_exit'
/usr/bin/ld: CMakeFiles/camera_node.dir/src/libuvc_camera/camera_driver.cpp.o: in function `libuvc_camera::CameraDriver::getUVCExposureCb(astra_camera::GetUVCExposureRequest_<std::allocator<void> >&, astra_camera::GetUVCExposureResponse_<std::allocator<void> >&)':
camera_driver.cpp:(.text+0xe84): undefined reference to `uvc_get_exposure_abs'
/usr/bin/ld: CMakeFiles/camera_node.dir/src/libuvc_camera/camera_driver.cpp.o: in function `libuvc_camera::CameraDriver::setUVCExposureCb(astra_camera::SetUVCExposureRequest_<std::allocator<void> >&, astra_camera::SetUVCExposureResponse_<std::allocator<void> >&)':
camera_driver.cpp:(.text+0xef8): undefined reference to `uvc_set_ae_mode'
/usr/bin/ld: camera_driver.cpp:(.text+0xf14): undefined reference to `uvc_set_ae_mode'
/usr/bin/ld: camera_driver.cpp:(.text+0x104c): undefined reference to `uvc_set_exposure_abs'
/usr/bin/ld: CMakeFiles/camera_node.dir/src/libuvc_camera/camera_driver.cpp.o: in function `libuvc_camera::CameraDriver::getUVCGainCb(astra_camera::GetUVCGainRequest_<std::allocator<void> >&, astra_camera::GetUVCGainResponse_<std::allocator<void> >&)':
camera_driver.cpp:(.text+0x10e4): undefined reference to `uvc_get_gain'
/usr/bin/ld: CMakeFiles/camera_node.dir/src/libuvc_camera/camera_driver.cpp.o: in function `libuvc_camera::CameraDriver::setUVCGainCb(astra_camera::SetUVCGainRequest_<std::allocator<void> >&, astra_camera::SetUVCGainResponse_<std::allocator<void> >&)':
camera_driver.cpp:(.text+0x1154): undefined reference to `uvc_set_gain'
/usr/bin/ld: CMakeFiles/camera_node.dir/src/libuvc_camera/camera_driver.cpp.o: in function `libuvc_camera::CameraDriver::getUVCWhiteBalanceCb(astra_camera::GetUVCWhiteBalanceRequest_<std::allocator<void> >&, astra_camera::GetUVCWhiteBalanceResponse_<std::allocator<void> >&)':
camera_driver.cpp:(.text+0x11ac): undefined reference to `uvc_get_white_balance_temperature'
/usr/bin/ld: CMakeFiles/camera_node.dir/src/libuvc_camera/camera_driver.cpp.o: in function `libuvc_camera::CameraDriver::setUVCWhiteBalanceCb(astra_camera::SetUVCWhiteBalanceRequest_<std::allocator<void> >&, astra_camera::SetUVCWhiteBalanceResponse_<std::allocator<void> >&)':
camera_driver.cpp:(.text+0x1220): undefined reference to `uvc_set_white_balance_temperature_auto'
/usr/bin/ld: camera_driver.cpp:(.text+0x123c): undefined reference to `uvc_set_white_balance_temperature_auto'
/usr/bin/ld: camera_driver.cpp:(.text+0x125c): undefined reference to `uvc_set_white_balance_temperature'
/usr/bin/ld: CMakeFiles/camera_node.dir/src/libuvc_camera/camera_driver.cpp.o: in function `libuvc_camera::CameraDriver::Start()':
camera_driver.cpp:(.text+0x12cc): undefined reference to `uvc_init'
/usr/bin/ld: camera_driver.cpp:(.text+0x12ec): undefined reference to `uvc_perror'
/usr/bin/ld: CMakeFiles/camera_node.dir/src/libuvc_camera/camera_driver.cpp.o: in function `libuvc_camera::CameraDriver::Stop()':
camera_driver.cpp:(.text+0x1440): undefined reference to `uvc_exit'
/usr/bin/ld: CMakeFiles/camera_node.dir/src/libuvc_camera/camera_driver.cpp.o: in function `libuvc_camera::CameraDriver::ReconfigureCallback(libuvc_camera::UVCCameraConfig&, unsigned int)':
camera_driver.cpp:(.text+0x1594): undefined reference to `uvc_set_scanning_mode'
/usr/bin/ld: camera_driver.cpp:(.text+0x1710): undefined reference to `uvc_set_ae_mode'
/usr/bin/ld: camera_driver.cpp:(.text+0x1884): undefined reference to `uvc_set_ae_priority'
/usr/bin/ld: camera_driver.cpp:(.text+0x1a0c): undefined reference to `uvc_set_exposure_abs'
/usr/bin/ld: camera_driver.cpp:(.text+0x1c08): undefined reference to `uvc_set_focus_auto'
/usr/bin/ld: camera_driver.cpp:(.text+0x1d7c): undefined reference to `uvc_set_focus_abs'
/usr/bin/ld: camera_driver.cpp:(.text+0x1ef0): undefined reference to `uvc_set_gain'
/usr/bin/ld: camera_driver.cpp:(.text+0x2074): undefined reference to `uvc_set_iris_abs'
/usr/bin/ld: camera_driver.cpp:(.text+0x21f0): undefined reference to `uvc_set_brightness'
/usr/bin/ld: camera_driver.cpp:(.text+0x2374): undefined reference to `uvc_set_pantilt_abs'
/usr/bin/ld: CMakeFiles/camera_node.dir/src/libuvc_camera/camera_driver.cpp.o: in function `libuvc_camera::CameraDriver::ImageCallback(uvc_frame*)':
camera_driver.cpp:(.text+0x2974): undefined reference to `uvc_yuyv2bgr'
/usr/bin/ld: camera_driver.cpp:(.text+0x2994): undefined reference to `uvc_perror'
/usr/bin/ld: camera_driver.cpp:(.text+0x2a24): undefined reference to `uvc_mjpeg2rgb'
/usr/bin/ld: camera_driver.cpp:(.text+0x2a44): undefined reference to `uvc_perror'
/usr/bin/ld: camera_driver.cpp:(.text+0x2b0c): undefined reference to `uvc_any2bgr'
/usr/bin/ld: camera_driver.cpp:(.text+0x2b2c): undefined reference to `uvc_perror'
/usr/bin/ld: CMakeFiles/camera_node.dir/src/libuvc_camera/camera_driver.cpp.o: in function `libuvc_camera::CameraDriver::OpenCamera(libuvc_camera::UVCCameraConfig&)':
camera_driver.cpp:(.text+0x3e80): undefined reference to `uvc_find_devices'
/usr/bin/ld: camera_driver.cpp:(.text+0x3ea0): undefined reference to `uvc_perror'
/usr/bin/ld: camera_driver.cpp:(.text+0x3f24): undefined reference to `uvc_unref_device'
/usr/bin/ld: camera_driver.cpp:(.text+0x4070): undefined reference to `uvc_open'
/usr/bin/ld: camera_driver.cpp:(.text+0x417c): undefined reference to `uvc_get_bus_number'
/usr/bin/ld: camera_driver.cpp:(.text+0x4194): undefined reference to `uvc_get_device_address'
/usr/bin/ld: camera_driver.cpp:(.text+0x42bc): undefined reference to `uvc_get_bus_number'
/usr/bin/ld: camera_driver.cpp:(.text+0x42d4): undefined reference to `uvc_get_device_address'
/usr/bin/ld: camera_driver.cpp:(.text+0x42e4): undefined reference to `uvc_strerror'
/usr/bin/ld: camera_driver.cpp:(.text+0x4348): undefined reference to `uvc_unref_device'
/usr/bin/ld: camera_driver.cpp:(.text+0x4364): undefined reference to `uvc_set_status_callback'
/usr/bin/ld: camera_driver.cpp:(.text+0x43d4): undefined reference to `uvc_get_stream_ctrl_format_size'
/usr/bin/ld: camera_driver.cpp:(.text+0x4400): undefined reference to `uvc_perror'
/usr/bin/ld: camera_driver.cpp:(.text+0x4410): undefined reference to `uvc_close'
/usr/bin/ld: camera_driver.cpp:(.text+0x4420): undefined reference to `uvc_unref_device'
/usr/bin/ld: camera_driver.cpp:(.text+0x4534): undefined reference to `uvc_print_diag'
/usr/bin/ld: camera_driver.cpp:(.text+0x4558): undefined reference to `uvc_start_streaming'
/usr/bin/ld: camera_driver.cpp:(.text+0x4578): undefined reference to `uvc_perror'
/usr/bin/ld: camera_driver.cpp:(.text+0x4588): undefined reference to `uvc_close'
/usr/bin/ld: camera_driver.cpp:(.text+0x4598): undefined reference to `uvc_unref_device'
/usr/bin/ld: camera_driver.cpp:(.text+0x45bc): undefined reference to `uvc_free_frame'
/usr/bin/ld: camera_driver.cpp:(.text+0x45e4): undefined reference to `uvc_allocate_frame'
/usr/bin/ld: CMakeFiles/camera_node.dir/src/libuvc_camera/camera_driver.cpp.o: in function `libuvc_camera::CameraDriver::CloseCamera()':
camera_driver.cpp:(.text+0x4788): undefined reference to `uvc_close'
/usr/bin/ld: camera_driver.cpp:(.text+0x47a4): undefined reference to `uvc_unref_device'
collect2: error: ld returned 1 exit status
make[2]: *** [ros_astra_camera/CMakeFiles/camera_node.dir/build.make:163: devel/lib/astra_camera/camera_node] Error 1
make[1]: *** [CMakeFiles/Makefile2:3405: ros_astra_camera/CMakeFiles/camera_node.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
Invoking "make -j4 -l4" failed
[98%]内置目标astra\u camera\u nodelet
/usr/bin/ld:CMakeFiles/camera_node.dir/src/libuvc_camera/camera_driver.cpp.o:在函数“libuvc_camera::CameraDriver::~CameraDriver()”中:
摄像头驱动程序.cpp:(.text+0xcb4):未定义对“uvc自由帧”的引用
/usr/bin/ld:camera_driver.cpp:(.text+0xcd4):未定义对“uvc_出口”的引用
/usr/bin/ld:CMakeFiles/camera_node.dir/src/libuvc_camera/camera_driver.cpp.o:在函数'libuvc_camera::CameraDriver::getuvcexposurerecb(astra_camera::GetUVCExposureRequest&,astra)中:
摄像头驱动程序.cpp:(.text+0xe84):未定义对“uvc获取曝光”的引用
/usr/bin/ld:CMakeFiles/camera_node.dir/src/libuvc_-camera/camera_-driver.cpp.o:在函数“libuvc_-camera::CameraDriver::setuvcexposurer请求&,astra_-camera::setuvcexposurer响应&)”中:
摄像头驱动程序.cpp:(.text+0xef8):未定义对“uvc\u设置\u ae\u模式”的引用
/usr/bin/ld:camera\u driver.cpp:(.text+0xf14):未定义对“uvc\u set\u ae\u mode”的引用
/usr/bin/ld:camera\u driver.cpp:(.text+0x104c):未定义对“uvc\u set\u exposure\u abs”的引用
/usr/bin/ld:CMakeFiles/camera_node.dir/src/libuvc_camera/camera_driver.cpp.o:在函数“libuvc_camera::CameraDriver::getUVCGainCb(astra_camera::getuvcgaincrequest_&,astra_camera::GetUVCGainResponse_&)”中:
摄像头驱动程序.cpp:(.text+0x10e4):未定义对“uvc获取增益”的引用
/usr/bin/ld:CMakeFiles/camera_node.dir/src/libuvc_-camera/camera_-driver.cpp.o:在函数“libuvc_-camera::CameraDriver::setUVCGainCb(astra_-camera::setuvcgaincrequest_&,astra_-camera::setuvcgaincrease_&)”中:
摄像头驱动程序.cpp:(.text+0x1154):未定义对“uvc设置增益”的引用
/usr/bin/ld:CMakeFiles/camera_node.dir/src/libuvc_camera/camera_driver.cpp.o:在函数'libuvc_camera::CameraDriver::getUVCWhiteBalanceCb(astra_camera::GetUVCWhiteBalanceRequest&,astra_camera::GetUVCWhiteBalanceResponse&')中:
摄像头驱动程序.cpp:(.text+0x11ac):未定义对“uvc获取白平衡温度”的引用
/usr/bin/ld:CMakeFiles/camera_node.dir/src/libuvc_camera/camera_driver.cpp.o:在函数“libuvc_camera::CameraDriver::setUVCWhiteBalanceCb(astra_camera::SetUVCWhiteBalanceRequest_&,astra_camera::SetUVCWhiteBalanceResponse_&)”中:
摄像头\驱动程序.cpp:(.text+0x1220):未定义对“uvc \设置\白色\平衡\温度\自动”的引用
/usr/bin/ld:camera\u driver.cpp:(.text+0x123c):未定义对“uvc\u set\u white\u balance\u temperature\u auto”的引用
/usr/bin/ld:camera\u driver.cpp:(.text+0x125c):未定义对“uvc\u set\u white\u balance\u temperature”的引用
/usr/bin/ld:CMakeFiles/camera_node.dir/src/libuvc_camera/camera_driver.cpp.o:在函数'libuvc_camera::CameraDriver::Start()'中:
摄像头驱动程序.cpp:(.text+0x12cc):未定义对“uvc\u init”的引用
/usr/bin/ld:camera_driver.cpp:(.text+0x12ec):未定义对“uvc_peror”的引用
/usr/bin/ld:CMakeFiles/camera_node.dir/src/libuvc_camera/camera_driver.cpp.o:在函数'libuvc_camera::CameraDriver::Stop()'中:
摄像头驱动程序.cpp:(.text+0x1440):未定义对“uvc\U出口”的引用
/usr/bin/ld:CMakeFiles/camera_node.dir/src/libuvc_camera/camera_driver.cpp.o:在函数'libuvc_camera::CameraDriver::ReconfigureCallback(libuvc_camera::UVCCameraConfig&,unsigned int'):
摄像头驱动程序.cpp:(.text+0x1594):未定义对“uvc设置扫描模式”的引用
/usr/bin/ld:camera_driver.cpp:(.text+0x1710):未定义对“uvc_set_ae_mode”的引用
/usr/bin/ld:camera\u driver.cpp:(.text+0x1884):未定义对“uvc\u set\u ae\u priority”的引用
/usr/bin/ld:camera\u driver.cpp:(.text+0x1a0c):未定义对“uvc\u set\u exposure\u abs”的引用
/usr/bin/ld:camera\u driver.cpp:(.text+0x1c08):未定义对“uvc\u set\u focus\u auto”的引用
/usr/bin/ld:camera\u driver.cpp:(.text+0x1d7c):未定义对“uvc\u set\u focus\u abs”的引用
/usr/bin/ld:camera_driver.cpp:(.text+0x1ef0):未定义对“uvc设置增益”的引用
/usr/bin/ld:camera\u driver.cpp:(.text+0x2074):未定义对“uvc\u set\u iris\u abs”的引用
/usr/bin/ld:camera_driver.cpp:(.text+0x21f0):未定义对“uvc设置亮度”的引用
/usr/bin/ld:camera\u driver.cpp:(.text+0x2374):未定义对“uvc\u set\u pantilt\u abs”的引用
/usr/bin/ld:CMakeFiles/camera_node.dir/src/libuvc_camera/camera_driver.cpp.o:在函数“libuvc_camera::CameraDriver::ImageCallback(uvc_frame*)”中:
camera_driver.cpp:(.text+0x2974):未定义对“uvc_yuyv2bgr”的引用
/usr/bin/ld:camera\u driver.cpp:(.text+0x2994):未定义对“uvc\u peror”的引用
/usr/bin/ld:camera_driver.cpp:(.text+0x2a24):未定义对“uvc_mjpeg2rgb”的引用
/usr/bin/ld:camera\u driver.cpp:(.text+0x2A4):未定义对“uvc\u peror”的引用
/usr/bin/ld:camera_driver.cpp:(.text+0x2b0c):未定义对“uvc_any2bgr”的引用
/usr/bin/ld:camera_driver.cpp:(.text+0x2b2c):未定义对“uvc_peror”的引用
/usr/bin/ld:CMakeFiles/camera_node.dir/src/libuvc_camera/camera_driver.cpp.o:在函数“libuvc_camera::CameraDriver::OpenCamera(libuvc_camera::UVCCameraConfig&)”中:
摄像头驱动程序.cpp:(.text+0x3e80):未定义对“uvc\u查找设备”的引用
/usr/bin/ld:camera\u driver.cpp:(.text+0x3ea0):未定义对“uvc\u peror”的引用
/usr/bin/ld:camera\u driver.cpp:(.text+0x3f24):未定义对“uvc\u unref\u设备”的引用
/usr/bin/ld:camera_driver.cpp: