简体   繁体   English

无法使用VS 2012和Opencv 2.4.2构建cvblobslib_v_8_3

[英]Cannot Build cvblobslib_v_8_3 with VS 2012 and Opencv 2.4.2

I am trying to build the cvBloblsLib and have been unable to do so far. 我正在尝试构建cvBloblsLib ,但到目前为止无法完成。

I have tried to follow the instructions but I am missing something. 我已尝试按照说明进行操作,但缺少某些内容。 Do I need to include the directories for OpenCV2.4.2 in cvBlobsLib? 我是否需要在cvBlobsLib中包含OpenCV2.4.2的目录? If I dont I get 如果我不明白

blobcontour.h(6) : fatal error C1083: Cannot open include file: 'cv,h': No such file or directory

Which is in the origial cvblobslib file blobcontour.h 原始cvblobslib文件blobcontour.h中的哪个

But if do include opencv include directories, I get 但是如果包含opencv包含目录,我会得到

h:\opencv2.4.2\include\opencv\cv.h(63): fatal error C1083: Cannot open include file: 'opencv2/opencv.hpp': No such file or directory

And this happens in the orginal cv.h file. 这发生在原始的cv.h文件中。

What am I doing wrong? 我究竟做错了什么?

if you're using the prebuilt libraries from 2.4.2, 如果您使用的是2.4.2中的预构建库,

try to point your "Additional Includes" at: h:\\opencv2.4.2\\build\\include 尝试将您的“其他包含项”指向:h:\\ opencv2.4.2 \\ build \\ include

instead of h:\\opencv2.4.2\\include 代替h:\\ opencv2.4.2 \\ include

(h:\\opencv2.4.2\\include would work, too, but then you've got to manually add the opencv2\\include and all the module-includes, too, like modules\\core\\include, modules\\highgui\\include, etc. ) (h:\\ opencv2.4.2 \\ include也可以,但是您必须手动添加opencv2 \\ include和所有模块包括,例如modules \\ core \\ include,modules \\ highgui \\ include等)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM