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

本文详细介绍了如何通过查找libopencv_core.so.3.2库文件并配置ld.so.conf来解决OpenCV库文件链接失败的问题。具体步骤包括使用find命令定位库文件位置、创建配置文件以及更新系统库缓存。
  1. Find the folder containing the shared library libopencv_core.so.3.2 using the following command line.
sudo find / -name "libopencv_core.so.3.2*"

Then I got the result: /usr/local/lib/libopencv_core.so.3.2.
2. 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.
3. Run the command line as follows.

sudo ldconfig -v
  1. Try to run the test binary again.
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值