Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To build OpenCV for Windows you will need cmake and Visual Studio:

  • create build folder near opencv sources folder and go into this folder
  • <full-path-to-cmake>\cmake -G"Visual Studio 12 Win64" -DWITH_IPP=ON -DBUILD_SHARED_LIBS=ON -DWITH_OPENCL=OFF ../opencv
  • <full-path-to-cmake>\cmake --build . --config release -- /maxcpucount:4

Notes:

  • run described commands in terminal (cmd.exe)
  • use appropriate Visual Studio generator name - the -G cmake option (check output of cmake --help for possible variants)
  • take a look at build logs: some random windows build