opencv 中BUILD_opencv_world

-------------------------------------------------------以下来自日文网站 谷歌翻译----------------------------------------------------------

link:http://evemedia.org/tetra/2012/12/04/build_opencv_world

当您启动一个项目使用OpenCV在Visual Studio中,最麻烦的是指定库,并经常讲。

喜欢,数百个......这项工作。

每个人淫女士们,先生们,这是用来每天OpenCV的,这将是玩弄的Visual Studio默认属性,图书馆OpenCV中是Irassharu的是被链接到任何项目,当您更新反正我说的Mendokusa ......

放心吧,在树干的OpenCV,已创建选项指定的库,以消除麻烦的。

它的名字,BUILD_opencv_world!

通过指定此选项,除了从库文件中每个模块opencv_coreXXXd.lib的,等和opencv_highguiXXXd.lib,库文件被命名为opencv_worldXXXd.lib的是由。

opencv_world是一个对象集合到一个单独的文件中包含的所有模块的功能代码。

,而不是到现在为止已经大量的单独指定的库,指定链接的文件,我可以像以前一样进行编译。

此外,由连接的opencv_worldXXX.lib的创建的可执行文件,我需要opencv_worldXXX.dll仅在运行时。

有时甚至当你分发可执行文件的名字命名,友好的眼睛被迫扩大到多个DLL根据用户的环境。

和的CMake的BUILD_opencv_world。


---------------------------------------------------------以下来自opencv官网--------------------------------------------------------------

link:http://answers.opencv.org/question/3614/what-is-opencv_world-package-in-opencv-243-rc/


What is opencv_world package in OpenCV 2.4.3 rc?

asked Oct 31 '12

Gianluigi gravatar image Gianluigi   
48   5 

As title, I am trying to build new OpenCV 2.4.3 rc with cmake, but this package name is really confused me. What is this package? Should I build it?

1 Answer

Sort by » oldest newest most voted
2

answered Oct 31 '12

Kirill Kornyakov gravatar image Kirill Kornyakov   
1505   6  14  41 

updated Oct 31 '12

Read about opencv_world here. And about the full history here.

opencv-world [Vadim and Andrey]

The new super-module modestly called opencv_world has been introduced. It combines all the other modules selected by user and thus it's much more convenient for redistribution, comparing to ~20 shared libraries libopencv_core, libopencv_imgproc etc. The module takes ~10-15Mb and it is linked from the same object files (their union) as the other modules, so the overall OpenCV compile time increased by just a few seconds. Big thanks to Andrey Kamaev from tegra team who came with the implementation idea and then significantly improved and fixed the initial version of the cmake script.

link delete flag offensive edit

Comments

Thanks for this great package. I think the pkg-config should be changed to link libopencv_world when this option has been checked?

Gianluigi  (Nov 1 '12) edit

你可能感兴趣的:(opencv)