Check if OpenCV is compiled with TBB

非 Y 不嫁゛ 提交于 2019-11-30 01:51:39

问题


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


回答1:


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

ldd /usr/local/lib/libopencv_core.so

And you should see TBB on the list.

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)

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



来源:https://stackoverflow.com/questions/12457885/check-if-opencv-is-compiled-with-tbb

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!