OpenCV 3.x only contains one lib - opencv_world.lib?

后端 未结 2 1074
说谎
说谎 2020-12-09 16:40

I\'m trying to update my OpenCV version from 2.4.9 to the newest version, 3.10. I downloaded the Windows binary from here, having navigated there from the official OpenCV si

相关标签:
2条回答
  • 2020-12-09 16:52

    By default, the binary version of OpenCV-3.x doesn't contain the separate libs like opencv_core.lib. Instead, these modules are integrated in opencv_world.lib, so you only need to link to it.

    On the other hand, if you do want separate libs, i.e. uniform APIs with OpenCV-2.x, you can build it yourself using CMake by enable the libs that you want. Like

    This will generate opencv_core.lib.

    0 讨论(0)
  • 2020-12-09 17:13

    Or run cmake with -D BUILD_opencv_world=OFF key

    0 讨论(0)
提交回复
热议问题