./configure --enable-nonfree --enable-pic --enable-shared
Download ffmpeg and build 3.4.5, 3.2.12 or 4.0 and try to compile opencv doesn't help, then
Final solution: disable ffmpeg
$cmake -D WITH_CUDA=OFF -D WITH_FFMPEG=0 ..
$make
That compile opencv 2.4.x and 3.4.x
References:
[1] Error sys/videoio.h not found problem http://yutopapa.hatenadiary.com/entry/2017/06/08/173149
No comments:
Post a Comment