Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

fatal error C1083: Cannot open include file: 'opencv2/core.hpp': No such file or directory

Hello all,

I'm following the tutorial on how to set up OpenCV under Visual Studios 2010: http://docs.opencv.org/doc/tutorials/introduction/windows_visual_studio_Opencv/windows_visual_studio_Opencv.html#windows-visual-studio-how-to

However, when I try the sample code, I get following error:

fatal error C1083: Cannot open include file: 'opencv2/core.hpp': No such file or directory

Does anyone have a way to fix this problem? My current configurations are:

Visual Studios 2010 64-Bit System. OpenCV 2.4.8 OPENCV_DIR Enviromnetal Variable set to C:\OpenCV\Build\x64\vc10\ with the command setx -m OPENCV_DIR C:\OpenCV\Build\x64\vc10

I followed everything exactly like the tutorial said, except for the "Additional Include Directories" part, because the link specified was not valid. I changed it to C:\OpenCV\build\include. Both versions don't work, mine and the one in the tutorial.

The funny thing is, when I put #include <opencv2 **core**="" core.hpp=""> instead of #include <opencv2 core.hpp="">, it doesn't complain. I get a linker error instead: fatal error LNK1104: cannot open file 'opencv_core231d.lib'

What is going on? Can anyone help?

Regards

fatal error C1083: Cannot open include file: 'opencv2/core.hpp': No such file or directory

Hello all,

I'm following the tutorial on how to set up OpenCV under Visual Studios 2010: http://docs.opencv.org/doc/tutorials/introduction/windows_visual_studio_Opencv/windows_visual_studio_Opencv.html#windows-visual-studio-how-to

However, when I try the sample code, I get following error:

fatal error C1083: Cannot open include file: 'opencv2/core.hpp': No such file or directory

Does anyone have a way to fix this problem? My current configurations are:

Visual Studios 2010 64-Bit System. OpenCV 2.4.8 OPENCV_DIR Enviromnetal Variable set to C:\OpenCV\Build\x64\vc10\ with the command setx -m OPENCV_DIR C:\OpenCV\Build\x64\vc10

I followed everything exactly like the tutorial said, except for the "Additional Include Directories" part, because the link specified was not valid. I changed it to C:\OpenCV\build\include. Both versions don't work, mine and the one in the tutorial.

The funny thing is, when I put #include <opencv2 **core**="" core.hpp=""> <opencv2/**core**/core.hpp> instead of #include <opencv2 core.hpp="">, <opencv2/core.hpp>, it doesn't complain. I get a linker error instead: fatal error LNK1104: cannot open file 'opencv_core231d.lib'

What is going on? Can anyone help?

Regards

click to hide/show revision 3
retagged

updated 2014-02-28 00:36:53 -0600

berak gravatar image

fatal error C1083: Cannot open include file: 'opencv2/core.hpp': No such file or directory

Hello all,

I'm following the tutorial on how to set up OpenCV under Visual Studios 2010: http://docs.opencv.org/doc/tutorials/introduction/windows_visual_studio_Opencv/windows_visual_studio_Opencv.html#windows-visual-studio-how-to

However, when I try the sample code, I get following error:

fatal error C1083: Cannot open include file: 'opencv2/core.hpp': No such file or directory

Does anyone have a way to fix this problem? My current configurations are:

Visual Studios 2010 64-Bit System. OpenCV 2.4.8 OPENCV_DIR Enviromnetal Variable set to C:\OpenCV\Build\x64\vc10\ with the command setx -m OPENCV_DIR C:\OpenCV\Build\x64\vc10

I followed everything exactly like the tutorial said, except for the "Additional Include Directories" part, because the link specified was not valid. I changed it to C:\OpenCV\build\include. Both versions don't work, mine and the one in the tutorial.

The funny thing is, when I put #include <opencv2/**core**/core.hpp> instead of #include <opencv2/core.hpp>, it doesn't complain. I get a linker error instead: fatal error LNK1104: cannot open file 'opencv_core231d.lib'

What is going on? Can anyone help?

Regards