VS2015 manual compilation of opencv source code, vs2015opencv source code
VS2015 opencv source code compilation tools: VS2015 and CMake3.10.01. Open the Cmake-gui tool and select the opencv source code and compilation output path. Then click configure to select the corresponding vs version and click finished.
2. Select a configuration item.
BUILD_opecv_worldIn this way, only one library file is generated. You only need to specify this file When configuring the environment. Otherwise, many modules will be generated, if you are not familiar with it, you will be confused .... Click Generate.
3. Click Open Project or Open the OpenCV. sln file in the output directory. 4. vs is enabled. Right-click ALL_BUILD and choose generate to compile.
5. After several minutes, the compilation is completed. Right-click INSTALL and select generate to generate the install directory:
After entering install:
Library file:
If BUILD_opencv_world is not selected during configuration, a large number of lib and dll files will be generated here. There is only one.
Here is just an example of compiling the libraries in debug mode. You can compile the libraries in release mode by yourself.