openCV编译的程序运行时error while loading shared libraries

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了openCV编译的程序运行时error while loading shared libraries相关的知识,希望对你有一定的参考价值。

出现这类错误表示,系统不知道xxx.so放在哪个目录下,这时候就要在/etc/ld.so.conf中加入xxx.so所在的目录。

一般而言,有很多的so会存放在/usr/local/lib这个目录底下,去这个目录底下找,果然发现自己所需要的.so文件。

所以,在/etc/ld.so.conf中加入/usr/local/lib这一行,保存之后,再运行:/sbin/ldconfig –v更新一下配置即可。

 

以上是关于openCV编译的程序运行时error while loading shared libraries的主要内容,如果未能解决你的问题,请参考以下文章

运行编译后的程序报错 error while loading shared libraries: lib*.so: cannot open shared object file: No such f

我的C语言程序在编译器上运行正确,但作业提交上去却是runtime error这是啥原因?

linux qt ros opencv error while loading shared libraries

linux qt ros opencv error while loading shared libraries

Qt Creator新安装后运行一个程序后,出现错误:Error while building/deploying project dict-qt (kit: Desktop Qt 5.10.0 Mi

Linux中error while loading shared libraries错误解决办法