I have previously given up on installing OpenCV on my Windows 7 PC but now it has come back to haunt me, this time I'm trying to build its libraries using Visual Studio Community 2015.
I have tried finding a decent procedure on how to install it but they all sound simple until you encounter tons of errors when building ALL_BUILD in VS.
Here's what I did:
- Downloaded the OpenCV 3.1 installer
- Ran the installer and installed OpenCV in C:\
- Added the OPENCV_DIR environment variable pointing to C:\opencv\build
- Opened cmake-gui and set the source and build folders to C:\opencv\sources and C:\opencv\build, respectively
- Clicked Configure, unchecked WITH_VTK option, clicked Configure again, then clicked Generate
- Opened the generated solution file in C:\opencv\build
- Right-clicked on the ALL_BUILD project and clicked Build
Only 11 projects were successfully built and 79 failed. The procedure they have on the OpenCV website is so outdated that it made me give up a long time ago. And there are several other resources that give equally confusing instructions.
Your help will be appreciated!