Ask Your Question
0

Erorr: Fehler: opencv2/core/core.hpp: No such file or directory

asked 2012-11-30 16:56:19 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >50 is welcome to improve it.

Hello,

I have used Code::Blocks 10.05 with OpenCV-2.4.0 I have tried to compile a code samples from C:\opencv\samples\cpp

#include "opencv2/core/core.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/calib3d/calib3d.hpp"
#include "opencv2/highgui/highgui.hpp"
#include <stdio.h>
#include <string.h>
#include <time.h>

using namespace cv;
using namespace std;

const char * usage =....

But the Code::Blocks compiler given this error:

C:\opencv\samples\cpp\calibration.cpp|1|schwerwiegender Fehler: opencv2/core/core.hpp: No such file or directory|

Is that means i must to change the include code? with this path where my own include folder is??? Thats the path from my core.hpp file C:\opencv\modules\core\include\opencv2\core

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2012-12-01 21:36:23 -0500

unxnut gravatar image

Changing just in your code will not solve the problem. There may be other include statements from within the include files. You are better off specifying the path to include directory for your compiler. In your case, it will be: C:\opencv\modules\core\include

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

Stats

Asked: 2012-11-30 16:56:19 -0500

Seen: 2,980 times

Last updated: Dec 01 '12