Error after installation, compatibility header

asked 2016-06-29 10:41:30 -0600

Hi yesterday a downloaded master branch, built it,set up linker settings, lib directories etc. I followed this turorial
But when i try to run this test program

I get following error: "this is a compatibility header which should not be used inside the OpenCV library."

I hope this is some stupid mistake with #include or something... I am completely new for openCV, I hope someone can help me. Thanks

edit retag flag offensive close merge delete


#include <opencv2/opencv.hpp> should be all you need for starters.

berak gravatar imageberak ( 2016-06-29 10:48:52 -0600 )edit

Thank you berak. I have found that i have yet another problem, I can not open files from opencv2 directory, i set them in system path, but visual studio can not open them. (cannot open source file "opencv2/video.hpp"), Can u tell me where i made a mistake?

azgralion gravatar imageazgralion ( 2016-06-29 12:11:46 -0600 )edit