I tried to follow instruction from http://docs.opencv.org/master/d3/d52/tutorial_windows_install.html to install OpenCV on Windows 10 machine with Visual Studio 15.3.3 and CMake 3.9.1. Unfortunately the script failed with the following error:
$ ./installOCV.sh
clonning opencv
Cloning into 'opencv'...
remote: Counting objects: 211161, done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 211161 (delta 0), reused 0 (delta 0), pack-reused 211155
Receiving objects: 100% (211161/211161), 430.55 MiB | 8.55 MiB/s, done.
Resolving deltas: 100% (146155/146155), done.
Checking out files: 100% (5407/5407), done.
clonning opencv_contrib
Cloning into 'opencv_contrib'...
remote: Counting objects: 22145, done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 22145 (delta 2), reused 8 (delta 2), pack-reused 22137
Receiving objects: 100% (22145/22145), 119.49 MiB | 8.42 MiB/s, done.
Resolving deltas: 100% (13216/13216), done.
/c/OpenCV-Build/UsingGitBash/lib/build/opencv /c/OpenCV-Build/UsingGitBash/lib
CMake Error at CMakeLists.txt:114 (project):
Failed to run MSBuild command:
MSBuild.exe
to get the value of VCTargetsPath:
Any help is appreciated