1

I want to run following piece of code on my Kubuntu 14.10: https://github.com/Itseez/opencv/blob/master/samples/cpp/tutorial_code/video/bg_sub.cpp

I get the following error message: In file included from main.cpp:9:0: /usr/include/opencv2/imgcodecs.hpp:46:28: fatal error: opencv2/core.hpp: No such file or directory #include "opencv2/core.hpp" ^ compilation terminated.

my current opencv version is: 2.9.4 when I use the following command pkg-config --modversion opencv

best regard, jester

1 Answer 1

2

Try this:

Right click on project -> properties

Go to Build -> linker

and on libraries add opencv

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.