Mscv2013 build opencv Development Environment

Source: Internet
Author: User

The libraries compiled here are compiled manually.

1. First set the system environment variable:

D:\3rdPartLib\opencv-2.4.9\build\vs2013\install\x64\vc12\bin

 

2. Specify the path containing the "file directory" without distinguishing the debug and release modes:

D:\3rdPartLib\opencv-2.4.9\build\vs2013\install\include

 

3. Specify the "library directory". The debug and release modes are set the same:

D:\3rdPartLib\opencv-2.4.9\build\vs2013\install\x64\vc12\lib

 

4. The trouble is to add "additional dependencies,

Dependencies in debug mode:

opencv_videostab249d.lib;opencv_video249d.lib;opencv_ts249d.lib;opencv_superres249d.lib;opencv_stitching249d.lib;opencv_photo249d.lib;opencv_ocl249d.lib;opencv_objdetect249d.lib;opencv_nonfree249d.lib;opencv_ml249d.lib;opencv_legacy249d.lib;opencv_imgproc249d.lib;opencv_highgui249d.lib;opencv_gpu249d.lib;opencv_flann249d.lib;opencv_features2d249d.lib;opencv_core249d.lib;opencv_contrib249d.lib;opencv_calib3d249d.lib;

The difference between the release mode and the debug mode is that a symbol "D" is missing behind the library file, as shown below:

opencv_videostab249.lib;opencv_video249.lib;opencv_ts249.lib;opencv_superres249.lib;opencv_stitching249.lib;opencv_photo249.lib;opencv_ocl249.lib;opencv_objdetect249.lib;opencv_nonfree249.lib;opencv_ml249.lib;opencv_legacy249.lib;opencv_imgproc249.lib;opencv_highgui249.lib;opencv_gpu249.lib;opencv_flann249.lib;opencv_features2d249.lib;opencv_core249.lib;opencv_contrib249.lib;opencv_calib3d249.lib;

 

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.