Previously summed up a opencv2.49+visualstudio2010 development environment configuration, OpenCV3.1.0 released, the computer has been reinstalled VS2013, so ready to see OpenCV3.1.0 than OpenCV2.4.9 what improvements.
Here's a blog for reference: Improvements to the OpenCV3.0 3.1 version (thanks to bloggers for sharing).
The first thing to do is to develop the environment configuration, the specific process is as follows:
Step 1:OPENCV environment Variable configuration
My Computer---> Properties---> Advanced system settings---> Advanced---> Environment variables---> System variables--->path---> Edit, add the bin directory of the OpenCV installation directory, and remember to include the;(semicolon), The path on my computer is: D:\OpenCV\OpenCV4Windows\OpenCV-3.1.0-Windows\build\x64\vc12\bin
The configuration to be done in step 2:vs2013
The specific actions are as follows:
Configure "platform" in step 3:vs2013
The specific actions are as follows:
Step 4:vs2013 configuration: Include directory + library Directory + linker
(1) Include directory configuration:
"Include directory": (1) OpenCV ... \include directory under installation directory
(2) OpenCV ... \include\opencv directory under the installation directory
(3) OpenCV ... \include\opencv2 directory under the installation directory
(Note: You can add only one ... \include directory here)
(2) Library directory configuration:
The specific action is similar to the configuration of the include directory, except that the path you added is different.
"Library Directory": X64\vc12\lib in the OpenCV directory (the path was incorrectly written here)
(Note: (1) The x64 indicates that the computer is 64-bit, 32-bit selection x86
(2) VC10 representation vs is 2010,vc11 corresponding VS2012,VC12 vs2013,vc14 corresponding VS2015) (3) linker configuration:
Add the name of the library under the OPENCV installation directory.
such as: Opencv_world310.lib
(Note: The Debug configuration of the project adds a Lib file ending with D
The release configuration of the project adds additional Lib files)
At this point, all configuration work has been completed.