简体   繁体   English

错误C1083无法在VS 2015中打开包含文件:'opencv2 \\ opencv.hpp'

[英]Error C1083 Cannot open include file: 'opencv2\opencv.hpp' in VS 2015

I am trying to run the simple test code below on Visual Studio 2015 with OpenCv 3.1 on windows 10. 我正在尝试在Windows 10上使用OpenCv 3.1在Visual Studio 2015上运行以下简单测试代码。

#include <opencv2\opencv.hpp>
using namespace cv;
int main()
{
namedWindow("win");
waitKey(0);
return 1;
}

But i get 但是我明白了

Error C1083 Cannot open include file: 'opencv2\\opencv.hpp': No such file or directory 错误C1083无法打开包含文件:'opencv2 \\ opencv.hpp':没有这样的文件或目录

I have added the Path C: \\ opencv \\ build \\ x64 \\ vc14 \\ bin to System variable in the Windows Environment variables. 我已将路径C: \\ opencv \\ build \\ x64 \\ vc14 \\ bin到Windows环境变量中的系统变量中。

Also in Visual studio I have set the Include Directories C:\\opencv\\build\\include;$(IncludePath) under Project properties > VC++ Directories and also the Linker > Input Additional Dependencies set to opencv_world310d.lib (Debug) 同样在Visual Studio中,我在Project properties > VC++ Directories下设置了包含目录C:\\opencv\\build\\include;$(IncludePath) ,并且还将Linker > Input Additional Dependencies设置为opencv_world310d.lib (调试)

I also have the following setting: 我也有以下设置:

Executable Directories - C:\\opencv\\build\\x64\\vc14 可执行目录C:\\opencv\\build\\x64\\vc14

Library Directories - C:\\opencv\\build\\x64\\vc14\\lib 库目录C:\\opencv\\build\\x64\\vc14\\lib

Additional Library Directories - C:\\opencv\\build\\x64\\vc14\\lib 附加库目录C:\\opencv\\build\\x64\\vc14\\lib

Please help me resolve this error. 请帮助我解决此错误。

我终于找到了解决方案,在“项目”>“属性”中,我必须将平台更改为x64并再次设置bin,lib和include文件夹

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 VS2019:致命错误 C1083 无法打开头文件:&#39;opencv.hpp&#39; - VS2019:fatal error C1083 Cannot open header file: 'opencv.hpp' 致命错误 C1083:无法打开包含文件:&#39;opencv2/core.hpp&#39;:没有那个文件或目录 - Fatal error C1083: Cannot open include file: 'opencv2/core.hpp': No such file or directory Visual Studio 2012:“opencv2/opencv.hpp”:没有这样的文件或目录 (C1083) - Visual Studio 2012: 'opencv2/opencv.hpp' : No such file or directory (C1083) 致命错误:opencv2/opencv.hpp:没有这样的文件或目录#include“opencv2/opencv.hpp” - fatal error: opencv2/opencv.hpp: No such file or directory #include "opencv2/opencv.hpp" VS Code 无法打开源文件“opencv2/opencv.hpp” - VS Code cannot open source file “opencv2/opencv.hpp” #包括<opencv2/opencv.hpp>在 VS 2013 中不起作用 - #include <opencv2/opencv.hpp> not working in VS 2013 无法在 Visual Studio 2019 中打开源文件 opencv2/opencv.hpp - cannot open source file opencv2/opencv.hpp in visual studio 2019 错误:C1083:无法打开包含文件:&#39;xercesc / util / XMLString.hpp&#39;:没有这样的文件或目录 - error: C1083: Cannot open include file: 'xercesc/util/XMLString.hpp': No such file or directory 错误:C1083:无法打开包含文件:'boost/asio.hpp':没有这样的文件或目录 - error: C1083: Cannot open include file: 'boost/asio.hpp': No such file or directory 致命错误C1083:无法打开包含文件:&#39;boost / variant.hpp&#39;:没有这样的文件或目录 - fatal error C1083: Cannot open include file: 'boost/variant.hpp': No such file or directory
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM