[Opencv learning] how to configure vs in different versions

Source: Internet
Author: User

Author: gnuhpc
Source: http://www.cnblogs.com/gnuhpc/

///////////////////////////. Net configuration ///////////////////////////////////// //
1. Install opencv
2. Tools. Options/projects/VC ++ directories include
Apps/haartraining/include
CV/include
Cvaux/include
Cxcore/include
Otherlibs/_ graphics/include
Otherlibs/cvcam/include
Otherlibs/highgui
Tools. Options/projects/VC ++ directories/library files include
Lib
Otherlibs
Otherlibs/_ graphics/lib
Otherlibs/cvcam
Otherlibs/highgui
3. Project/** projects/linker/input: Additional dependency Input
Cv. Lib highgui. Lib cxcore. Lib
4. All functions must contain
Cv. H, high. H, cxcore. h
If the opencv function is not prompted after visual assist is installed, the following configuration is required:
1. vassistx-> visual assist x options
2. Projects-> C/C ++ Directories
3. Show directories-> stable include files
4. Include
Apps/haartraining/include
CV/include
Cvaux/include
Cxcore/include
Otherlibs/_ graphics/include
Otherlibs/cvcam/include
Otherlibs/highgui
/// // The configuration in VC 6 ///////// //////////////////////////////
1. install Open CV
2. if you set environment variables during installation, add the preceding variables to "my computer", "properties", "advanced", and "environment variables", for example, variable: path, value: C: /opencv/bin;
3. * Open the _ make folder under the opencv installation directory and start opencv. DSW project (for example, C:/opencv/_ make/opencv. DSW); batch build (batch build), note that only Win32 debug and Win32 release can be selected.
The following error may occur during the generation process:
"Fatal error lnk1181: Unable to open the input file" cvauxd. lib"
"Error c2039:" foreground_regions ": Not a member of" cvfgdstatmodel"
Solution: Open the cvaux in the include/external file of the cvaux project in FileView. h file. Find the foreground_regions member and you will find that the member has been commented out. Change "/" at the end of the last line to "*/" to make the Member visible, start the project again and you can compile it.
4. * Another project "opencv_directshow.dsw" under the startup _ make directory is compiled through.
5. Tools. Options/projects/VC ++ directories/include
Apps/haartraining/include
CV/include
Cvaux/include
Cxcore/include
Otherlibs/_ graphics/include
Otherlibs/cvcam/include
Otherlibs/highgui
6. Tools. Options/projects/VC ++ directories/library files include
Lib
Otherlibs
Otherlibs/_ graphics/lib
Otherlibs/cvcam
Otherlibs/highgui
7. when creating a project. in Project-settings-all deployments (Project-Option-set all), select link and add the static library CVD to the object/Library module. lib highguid. lib cvauxd. lib cxcored. lib cvcam. lib
8. Add to source file
# Include "cv. H"
# Include "highgui. H"
# Include "cxcore. H"

Author: gnuhpc
Source: http://www.cnblogs.com/gnuhpc/

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.