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.0.3
-- at: /gruntdata/zhimo.bmz/download/opencv-3.3.1/build/3rdparty/ippicv/ippiw_lnx
-- LAPACK(OpenBLAS): LAPACK_LIBRARIES: /usr/local/lib/libopenblas.so
-- LAPACK(OpenBLAS): Support is enabled.
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH)
-- Could NOT find Matlab (missing: MATLAB_MEX_SCRIPT MATLAB_INCLUDE_DIRS MATLAB_ROOT_DIR MATLAB_LIBRARIES MATLAB_LIBRARY_DIRS MATLAB_MEXEXT MATLAB_ARCH MATLAB_BIN)
-- VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file
-- Excluding from source files list: /gruntdata/zhimo.bmz/download/opencv-3.3.1/build/modules/imgproc/accum.neon.cpp
-- Torch importer has been enabled. To run the tests you have to install Torch ('th' executable should be available) and generate testdata using opencv_extra/testdata/dnn/generate_torch_models.py script.
-- DNN_FACE_DETECTOR: Download: res10_300x300_ssd_iter_140000.caffemodel
-- Pylint: registered 110 targets. Build 'check_pylint' target to run checks ("cmake --build . --target check_pylint" or "make check_pylint")
--
-- General configuration for OpenCV 3.3.1 =====================================
-- Version control: unknown
--
-- Platform:
-- Timestamp: 2018-05-17T12:49:23Z
-- Host: Linux 3.10.0-327.ali2000.alios7.x86_64 x86_64
-- CMake: 3.11.1
-- CMake generator: Unix Makefiles
-- CMake build tool: /usr/bin/gmake
-- Configuration: RELEASE
--
-- CPU/HW features:
-- Baseline: SSE SSE2 SSE3
-- requested: SSE3
-- Dispatched code generation: SSE4_1 SSE4_2 FP16 AVX AVX2
-- requested: SSE4_1 SSE4_2 AVX FP16 AVX2
-- SSE4_1 (3 files): + SSSE3 SSE4_1
-- SSE4_2 (1 files): + SSSE3 SSE4_1 POPCNT SSE4_2
-- FP16 (2 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX
-- AVX (5 files): + SSSE3 SSE4_1 POPCNT SSE4_2 AVX
-- AVX2 (8 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2
--
-- C/C++:
-- Built as dynamic libs?: YES
-- C++11: YES
-- C++ Compiler: /usr/bin/c++ (ver 4.8.5)
-- C++ flags (Release): -std=c++11 -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG
-- C++ flags (Debug): -std=c++11 -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG
-- C Compiler: /usr/bin/cc
-- C flags (Release): -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 -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -msse -msse2 -msse3 -fvisibility=hidden -O3 -DNDEBUG -DNDEBUG
-- C flags (Debug): -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 -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -msse -msse2 -msse3 -fvisibility=hidden -g -O0 -DDEBUG -D_DEBUG
-- Linker flags (Release):
-- Linker flags (Debug):
-- ccache: NO
-- Precompiled headers: YES
-- Extra dependencies: dl m pthread rt
-- 3rdparty dependencies:
--
-- OpenCV modules:
-- To be built: core flann imgproc ml objdetect photo video dnn imgcodecs shape videoio highgui superres ts features2d calib3d stitching videostab
-- Disabled: js world
-- Disabled by dependency: -
-- Unavailable: cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev java python2 python3 viz
--
-- GUI:
-- QT: NO
-- GTK+: NO
-- GThread : NO
-- GtkGlExt: NO
-- OpenGL support: NO
-- VTK support: NO
--
-- Media I/O:
-- ZLib: /lib64/libz.so (ver 1.2.7)
-- JPEG: libjpeg (ver 90)
-- WEBP: build (ver encoder: 0x020e)
-- PNG: build (ver 1.6.24)
-- TIFF: build (ver 42 - 4.0.2)
-- JPEG 2000: build (ver 1.900.1)
-- OpenEXR: build (ver 1.7.1)
-- GDAL: NO
-- GDCM: NO
--
-- Video I/O:
-- DC1394 1.x: NO
-- DC1394 2.x: NO
-- FFMPEG: YES
-- avcodec: YES (ver 57.107.100)
-- avformat: YES (ver 57.83.100)
-- avutil: YES (ver 55.78.100)
-- swscale: YES (ver 4.8.100)
-- avresample: NO
-- GStreamer: NO
-- OpenNI: NO
-- OpenNI PrimeSensor Modules: NO
-- OpenNI2: NO
-- PvAPI: NO
-- GigEVisionSDK: NO
-- Aravis SDK: NO
-- UniCap: NO
-- UniCap ucil: NO
-- V4L/V4L2: NO/NO
-- XIMEA: NO
-- Xine: NO
-- Intel Media SDK: NO
-- gPhoto2: NO
--
-- Parallel framework: pthreads
--
-- Trace: YES (with Intel ITT)
--
-- Other third-party libraries:
-- Use Intel IPP: 2017.0.3 [2017.0.3]
-- at: /gruntdata/zhimo.bmz/download/opencv-3.3.1/build/3rdparty/ippicv/ippicv_lnx
-- Use Intel IPP IW: sources (2017.0.3)
-- at: /gruntdata/zhimo.bmz/download/opencv-3.3.1/build/3rdparty/ippicv/ippiw_lnx
-- Use VA: NO
-- Use Intel VA-API/OpenCL: NO
-- Use Lapack: YES (/usr/local/lib/libopenblas.so)
-- Use Eigen: NO
-- Use Cuda: NO
-- Use OpenCL: YES
-- Use OpenVX: NO
-- Use custom HAL: NO
--
-- OpenCL: <Dynamic loading of OpenCL library>
-- Include path: /gruntdata/zhimo.bmz/download/opencv-3.3.1/3rdparty/include/opencl/1.2
-- Use AMDFFT: NO
-- Use AMDBLAS: NO
--
-- Python 2:
-- Interpreter: /opt/anaconda/bin/python2.7 (ver 2.7.13)
--
-- Python 3:
-- Interpreter: NO
--
-- Python (for build): /opt/anaconda/bin/python2.7
-- Pylint: /opt/anaconda/bin/pylint (ver: 1.6.4, checks: 110)
--
-- Java:
-- ant: NO
-- JNI: NO
-- Java wrappers: NO
-- Java tests: NO
--
-- Matlab: Matlab not found or implicitly disabled
--
-- Documentation:
-- Doxygen: NO
--
-- Tests and samples:
-- Tests: YES
-- Performance tests: YES
-- C/C++ Examples: YES
--
-- Install path: /usr/local
--
-- cvconfig.h is in: /gruntdata/zhimo.bmz/download/opencv-3.3.1/build
-- -----------------------------------------------------------------
--
-- Configuring incomplete, errors occurred!
See also "/gruntdata/zhimo.bmz/download/opencv-3.3.1/build/CMakeFiles/CMakeOutput.log".
See also "/gruntdata/zhimo.bmz/download/opencv-3.3.1/build/CMakeFiles/CMakeError.log".
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?
> Determining if the include file linux/videodev.h exists failed with the following output:
Change Dir: /gruntdata/zhimo.bmz/download/opencv-3.3.1/build/CMakeFiles/CMakeTmp
>Run Build Command:"/usr/bin/gmake" "cmTC_670e7/fast"
/usr/bin/gmake -f CMakeFiles/cmTC_670e7.dir/build.make CMakeFiles/cmTC_670e7.dir/build
gmake[1]: Entering directory `/gruntdata/zhimo.bmz/download/opencv-3.3.1/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_670e7.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 -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -msse -msse2 -msse3 -fvisibility=hidden -O3 -DNDEBUG -o CMakeFiles/cmTC_670e7.dir/CheckIncludeFile.c.o -c /gruntdata/zhimo.bmz/download/opencv-3.3.1/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/gruntdata/zhimo.bmz/download/opencv-3.3.1/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:28: fatal error: linux/videodev.h: No such file or directory
#include <linux/videodev.h>
^
>compilation terminated.
gmake[1]: *** [CMakeFiles/cmTC_670e7.dir/CheckIncludeFile.c.o] Error 1
gmake[1]: Leaving directory `/gruntdata/zhimo.bmz/download/opencv-3.3.1/build/CMakeFiles/CMakeTmp'
gmake: *** [cmTC_670e7/fast] Error 2
>Determining if the include file linux/videodev2.h exists failed with the following output:
Change Dir: /gruntdata/zhimo.bmz/download/opencv-3.3.1/build/CMakeFiles/CMakeTmp
>Run Build Command:"/usr/bin/gmake" "cmTC_00b02/fast"
/usr/bin/gmake -f CMakeFiles/cmTC_00b02.dir/build.make CMakeFiles/cmTC_00b02.dir/build
gmake[1]: Entering directory `/gruntdata/zhimo.bmz/download/opencv-3.3.1/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_00b02.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 -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -msse -msse2 -msse3 -fvisibility=hidden -O3 -DNDEBUG -o CMakeFiles/cmTC_00b02.dir/CheckIncludeFile.c.o -c /gruntdata/zhimo.bmz/download/opencv-3.3.1/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
In file included from /gruntdata/zhimo.bmz/download/opencv-3.3.1/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:0:
/usr/include/linux/videodev2.h:1763:20: error: field ‘timestamp’ has incomplete type
struct timespec timestamp;
^
>gmake[1]: *** [CMakeFiles/cmTC_00b02.dir/CheckIncludeFile.c.o] Error 1
gmake[1]: Leaving directory `/gruntdata/zhimo.bmz/download/opencv-3.3.1/build/CMakeFiles/CMakeTmp'
gmake: *** [cmTC_00b02/fast] Error 2
>Determining if the include file sys/videoio.h exists failed with the following output:
Change Dir: /gruntdata/zhimo.bmz/download/opencv-3.3.1/build/CMakeFiles/CMakeTmp
>Run Build Command:"/usr/bin/gmake" "cmTC_dacfc/fast"
/usr/bin/gmake -f CMakeFiles/cmTC_dacfc.dir/build.make CMakeFiles/cmTC_dacfc.dir/build
gmake[1]: Entering directory `/gruntdata/zhimo.bmz/download/opencv-3.3.1/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_dacfc.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 -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -msse -msse2 -msse3 -fvisibility=hidden -O3 -DNDEBUG -o CMakeFiles/cmTC_dacfc.dir/CheckIncludeFile.c.o -c /gruntdata/zhimo.bmz/download/opencv-3.3.1/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/gruntdata/zhimo.bmz/download/opencv-3.3.1/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:25: fatal error: sys/videoio.h: No such file or directory
#include <sys/videoio.h>
^
>compilation terminated.
gmake[1]: *** [CMakeFiles/cmTC_dacfc.dir/CheckIncludeFile.c.o] Error 1
gmake[1]: Leaving directory `/gruntdata/zhimo.bmz/download/opencv-3.3.1/build/CMakeFiles/CMakeTmp'
gmake: *** [cmTC_dacfc/fast] Error 2