Skip to main content

Posts

Showing posts from September, 2017

Build and Install OpenCV for Visual Studio 2015

Recently, I did a fresh installation of Windows 10 on my laptop and had to reinstall OpenCV. Since I use OpenCV version 3.0.0 in my office and have the source available, I decided to build it instead of downloading pre-compiled binaries. In this article, I will describe how I build OpenCV 3.0.0 using CMake and Visual Studio and set up my development environment. Softwares OpenCV 3.0.0 Visual Studio 2015 Community Edition CMake 3.9.3 Description I put the OpenCV source (extracted) in C:\opencv\sources directory. The reason is simply to make it identical to my office PC. Other uses of directories/names in this article is also for the same purpose. I already had Visual Studio 2015 installed. I downloaded and installed CMake and opened the graphical UI application CMake (cmake-gui) from the Start menu. In CMake, I selected the source folder C:\opencv\sources through Browse Source button. I also selected C:\opencv\sources\build as the directory for building binaries. Then I pr