fatal error: 'opencv2/videoio.hpp' file not found [closed]

asked 2019-03-09 04:41:57 -0600

adityak2920 gravatar image

updated 2019-03-09 08:31:01 -0600

berak gravatar image

I was trying to run files in samples/cpp but i was getting an error "fatal error: 'opencv2/videoio.hpp' file not found" So, I tried to search on the internet and find a solution I tried this method this method . But after installing according to the procedure , error is not resolving . So how can I proceed?

OpenCV - 4.0.1 Python - 3.6.6

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by adityak2920
close date 2019-03-09 14:37:47.988094

Comments

os / opencv version ? language, even ? (you're quoting a python blog) how are you trying to build your program ?)

berak gravatar imageberak ( 2019-03-09 04:51:15 -0600 )edit

Yes, I am just following the blog

adityak2920 gravatar imageadityak2920 ( 2019-03-09 07:51:15 -0600 )edit

why do you mention a python blog / your python version, when this is about c++ ? (is it ?)

So how can I proceed?

So how can I proceed? procees with what, exactly ?

berak gravatar imageberak ( 2019-03-09 07:53:19 -0600 )edit

When I was searching on the internet about the solution for this, i saw a comment to follow this blog. Do you know any other way to get rid of this error?

adityak2920 gravatar imageadityak2920 ( 2019-03-09 07:59:33 -0600 )edit

mentioning blogs is useless here, we need to see, what YOU are doing, not someone else (which is ?)

we're going in circles here, unless you start to be more concise about it

berak gravatar imageberak ( 2019-03-09 08:05:11 -0600 )edit

Ok, I used "brew install opencv" command to install opencv and when I am running the .cpp files I am getting the same error. So now , what can i do?

adityak2920 gravatar imageadityak2920 ( 2019-03-09 08:09:54 -0600 )edit