1、Add "opencv_videoio" to "LIBRARIES +=opencv_core opencv_highgui opencv_imgproc" in "Makefile"
2、Add "videoio" to "find_package(OpenCV REQUIRED COMPONENTS CORE highgui imgproc" in "cmake/Dependencies.cmake"
转:https://www.cnblogs.com/Tron/p/6810053.html