OK series Image Acquisition Card SDK and OPENCV using compile error problem

Source: Internet
Author: User

VS2010 using the OK_C30 Image Acquisition Card SDK + OpenCV2.1 programming, testing alone using the Acquisition Card SDK can be used normally, configuration good OpenCV after a lot of errors:

and create a new project the same configuration OpenCV can be used normally, to determine that the two header file declaration conflict, the original reference order is introduced into the first Okapi32 and then introduced OpenCV, now instead of first introduced OPENCV and then introduced OKAPI32, compiled can pass.

#include"./cvinclude/cv.h" #include"./cvinclude/cxcore.h" #include"./cvinclude/highgui.h" #include"./cvinclude/cvaux.h" #pragma comment(Lib,"./cvlib/cv210d.lib")#pragma comment(Lib,"./cvlib/cxcore210d.lib")#pragma comment(Lib,"./cvlib/highgui210d.lib")#pragma comment(Lib,"./cvlib/cvaux210d.lib")//** first introduced opencv**#include"Okapi32.h" #pragma comment(Lib,".. \\Common\\Okapi32.lib ")introduction of okapi32** after//**

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

OK series Image Acquisition Card SDK and OPENCV use compile error problem

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.