Can't compile OpenCV 3.1 : Missing videoio.h, videodev.h, avformat.h
Scouring internet for possible solution of the exact same issue I faced landed me here and no solution specified worked. What I did notice though is:-
-
Not all steps described in the pyimagesearch blog were followed - missed some steps - checked one by one though not sure this was the root cause.
-
OpenCV 3.1.0 has a bug and you need to set
INSTALL_C_EXAMPLES=OFF
. This info is available as an update in the pyimagesearch blog of26-10-2015:- "Update (3 January 2016): In order to build OpenCV 3.1.0 , you need to set -D INSTALL_C_EXAMPLES=OFF (rather than ON ) in the cmake command. There is a bug in the OpenCV v3.1.0 CMake build script that can cause errors if you leave this switch on. Once you set this switch to off, CMake should run without a problem"