错误如下:
/install/runYolov3: error while loading shared libraries: libopencv_highgui.so.4.1: cannot open shared object file: No such file or directory
参考链接:
QtOpenCV: error while loading shared libraries: libopencv_core.so.3.2: cannot open shared object fil
1、打开路径
cd /etc/ld.so.conf.d
2、创建文件
touch OpenCV.conf
3、 在OpenCV.conf中写入 :
/usr/local/lib
注:该路径为opencv install之后的路径,一般默认的路径为/usr/local/lib,即lib*.so库文件所在的路径。
4、在终端执行命令
ldconfig