Error while loading shared libraries: libopencv_highgui.so.4.1: cannot open shared object file:
OpenCV4.1.1 解决无法如下问题:
error while loading shared libraries: libopencv_highgui.so.4.1: cannot open shared object file: No such file or directory
- step1: cd /etc/ld.so.conf.d
- step2: 创建 Opencv.conf 文件: sudo touch OpenCV.conf
- 在OpenCV.conf 文件中添加 libopencv_highgui.so.4.1 所在的文件夹地址
- step3: sudo vim OpenCV.conf // 使用sudo 解决 readonly 问题
- step4: sudo ldconfig