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