OPENCV3.1.0+VS2013 Development Environment Configuration _OPENCV Learning

Source: Internet
Author: User

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.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.