[英]Error while building cvblobs.lib with VS2010 and Windows7
I am trying to build cvblobslib in VS2010 with windows 7. The cvblobs wiki page here 我试图在VS2010建立cvblobslib与7这里的cvblobs wiki页面窗口
http://opencv.willowgarage.com/wiki/cvBlobsLib#Build_intructions http://opencv.willowgarage.com/wiki/cvBlobsLib#Build_intructions
describes that to build you need to just open the project file and build it.However, for me working in VS2010 on windows 7 this does not build and gives the following error: 描述了要构建的过程,您只需要打开项目文件并进行构建即可。但是,对我来说,在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.`
How do I remove these errors?There have been similar questions here but no-one has answered these satisfactorily. 我如何消除这些错误?这里也有类似的问题,但没有人满意地回答这些问题。
Have you changed the include paths to point to your installation of OpenCV ( opencv_install_path/include/
)? 您是否更改了包含路径以指向您的OpenCV安装(
opencv_install_path/include/
)? This resides in Project -> Properties -> Configuration Properties -> C/C++ -> General -> Additional Include Directories. 它位于项目->属性->配置属性-> C / C ++->常规->其他包含目录中。
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. 在项目->属性->配置属性->链接器->常规->其他库目录中,还要指定OpenCV库(
opencv_install_path/lib/
)的路径,并指定需要在其中使用的静态库( opencv*.lib
)项目->属性->配置属性->链接器->输入->其他依赖项。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.