您的位置:首页 > 运维架构

./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
相关文章推荐