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):
- How to build applications with OpenCV inside the "Microsoft Visual Studio"
- Installation in Windows
- Total Catalog OpenCV Tutorials
- Total Catalog OpenCV Modules
OPENCV First Station: Configuring the OPENCV Environment (2015-12-12)