Error C1083: Cannot open the include file "opencv2/opencv.hpp": No such file or directory

asked 2013-09-24 21:53:18 -0600

updated 2013-09-29 05:48:39 -0600

berak gravatar image

Hi everyone, I'm new to opencv 2.4.6 with visual studio 2012 with compilation with cmake 2.8 I start with the simple programme about image detection application. But I encounter some error named as error C1083 as stated in the question. I started with opening the ImagefaceDetection1 files with Visual Studio 2012, look like image description

And then I started to debug and build the application image description

In the middle of processing, something look like this appear, likeimage description

I clicked Yes and

image description

This is the error which I get

image description

The simple code that i had

image description

Please review the error for me and thank you of your caring.

edit retag flag offensive close merge delete

Comments

your "additional include dirs" in properties -> c++ should point to opencv/build/include.

berak gravatar imageberak ( 2013-09-25 02:13:42 -0600 )edit

thank you for your respond but I don't really understand which one is "additional include dirs" and which properties. Do you mean the properties of the current project?

Tripley gravatar imageTripley ( 2013-09-29 05:43:41 -0600 )edit

yes current project

berak gravatar imageberak ( 2013-09-29 05:48:57 -0600 )edit

sorry, stop learning for long time, i checked the include dirs, i already point to the directories you stated and it is link to each element of the code, still, it doesn't work.

Tripley gravatar imageTripley ( 2013-12-13 08:45:17 -0600 )edit