Run Build Command:"/usr/bin/make" "cmTC_162a3/fast"
/usr/bin/make -f CMakeFiles/cmTC_162a3.dir/build.make CMakeFiles/cmTC_162a3.dir/build
make[1]: Entering directory '/home/program/opencv-3.2.0/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_162a3.dir/CheckIncludeFile.c.o
/usr/bin/cc -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -O3 -DNDEBUG -o CMakeFiles/cmTC_162a3.dir/CheckIncludeFile.c.o -c /home/program/opencv-3.2.0/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/home/program/opencv-3.2.0/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:28: fatal error: linux/videodev.h: No such file or directory
compilation terminated.
CMakeFiles/cmTC_162a3.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_162a3.dir/CheckIncludeFile.c.o' failed
make[1]: *** [CMakeFiles/cmTC_162a3.dir/CheckIncludeFile.c.o] Error 1
make[1]: Leaving directory '/home/program/opencv-3.2.0/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_162a3/fast' failed
make: *** [cmTC_162a3/fast] Error 2
解决方法:
sudo apt-get install libv4l-dev
sudo ln -s /usr/include/libvl1-videodev.h /usr/include/linux/videodev.h