lvxiaof 2022-11-23 21:39 采纳率: 41.7%
浏览 167
已结题

usb_cam文件编译时出现以下问题,请问怎么解决

usb_cam文件编译时出现以下问题,请问怎么解决

[100%] Built target person_publisher
/home/lxz/catkin_ws/devel/lib/libusb_cam.so:对‘av_packet_from_data’未定义的引用
/home/lxz/catkin_ws/devel/lib/libusb_cam.so:对‘sws_scale’未定义的引用
/home/lxz/catkin_ws/devel/lib/libusb_cam.so:对‘av_frame_alloc’未定义的引用
/home/lxz/catkin_ws/devel/lib/libusb_cam.so:对‘avcodec_close’未定义的引用
/home/lxz/catkin_ws/devel/lib/libusb_cam.so:对‘av_frame_get_buffer’未定义的引用
/home/lxz/catkin_ws/devel/lib/libusb_cam.so:对‘av_new_packet’未定义的引用
/home/lxz/catkin_ws/devel/lib/libusb_cam.so:对‘avcodec_alloc_context3’未定义的引用
/home/lxz/catkin_ws/devel/lib/libusb_cam.so:对‘av_log_set_level’未定义的引用
/home/lxz/catkin_ws/devel/lib/libusb_cam.so:对‘avcodec_free_context’未定义的引用
/home/lxz/catkin_ws/devel/lib/libusb_cam.so:对‘av_free’未定义的引用
/home/lxz/catkin_ws/devel/lib/libusb_cam.so:对‘avcodec_open2’未定义的引用
/home/lxz/catkin_ws/devel/lib/libusb_cam.so:对‘avcodec_send_packet’未定义的引用
/home/lxz/catkin_ws/devel/lib/libusb_cam.so:对‘sws_getContext’未定义的引用
/home/lxz/catkin_ws/devel/lib/libusb_cam.so:对‘av_image_get_buffer_size’未定义的引用
/home/lxz/catkin_ws/devel/lib/libusb_cam.so:对‘av_parser_close’未定义的引用
/home/lxz/catkin_ws/devel/lib/libusb_cam.so:对‘av_parser_init’未定义的引用
/home/lxz/catkin_ws/devel/lib/libusb_cam.so:对‘avcodec_register_all’未定义的引用
/home/lxz/catkin_ws/devel/lib/libusb_cam.so:对‘sws_freeContext’未定义的引用
/home/lxz/catkin_ws/devel/lib/libusb_cam.so:对‘avcodec_receive_frame’未定义的引用
/home/lxz/catkin_ws/devel/lib/libusb_cam.so:对‘av_image_copy_to_buffer’未定义的引用
/home/lxz/catkin_ws/devel/lib/libusb_cam.so:对‘avcodec_find_decoder’未定义的引用
collect2: error: ld returned 1 exit status
usb_cam/CMakeFiles/usb_cam_node.dir/build.make:170: recipe for target '/home/lxz/catkin_ws/devel/lib/usb_cam/usb_cam_node' failed
make[2]: *** [/home/lxz/catkin_ws/devel/lib/usb_cam/usb_cam_node] Error 1
CMakeFiles/Makefile2:6323: recipe for target 'usb_cam/CMakeFiles/usb_cam_node.dir/all' failed
make[1]: *** [usb_cam/CMakeFiles/usb_cam_node.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j8 -l8" failed

  • 写回答

1条回答 默认 最新

  • 赵4老师 2022-11-24 10:13
    关注

    sudo apt-get install libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 系统已结题 12月3日
  • 已采纳回答 11月25日
  • 创建了问题 11月23日

悬赏问题

  • ¥15 人大金仓下载,有人知道怎么解决吗
  • ¥15 一个小问题,本人刚入门,哪位可以help
  • ¥15 python安卓开发
  • ¥15 使用R语言GD包一直不出结果
  • ¥15 计算机微处理器与接口技术相关问题,求解答图片的这个问题,有多少个端口,端口地址和解答问题的方法和思路,不要AI作答
  • ¥15 如何根据一个截图编写对应的HTML代码
  • ¥15 stm32标准库的PID角度环
  • ¥15 ADS已经下载好了,但是DAS下载不了,一直显示这两种情况,有什么办法吗,非常急!
  • ¥100 Excel 点击发送自动跳转outlook邮件
  • ¥15 gis中用栅格计算器或加权总和后图层不显示,值也明显不对