0

我正在尝试使用 Windows 7 在 VS2010中构建cvblobslib 。这里的cvblobs wiki 页面

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.`

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

4

1 回答 1

0

Have you changed the include paths to point to your installation of OpenCV (opencv_install_path/include/)? This resides in Project -> Properties -> Configuration Properties -> C/C++ -> General -> Additional Include Directories.

Also specify the path to OpenCV libs (opencv_install_path/lib/) in Project -> Properties -> Configuration Properties -> Linker -> General -> Additional Library Directories and specify the static libs (opencv*.lib) that you need to use in Project -> Properties -> Configuration Properties -> Linker -> Input -> Additional Dependencies.

于 2013-06-20T08:02:12.687 回答