NikoLeo886
NikoLeo886
采纳率0%
2021-01-30 11:56

ORB SLAM2编译问题

运行./build_ros.sh的时候遇到如下报错

[ 55%] Linking CXX executable ../MonoAR
/usr/bin/ld: warning: libopencv_imgproc.so.4.2, needed by /home/niko/catkin_ws/devel/lib/libcv_bridge.so, may conflict with libopencv_imgproc.so.3.4
/usr/bin/ld: CMakeFiles/MonoAR.dir/src/AR/ViewerAR.cc.o: undefined reference to symbol '_ZN2cv7putTextERKNS_17_InputOutputArrayERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_6Point_IiEEidNS_7Scalar_IdEEiib'
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libopencv_imgproc.so.4.2.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/MonoAR.dir/build.make:265:../MonoAR] 错误 1
make[1]: *** [CMakeFiles/Makefile2:541:CMakeFiles/MonoAR.dir/all] 错误 2
make[1]: *** 正在等待未完成的任务....
^Cmake[2]: *** [CMakeFiles/Stereo.dir/build.make:118: CMakeFiles/Stereo.dir/src/ros_stereo.cc.o] 中断
make[2]: *** [CMakeFiles/RGBD.dir/build.make:118: CMakeFiles/RGBD.dir/src/ros_rgbd.cc.o] 中断
make[1]: *** [CMakeFiles/Makefile2:568: CMakeFiles/Stereo.dir/all] 中断
make[1]: *** [CMakeFiles/Makefile2:757: CMakeFiles/RGBD.dir/all] 中断
make: *** [Makefile:130: all] 中断


来个大神给个有效的解决办法用的ROS NOETIC OPENCV版本是3.4.13

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

2条回答

  • weixin_45698626 Mister_Andy? 1月前

    我的问题也一样,请问解决了吗

    点赞 评论 复制链接分享
  • weixin_47573148 0-1-0 1月前

    请问您问题解决了吗?我和你的一样。。。。

    点赞 评论 复制链接分享

为你推荐