找回密码
 立即注册
搜索
查看: 12124|回复: 6

编译遇到opencv错误

[复制链接]

2

主题

2

帖子

14

积分

新手上路

Rank: 1

积分
14
发表于 2022-3-11 09:43:55 | 显示全部楼层 |阅读模式
环境的opencv的版本原来是3.2.0的
catkin_make编译遇到错误
  1. CMakeFiles/kcf_node.dir/src/kcftracker.cpp.o: In function `KCFTracker::KCFTracker(bool, bool, bool, bool)':
  2. kcftracker.cpp:(.text+0x12ac): undefined reference to `cv::Mat::updateContinuityFlag()'
  3. CMakeFiles/kcf_node.dir/src/kcftracker.cpp.o: In function `KCFTracker::getFeatures(cv::Mat const&, bool, float)':
  4. kcftracker.cpp:(.text+0x2570): undefined reference to `cvIplImage(cv::Mat const&)'
  5. kcftracker.cpp:(.text+0x264c): undefined reference to `cv::Mat::updateContinuityFlag()'
复制代码
查了一下好像是opencv3.2没有updateContinuityFlag()方法然后将opecncv版本升级到了3.4.2
现在又遇到了一个新的错误
  1. make[2]: *** No rule to make target '/usr/lib/aarch64-linux-gnu/libopencv_objdetect.so.3.2.0', needed by '/home/clbrobot/catkin_ws/devel/lib/libDepthImageToLaserScan.so'.  Stop.
  2. CMakeFiles/Makefile2:6979: recipe for target 'depthimage_to_laserscan-melodic-devel/CMakeFiles/DepthImageToLaserScan.dir/all' failed
  3. make[1]: *** [depthimage_to_laserscan-melodic-devel/CMakeFiles/DepthImageToLaserScan.dir/all] Error 2
  4. Makefile:140: recipe for target 'all' failed
  5. make: *** [all] Error 2
  6. Invoking "make -j1 -l1" failed
复制代码

这个不知道要怎么搞了,希望能帮忙解决一下
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

粤ICP备20017043号|小黑屋|手机版|Archiver|轮趣科技(东莞)有限公司  

GMT+8, 2024-11-22 16:22 , Processed in 0.060647 second(s), 22 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表