Cannot open include file: 'opencv2/core/core_c.h': No such file or directory .
2013-09-24 10:41
453 查看
在vs2012调试的时候出现了该错误:
opencv-2.4.5\opencv\include\opencv2\opencv.hpp(46) : fatal error C1083: Cannot open include file: 'opencv2/core/core_c.h': No such file or directory
是因为我在vc++目录里的包含目录添加加include的路径时加错了。
应该加以下三个路径:
..\opencv-2.4.6.0\opencv\build\include
..\opencv-2.4.6.0\opencv\build\include\opencv
..\opencv-2.4.6.0\opencv\build\include\opencv2
切记,而不是
..\opencv-2.4.6.0\opencv\include
..\opencv-2.4.6.0\opencv\include\opencv
..\opencv-2.4.6.0\opencv\include\opencv2
网上的很多文档里添加的路径都是opencv里的include,导致出错,在这里大家要谨记。
opencv-2.4.5\opencv\include\opencv2\opencv.hpp(46) : fatal error C1083: Cannot open include file: 'opencv2/core/core_c.h': No such file or directory
是因为我在vc++目录里的包含目录添加加include的路径时加错了。
应该加以下三个路径:
..\opencv-2.4.6.0\opencv\build\include
..\opencv-2.4.6.0\opencv\build\include\opencv
..\opencv-2.4.6.0\opencv\build\include\opencv2
切记,而不是
..\opencv-2.4.6.0\opencv\include
..\opencv-2.4.6.0\opencv\include\opencv
..\opencv-2.4.6.0\opencv\include\opencv2
网上的很多文档里添加的路径都是opencv里的include,导致出错,在这里大家要谨记。
相关文章推荐
- OpenCV2.2+VC2005 fatal error C1083: Cannot open include file:'opencv2/core/core_c.h': No such file or directory
- Cannot open include file: 'opencv2/core/core_c.h': No such file or directory
- 初学C++:编译器报错“Cannot open include file: 'iostream.h': No such file or directory”的解决方法
- fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
- Cannot open include file: 'afxcontrolbars.h': No such file or directory
- VC2010 C++ error C1083: Cannot open include file: 'XXXXX.h': No such file or directory
- 在Visual Studio下报错fatal error C1083: Cannot open include file: 'cv.h': No such file or directory
- 关于Cannot open include file: 'ceconfig.h': No such file or directory
- fatal error C1083: Cannot open include file: 'afxcontrolbars.h': No such file or directory
- fatal error C1083: Cannot open include file: 'wdm.h': No such file or directory
- Cannot open include file: 'ntddndis.h': No such file or directory
- fatal error C1083: Cannot open include file: 'pkfuncs.h': No such file or directory
- 安装VS简化版。解决编译器报错“Cannot open include file: 'iostream.h': No such file or directory”
- Cannot open include file: 'inttypes.h': No such file or directory
- MinGW下编译C++,Cannot open include file: 'sdkddkver.h': No such file or directory的解决
- fatal error C1083: Cannot open include file: 'jni.h': No such file or directory
- error C1083: Cannot open include file: 'ntddk.h': No such file or directory
- fatal error C1083: Cannot open include file: 'avformat.h': No such file or directory
- fatal error C1083: Cannot open include file: 'stdlib': No such file or directory
- 生成JNI的DLL时提示找不到jni.h的解决的方法Cannot open include file: 'jni.h': No such file or directory