opencv中缺少libcxcore.so.2 [英] libcxcore.so.2 missing in openCV

查看:957
本文介绍了opencv中缺少libcxcore.so.2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在Ubuntu上运行一些预编译的代码(源代码不可用),这需要安装openCV。我昨天安装了最新版本的openCV(从SVN),并根据debian安装指南在openCV网站(cmake - > make - > sudo make install)安装它,一切似乎都很好。

I'm trying to run some precompiled code (source code is not available) on Ubuntu, which requires openCV to be installed. I installed the latest version of openCV (from the SVN) yesterday, and installed it according to the debian install guide on the openCV website (cmake -> make -> sudo make install) and everything seemed to go fine.

现在,当我尝试运行预编译代码时,我收到错误./stipdet:错误时加载共享库:libcxcore.so.2:无法打开共享对象文件:没有这样的文件或目录
似乎其他人有类似的问题管理通过将libcxcore.so.2从opencv lib文件夹移动到其他地方,但我不解决它在我的opencv文件夹中有libcxcore.so.2。我看到libopencv_core.so.2.2在那里等东西。可能是libcxcore的名称在openCV的最新版本中已经更改了?

Now when I try to run the precompiled code, i'm getting the error "./stipdet: error while loading shared libraries: libcxcore.so.2: cannot open shared object file: No such file or directory" It seems that other people who are having a similar problem managed to fix it by moving libcxcore.so.2 from the opencv lib folder to somewhere else, but I don't have libcxcore.so.2 in my opencv folder at all. I do see libopencv_core.so.2.2 in there among other things. Could it be that the name of libcxcore has been changed in the latest version of openCV? Or did I not install it correctly?

btw:在终端中运行locate libcxcore不返回任何内容

btw: running locate libcxcore in the terminal returns nothing

推荐答案

我有同样的问题,我通过安装libcv,libcvaux,libhighgui和他们的-dev库从Synaptics解决了这个问题。但是程序依赖于libcv.so.2共享库,但Synaptics安装libcv.so.4.0.0。所以我通过运行命令为每个安装的库创建符号链接:

I had the same problem and I solved the problem by installing libcv, libcvaux, libhighgui and their -dev libraries from Synaptics. But the program dependent on the libcv.so.2 shared libraries but Synaptics installs libcv.so.4.0.0. So I created symbolic links for every installed library by running command:

sudo ln -s /usr/lib/libcxcore.so.4.0.0 /usr/lib/libcxcore.so.2

等等。程序需求。现在它对我很好。

and so on for every library that the program needs. Now it is working fine for me.

这篇关于opencv中缺少libcxcore.so.2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆