简体   繁体   English

使用VS2010和Windows7构建cvblobs.lib时出错

[英]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.

相关问题 为VS2010,WINDOWS7、64BIT构建CUDA示例时出现错误MSB3721 - error MSB3721 when building CUDA Samples for VS2010, WINDOWS7, 64BIT 有没有办法在Windows7和VS2010中编写WinRT应用程序? - Is there a way to write WinRT apps in Windows7 & VS2010? 在Windows VS2010上构建NaoQI C ++ SDK示例项目helloworld时发生错误 - Error occurred when building NaoQI C++ SDK example project helloworld on Windows VS2010 VS2010的WPF在Windows7 VM中渲染效果不佳? - VS2010's WPF renders poorly inside a Windows7 VM? 使用VS2010 Pro在Windows 8上构建Qt 4.8 - Building Qt 4.8 on Windows 8 With VS2010 Pro Qt:在Windows,Visual Studio 2010(VS2010)上编译Qt 5.0.1时出错 - Qt: Error while compiling Qt 5.0.1 on Windows, Visual Studio 2010 (VS2010) asp.net mvc 2 iis7集成Windows7 vs2010的空白页/路由问题 - blank pages/routing issue with asp.net mvc 2 iis7 integrated windows7 vs2010 在VS2010 SP1中构建大型程序包时出现错误“没有足够的存储空间来完成此操作” - Error “Not enough storage is available to complete this operation” while building large package in VS2010 SP1 VS2010链接器错误,正在寻找.dll文件的.lib - VS2010 linker error, looking for a .lib of a .dll file VS2010 Building Installer安装失败 - VS2010 Building Installer Failing on Setup
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM