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