使用VS2010和Windows 7构建cvblobslib时出错

时间:2013-06-19 19:34:35

标签: visual-studio-2010 opencv image-processing computer-vision cvblobslib

我正在尝试使用Windows 7在VS2010中构建 cvblobslib cvblobs 维基页面

http://opencv.willowgarage.com/wiki/cvBlobsLib#Build_intructions

描述要构建你需要只打开项目文件并构建它。但是,对于我在Windows 7上的VS2010中工作,这不会构建并给出以下错误:

`c:\users\administrator\desktop\cvblobslib_opencv_v8_3\blob.h(21): fatal error C1083: Cannot open include file: 'cxcore.h': No such file or directory
1>  ComponentLabeling.cpp

1>c:\users\administrator\desktop\cvblobslib_opencv_v8_3\blobcontour.h(6): fatal error C1083: Cannot open include file: 'cv.h': No such file or directory
1>  BlobResult.cpp

1>c:\users\administrator\desktop\cvblobslib_opencv_v8_3\blobresult.h(24): fatal error C1083: Cannot open include file: 'cxcore.h': No such file or directory
1>  BlobOperators.cpp

1>c:\users\administrator\desktop\cvblobslib_opencv_v8_3\blob.h(21): fatal error C1083: Cannot open include file: 'cxcore.h': No such file or directory
1>  BlobContour.cpp

1>c:\users\administrator\desktop\cvblobslib_opencv_v8_3\blobcontour.h(6): fatal error C1083: Cannot open include file: 'cv.h': No such file or directory
1>  Generating Code...
1>
1>Build FAILED.`

如何删除这些错误?这里有类似的问题,但没有人满意地回答这些问题。

1 个答案:

答案 0 :(得分:0)

您是否更改了包含路径以指向安装OpenCV(opencv_install_path/include/)?这位于Project - >属性 - >配置属性 - > C / C ++ - >一般 - >附加包含目录。

还在Project中指定OpenCV libs(opencv_install_path/lib/)的路径 - >属性 - >配置属性 - >链接器 - >一般 - >其他库目录并指定您需要在Project中使用的静态库(opencv*.lib) - >属性 - >配置属性 - >链接器 - >输入 - >附加依赖。