./facedetect: error while loading shared libraries: libopencv_nonfree.so.2.4:
2018-01-06 19:49
816 查看
报错:
执行opencv文件时
./facedetect--cascade="../../data/haarcascades/haarcascade_frontalface_alt.xml"--nested-cascade="../../data/haarcascades/haarcascade_eye.xml"--scale=1.3 lena.jpg
./facedetect: error while loading shared libraries:libopencv_nonfree.so.2.4: cannot open shared object file: No suchfile or directory
解决:
找到libopencv开头的库目录,通常在/usr/local/lib
在/etc/ld.so.conf.d/下面新建一个opencv.conf,写入/usr/local/lib
执行sudo ldconfig -v
执行opencv文件时
./facedetect--cascade="../../data/haarcascades/haarcascade_frontalface_alt.xml"--nested-cascade="../../data/haarcascades/haarcascade_eye.xml"--scale=1.3 lena.jpg
./facedetect: error while loading shared libraries:libopencv_nonfree.so.2.4: cannot open shared object file: No suchfile or directory
解决:
找到libopencv开头的库目录,通常在/usr/local/lib
在/etc/ld.so.conf.d/下面新建一个opencv.conf,写入/usr/local/lib
执行sudo ldconfig -v
相关文章推荐
- error while loading shared libraries: libopencv_nonfree.so.2.4
- error while loading shared libraries: libopencv_imgcodecs.so.3.1
- [error]error while loading shared libraries: libpcre.so.1 解决
- 解决./exam5-5: error while loading shared libraries: libdemo.so: cannot open shared object file:
- error while loading shared libraries: libopencv_highgui.so.2.4 linux
- error while loading shared libraries: libcudart.so.7.5: cannot open shared ......解决方法
- ./utserver: error while loading shared libraries: libcrypto.so.0.9.8: cannot open shared object file
- [error]error while loading shared libraries: libpcre.so.1 解决
- ./nginx: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No
- sqlplus: error while loading shared libraries: /opt/oracle/product/OraHome/lib/libclntsh.so.11.1: ca
- QtOpenCV: error while loading shared libraries: libopencv_core.so.3.2: cannot open shared object fil
- ./vddk: error while loading shared libraries: libvixDiskLib.so.6
- ./snmpGet: error while loading shared libraries: libsnmp++.so: cannot open shared object file: No su
- error while loading shared libraries: libperl.so: cannot open shared object file: No such file or di
- error while loading shared libraries: libXXX.so.x: cannot open shared object file: No such file or
- OpenCV编译遇到的一个常见错误-./bin: error while loading shared libraries: libopencv_highgui.so.3.2: cannot open
- 错误解决error while loading shared libraries: libXXX.so.X: cannot open shared object file: No such file
- error while loading shared libraries: libTradeInterfaceSDK.so: cannot open shared object file: No su
- Linux下redis编程:error while loading shared libraries: libhiredis.so.0.11
- centos打开Android Studio后出现的错误:adb: error while loading shared libraries: libncurses.so.