Creating an OpenCV 3.0.0 DLL for Visual Studio 2015 with Cmake

Following the instructions here:

docs.opencv.org/doc/tutorials/introduction/windows_visual_studio_Opencv/windows_visual_studio_Opencv.html#windows-visual-studio-how-to

I installed the OpenCV project in the VS 2015 community and used pre-built libraries. It works until I get this message:

"MSVCP120D.dll is missing from your computer"

By doing some of the searches that I have compiled, this means that pre-build libraries should only be used with an older version of VS, so I decided that I would just compile them myself using this:

docs.opencv.org/doc/tutorials/introduction/windows_install/windows_install.html#windowssetpathandenviromentvariablehere

Despite the fact that it seems to be compiling correctly and, despite the mark "BUILD_SHARED_LIBS", I can not find the DLL files in the output - there are a lot of VS solutions:

imgur.com/JdSc5CH

Can anyone give me some tips on how to create DLLs?

thanks!

+4
source share
2 answers

I am new to this. Since then I have learned a lot about Visual Studio, about CMake, and about OpenCV. Got it all now, took me in a day or two.

Turns out you need to compile the openCV library from the git repository to be compatible with Visual Studio 2015 (VS14). For this date, you do not need to prepare a version of VS14.

, , , - . , .

+3

VS2015 MSVCP140.dll, , VS2013.

BUILD_SHARED_LIBS /.

0

All Articles