OPENCV First Station: Configuring the OPENCV Environment (2015-12-12)

Source: Internet
Author: User

Today's Forum application book "OpenCV Computer Vision programming strategy (China Work Letter publishing house)" arrived, ready to study machine vision.

Installed in the evening vc2008 and OpenCV the latest version of 3.0.0, tried a variety of configurations are error prompts "error lnk2019:unresolved external symbol", the final suspicion of the version, downloaded 2.3.1 version tried to run the normal, really toss Dead, thinking about learning to learn the latest version of it, unexpectedly will encounter such trouble is unexpected, but also is familiar with a bit of configuration. Later to more than the mind, not the higher the better, but also the development of environmental support is.

According to the official website articles and some tutorials to configure:

Environment variables

Global Configuration (this if the configuration in the project is also possible, but to each project configuration is troublesome, the official website is able to do a configuration file preservation, each new project can be directly loaded, their own computer, it is optional):

1. header file contains directory configuration

2. Library Files Directory

3. Dependent on the library file configuration, this configuration cannot be configured globally and can only be configured on the project properties

The source of these file names is to go to the OpenCV library file directory under the dir/b *d.lib to get the debug version of the library file. Also configure release version when you get the library file without the D suffix is configured to go up:

Attach this version of the file list:

Opencv_calib3d231d.libopencv_contrib231d.libopencv_core231d.libopencv_features2d231d.libopencv_ Flann231d.libopencv_gpu231d.libopencv_haartraining_engined.libopencv_highgui231d.libopencv_ Imgproc231d.libopencv_legacy231d.libopencv_ml231d.libopencv_objdetect231d.libopencv_ts231d.libopencv_ Video231d.lib

Reference links (both refer to 3.0.0 's documentation):

    1. How to build applications with OpenCV inside the "Microsoft Visual Studio"
    2. Installation in Windows
    3. Total Catalog OpenCV Tutorials
    4. Total Catalog OpenCV Modules

OPENCV First Station: Configuring the OPENCV Environment (2015-12-12)

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.