检查OpenCV是否用TBB编译 [英] Check if OpenCV is compiled with TBB

查看:185
本文介绍了检查OpenCV是否用TBB编译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何检查Linux计算机上安装的OpenCV库是否针对TBB库编译?

How can I check if the OpenCV libraries installed on my Linux machine are compiled against TBB libraries or not?

推荐答案

使用 ldd 打印* libopencv_core *的共享库依赖项:

Print the shared library dependencies of *libopencv_core* using ldd:

ldd /usr/local/lib/libopencv_core.so

您应该在列表中看到TBB.

And you should see TBB on the list.

如果您使用的是Mac OS X,则等效为 otool -L ,在我的系统上,其输出为:

If you were on Mac OS X the equivalent is otool -L, and on my system it outputs:

/Users/karlphillip/installers/OpenCV-2.4.2/build/lib/libopencv_core.2.4.dylib (compatibility version 2.4.0, current version 2.4.2)
libtbb.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 52.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0)

因此,根据上面的输出,我的OpenCV安装被构建为支持TBB. ; D

So according to the output above, my OpenCV installation was built to support TBB. ;D

这篇关于检查OpenCV是否用TBB编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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