dynamic
dynamic

Reputation: 48141

OpenCV inclusion error of core_c.h

I have downloaded opencv with svn and used cmake to compile it. I have followed this nice guide.

I have created my first project with basic inclusion:

#include <cv.h>
#include <highgui.h>

But when I try to compile I get:

C:\Progam Files\OpenCV\include\opencv\cv.h(63): fatal error
"opencv2/core/core_c.h" no such file or directory

How Can I solve this? Should I explicit set some custom include dir? IT pretty strange because Cmake should have done all configuration...

I am on Visual Studio 2010 with Windows Vista

On the project properties I have added "C:\Progam Files\OpenCV\include" as include directories

Note in configuration properties->C/C++->Aditional include directories there is already: C:\Progam Files\OpenCV\include

Edit

It turns out cmake made the VC project with bad inclusion directory, I had to manually set all the

C:\Progam Files\OpenCV\modules/*/include

directory

Upvotes: 2

Views: 4729

Answers (1)

ArtemStorozhuk
ArtemStorozhuk

Reputation: 8725

Make sure that you added include directory to include directories option in VS (Configuration properties->C/C++->Aditional include directories).

Upvotes: 1

Related Questions