Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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

So I am receiving this error when I try and compile my program. I was following a video on youtube on setting up OpenCV with Visual Studio 2010 (found here). I am just trying to set up an environment where I can learn how to use OpenCV. It doesn't help that I'm not familiar with VS. I'm trying to use version 2.4.3 . The tutorial uses 2.1.0 .

Anyways I get the error. fatal error C1083: Cannot open include file: 'opencv2/core/core_c.h': No such file or directory

I follow the steps in the video, and nothing goes wrong up until this point. According to one of the other questions, this was due to not including the proper file.

image description

I include the include files found in C:\Program Files\opencv\include. The #include only works if I use < opencv\cxcore.h > . Without that, I get the error fatal error C1083: Cannot open include file: 'cv.h': No such file or directory.

I'm not sure why the program is even looking for that file. Anyways, any help would be appreciated. I'm just trying to setup OpenCV so that I can start figuring out how to use it.

Thanks