error while loading shared libraries: libopencv_highgui.so.4.1

錯誤如下:
/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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章