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"
本文解决在Raspberry Pi上编译OpenCV3.1遇到的错误,具体为缺少videoio.h和videodev.h文件的问题。通过设置INSTALL_C_EXAMPLES为OFF,成功避免了OpenCV3.1中已知的CMake脚本bug,使得编译过程顺利进行。
3832

被折叠的 条评论
为什么被折叠?



