自学内容网 自学内容网

[Linux error] Cannot open shared object file

OpenCV runtime error: "libopencv_core.so.3.2: cannot open shared object file: No such file or directory"

1st:

sudo find / -name "libopencv_core.so.3.2*"

if you can get the result: /usr/local/lib/libopencv_core.so.3.2. please follow the second step,

if not, the second step may not work.

2nd;

Create a file called /etc/ld.so.conf.d/opencv.conf and write to it the path to the folder where the binary is stored

For example, I wrote /usr/local/lib/ to my opencv.conf file.

3rd:

Run the command line as follows.

sudo ldconfig -v

When you finished these steps, your issue may be resolved.


原文地址:https://blog.csdn.net/qq_40837542/article/details/135721139

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!