compiling with opencv_contrib and cmake fails with : fatal error sys/videoio.h: no such file or directory

asked 2018-05-17 20:12:12 -0500

System information (version)

OpenCV => 3.3.1 Operating System / Platform => Linux 64 bit redhat Compiler => gcc 4.8.5

Detailed description

cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_CUDA=OFF -D INSTALL_PYTHON_EXAMPLES=ON -D OPENCV_EXTRA_MODULES_PATH=/grundata/zhimo.bmz/download/opencv_contrib-3.3.1/modules -D BUILD_EXAMPLES=ON -D INSTALL_C_EXAMPLES=OFF ..

cmake output as below:

cmake command failed with below errors in error log: And as suggested, these files are missing on my machine. And I google for a while and fail to find the name of the dependency package which i need to install to make it work.

So, could you please help?

System information (version)

OpenCV => 3.3.1 Operating System / Platform => Linux 64 bit redhat Compiler => gcc 4.8.5

Detailed description

cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_CUDA=OFF -D INSTALL_PYTHON_EXAMPLES=ON -D OPENCV_EXTRA_MODULES_PATH=/grundata/zhimo.bmz/download/opencv_contrib-3.3.1/modules -D BUILD_EXAMPLES=ON -D INSTALL_C_EXAMPLES=OFF ..

cmake output as below:

-- Could NOT find PythonInterp: Found unsuitable version "2.7.13", but required is at least "3.4" (found /opt/anaconda/bin/python)
-- Could NOT find PythonInterp: Found unsuitable version "2.7.13", but required is at least "3.2" (found /opt/anaconda/bin/python)
-- Looking for ccache - not found
-- Found ZLIB: /lib64/libz.so (found suitable version "1.2.7", minimum required is "1.2.3") 
-- Could NOT find TIFF (missing: TIFF_LIBRARY TIFF_INCLUDE_DIR) 
-- Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR) 
-- Could NOT find Jasper (missing: JASPER_LIBRARIES JASPER_INCLUDE_DIR) 
-- Found ZLIB: /lib64/libz.so (found version "1.2.7") 
-- Could NOT find PNG (missing: PNG_LIBRARY PNG_PNG_INCLUDE_DIR) 
-- Checking for module 'gtk+-3.0'
--   No package 'gtk+-3.0' found
-- Checking for module 'gtk+-2.0'
--   No package 'gtk+-2.0' found
-- Checking for module 'gthread-2.0'
--   No package 'gthread-2.0' found
-- Checking for module 'gstreamer-base-1.0'
--   No package 'gstreamer-base-1.0' found
-- Checking for module 'gstreamer-video-1.0'
--   No package 'gstreamer-video-1.0' found
-- Checking for module 'gstreamer-app-1.0'
--   No package 'gstreamer-app-1.0' found
-- Checking for module 'gstreamer-riff-1.0'
--   No package 'gstreamer-riff-1.0' found
-- Checking for module 'gstreamer-pbutils-1.0'
--   No package 'gstreamer-pbutils-1.0' found
-- Checking for module 'gstreamer-base-0.10'
--   No package 'gstreamer-base-0.10' found
-- Checking for module 'gstreamer-video-0.10'
--   No package 'gstreamer-video-0.10' found
-- Checking for module 'gstreamer-app-0.10'
--   No package 'gstreamer-app-0.10' found
-- Checking for module 'gstreamer-riff-0.10'
--   No package 'gstreamer-riff-0.10' found
-- Checking for module 'gstreamer-pbutils-0.10'
--   No package 'gstreamer-pbutils-0.10' found
-- Checking for module 'libdc1394-2'
--   No package 'libdc1394-2' found
-- Checking for module 'libdc1394'
--   No package 'libdc1394' found
-- Looking for linux/videodev.h
-- Looking for linux/videodev.h - not found
-- Looking for linux/videodev2.h
-- Looking for linux/videodev2.h - not found
-- Looking for sys/videoio.h
-- Looking for sys/videoio.h - not found
-- Checking for module 'libavresample'
--   No package 'libavresample' found
-- Checking for module 'libgphoto2'
--   No package 'libgphoto2' found
-- found Intel IPP (ICV version): 2017.0.3 [2017.0.3]
-- at: /gruntdata/zhimo.bmz/download/opencv-3.3.1/build/3rdparty/ippicv/ippicv_lnx
-- found Intel IPP IW sources: 2017 ...
(more)
edit retag flag offensive close merge delete

Comments

opencv3.3.1 - outdated. gcc4.8.5 - outdated.

berak gravatar imageberak ( 2018-05-17 20:13:40 -0500 )edit

is this the cause of the problem? what is the requirement for gcc in this case?

phoenixbai gravatar imagephoenixbai ( 2018-05-17 20:16:17 -0500 )edit