How to Install/Configure Opencv3.2.0 with C++, Visual Studio 2017

How can I install/configure OpenCV3.2.0 with C++, Visual Studio 2017?

Since the Doc from official OpenCV tutorial is outdated, I will suggest:

  1. get VS-2017 with full compiler like:

    Sample Image

  2. get the newest CMake (uninstall older versions)

  3. get from github the sourceCode here and here and place those in C:/openCV folder, create a BUILD folder there too

  4. open Cmake, select the opencv master folder... in the build write the build directory like:

Sample Image


  1. click configure, select visual studio 15 2017 and leave selected "use default native compilers", then press "finish"...

Sample Image

6.1 now you should see cmake doing its job :)

Sample Image


  1. once configuration is done set the opencv extra modules path and click configure again, and when is done click generate! :)

    Sample Image

  2. when generation is done click "open project", this will open a huge project in visual studio named "opencv", now you can close cmake, we dont need that anymore.

  3. now, when the solution is ready, be sure you are in "debug" conf and do right click on "ALL_BUILD" and then "build" (that can take a while) once build succeed change to "release" config and do right click on "ALL_BUILD" and then "build" again.

  4. now,be sure you are in "debug" conf and do right click on "INSTALL" and then "build" (that can take a while) once build succeed change to "release" config and do right click on "INSTALL" and then "build" again.

opencv3.2 compilation with debug mode x64 not possible on visual studio 2017

I re-configured with cmake and generated the project using Visual Studio 15 2017 Win64, now I find x64 in debug and my problem is resolved. Before, I selected Visual Studio 15 2017 without precision Win64.

many missing .lib files in the installed OpenCV3.2.0 for Windows 10 64bit

I'm not familiar with openvc, but you could try to remove all these libs and replace with new single lib: opencv_world320.lib

From What is opencv_world:

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.

Looks like opencv_world now replaces all that zoo of libs that used to come with opencv.

Failed to run conda install -c menpo opencv3=3.2.0 in Windows7

run the following command

conda install -c conda-forge opencv=3.2.0


Related Topics



Leave a reply



Submit