[Linux error] Cannot open shared object file

发布时间:2024年01月20日

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
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。