linux qt ros opencv error while loading shared libraries

Posted COCO_PEAK_NOODLE

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了linux qt ros opencv error while loading shared libraries相关的知识,希望对你有一定的参考价值。

pro文件,我使用安装ros后opencv文件

INCLUDEPATH += /opt/ros/kinetic/include/opencv-3.3.1-dev \\
               /opt/ros/kinetic/include/opencv-3.3.1-dev/opencv \\
               /opt/ros/kinetic/include/opencv-3.3.1-dev/opencv2


LIBS += /opt/ros/kinetic/lib/x86_64-linux-gnu/libopencv_core3.so \\
        /opt/ros/kinetic/lib/x86_64-linux-gnu/libopencv_highgui3.so \\
        /opt/ros/kinetic/lib/x86_64-linux-gnu/libopencv_calib3d3.so \\
        /opt/ros/kinetic/lib/x86_64-linux-gnu/libopencv_dnn3.so \\
        /opt/ros/kinetic/lib/x86_64-linux-gnu/libopencv_features2d3.so \\
        /opt/ros/kinetic/lib/x86_64-linux-gnu/libopencv_flann3.so \\
        /opt/ros/kinetic/lib/x86_64-linux-gnu/libopencv_ml3.so \\
        /opt/ros/kinetic/lib/x86_64-linux-gnu/libopencv_imgproc3.so \\
        /opt/ros/kinetic/lib/x86_64-linux-gnu/libopencv_imgcodecs3.so \\
        /opt/ros/kinetic/lib/x86_64-linux-gnu/libopencv_objdetect3.so \\
        /opt/ros/kinetic/lib/x86_64-linux-gnu/libopencv_video3.so \\
        /opt/ros/kinetic/lib/x86_64-linux-gnu/libopencv_videoio3.so \\
        /opt/ros/kinetic/lib/x86_64-linux-gnu/libopencv_stitching3.so \\
        /opt/ros/kinetic/lib/x86_64-linux-gnu/libopencv_photo3.so

结果运行报错
error while loading shared libraries

解决办法
https://blog.csdn.net/rong11417/article/details/103905794

以上是关于linux qt ros opencv error while loading shared libraries的主要内容,如果未能解决你的问题,请参考以下文章

Linux学习OpenCV+ROS 实现人脸识别(Ubantu16.04)

ROS2之OpenCV的windows和linux差异在哪里

QT ros环境搭建以及打包发布

CV_Bridge | Image的ROS数据类型与opencv数据类型之间的转换

如何使用Qt插件在Qt中进行ROS开发

ROS交叉编译——protobuf/yaml-cpp/opencv