Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make error #1131

Open
nouhahammami opened this issue Apr 20, 2017 · 22 comments
Open

make error #1131

nouhahammami opened this issue Apr 20, 2017 · 22 comments

Comments

@nouhahammami
Copy link

whene i excute this command make -j5 i got this error

Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_read.c.o
[ 24%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_strip.c.o
[ 24%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_swab.c.o
[ 24%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_thunder.c.o
[ 24%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_tile.c.o
[ 24%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_version.c.o
[ 24%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_warning.c.o
[ 24%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_write.c.o
[ 24%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_zip.c.o
[ 24%] Building CXX object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_stream.cxx.o
[ 24%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_unix.c.o
Linking CXX static library ../lib/liblibtiff.a
[ 24%] Built target libtiff
make: *** [all] Error 2

@StevenPuttemans
Copy link

Could you run make with the -j5 and paste the complete output. Due to the 5 cores being used, the actual error is somewhere before the posted output. Without it it is impossible to help you.

@nouhahammami
Copy link
Author

nouhahammami commented Apr 20, 2017

thanks for reply @StevenPuttemans
this is the first cmd cmake

> cmake -DOPENCV_EXTRA_MODULES_PATH=~/workspace/opencv_contrib-master/modules ~/workspace/opencv/opencv-master
> -- Detected version of GNU GCC: 48 (408)
> -- POPCNT is not supported by C++ compiler
> -- Could NOT find ZLIB (missing:  ZLIB_LIBRARY ZLIB_INCLUDE_DIR) (Required is at least version "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) 
> -- Could NOT find ZLIB (missing:  ZLIB_INCLUDE_DIR) (found version "1.2.8")
> -- Could NOT find PNG (missing:  PNG_LIBRARY PNG_PNG_INCLUDE_DIR) 
> -- checking for module 'gtk+-3.0'
> --   package 'gtk+-3.0' not found
> -- checking for module 'gtk+-2.0'
> --   package 'gtk+-2.0' not found
> -- checking for module 'gthread-2.0'
> --   package 'gthread-2.0' not found
> -- checking for module 'gstreamer-base-1.0'
> --   package 'gstreamer-base-1.0' not found
> -- checking for module 'gstreamer-video-1.0'
> --   package 'gstreamer-video-1.0' not found
> -- checking for module 'gstreamer-app-1.0'
> --   package 'gstreamer-app-1.0' not found
> -- checking for module 'gstreamer-riff-1.0'
> --   package 'gstreamer-riff-1.0' not found
> -- checking for module 'gstreamer-pbutils-1.0'
> --   package 'gstreamer-pbutils-1.0' not found
> -- checking for module 'gstreamer-base-0.10'
> --   package 'gstreamer-base-0.10' not found
> -- checking for module 'gstreamer-video-0.10'
> --   package 'gstreamer-video-0.10' not found
> -- checking for module 'gstreamer-app-0.10'
> --   package 'gstreamer-app-0.10' not found
> -- checking for module 'gstreamer-riff-0.10'
> --   package 'gstreamer-riff-0.10' not found
> -- checking for module 'gstreamer-pbutils-0.10'
> --   package 'gstreamer-pbutils-0.10' not found
> -- checking for module 'libdc1394-2'
> --   package 'libdc1394-2' not found
> -- checking for module 'libdc1394'
> --   package 'libdc1394' not found
> -- Looking for linux/videodev.h
> -- Looking for linux/videodev.h - not found
> -- Looking for linux/videodev2.h
> -- Looking for linux/videodev2.h - found
> -- Looking for sys/videoio.h
> -- Looking for sys/videoio.h - not found
> -- checking for modules 'libavcodec;libavformat;libavutil;libswscale'
> --   package 'libavcodec' not found
> --   package 'libavformat' not found
> --   package 'libavutil' not found
> --   package 'libswscale' not found
> -- checking for module 'libavresample'
> --   package 'libavresample' not found
> -- checking for module 'libgphoto2'
> --   package 'libgphoto2' not found
> -- IPPICV: Download: ippicv_linux_20151201.tgz
> CMake Warning at cmake/OpenCVDownload.cmake:170 (message):
>   IPPICV: Download failed: 1;"Unsupported protocol"
> Call Stack (most recent call first):
>   3rdparty/ippicv/ippicv.cmake:27 (ocv_download)
>   cmake/OpenCVFindIPP.cmake:250 (download_ippicv)
>   cmake/OpenCVFindLibsPerf.cmake:37 (include)
>   CMakeLists.txt:571 (include)
> 
> 
> -- Could not find OpenBLAS include. Turning OpenBLAS_FOUND off
> -- Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off
> -- Could NOT find Atlas (missing:  Atlas_CBLAS_INCLUDE_DIR Atlas_CLAPACK_INCLUDE_DIR Atlas_CBLAS_LIBRARY Atlas_BLAS_LIBRARY Atlas_LAPACK_LIBRARY) 
> -- A library with BLAS API not found. Please specify library location.
> -- LAPACK requires BLAS
> -- A library with LAPACK API not found. Please specify library location.
> -- 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
> -- Caffe:   NO
> -- Protobuf:   NO
> -- Glog:   NO
> -- PROTOBUF: Download: protobuf-cpp-3.1.0.tar.gz
> CMake Warning at ~/workspace/opencv/opencv-master/cmake/OpenCVDownload.cmake:170 (message):
>   PROTOBUF: Download failed: 1;"Unsupported protocol"
> Call Stack (most recent call first):
>   ~/workspace/opencv_contrib-master/modules/dnn/cmake/OpenCVFindLibProtobuf.cmake:32 (ocv_download)
>    ~/workspace/opencv_contrib-master/modules/dnn/CMakeLists.txt:5 (include)
> 
> 
> -- tiny-dnn: Download: v1.0.0a3.tar.gz
> CMake Warning at  ~/workspace/opencv/opencv-master/cmake/OpenCVDownload.cmake:170 (message):
>   tiny-dnn: Download failed: 1;"Unsupported protocol"
> Call Stack (most recent call first):
>    ~/workspace/opencv_contrib-master/modules/dnn_modern/CMakeLists.txt:20 (ocv_download)
> 
> 
> -- Failed to download tiny-dnn sources
> -- Looking for tiny_dnn.h
> -- Looking for tiny_dnn.h - not found
> -- Module opencv_dnn_modern disabled because tiny-dnn was not found
> -- checking for one of the modules 'freetype2'
> -- checking for one of the modules 'harfbuzz'
> -- freetype2:   NO
> -- harfbuzz:    NO
> -- Could NOT find HDF5 (missing:  HDF5_LIBRARIES HDF5_INCLUDE_DIRS) 
> -- No preference for use of exported gflags CMake configuration set, and no hints for include/library directories provided. Defaulting to preferring an installed/exported gflags CMake configuration if available.
> -- Failed to find installed gflags CMake configuration, searching for gflags build directories exported with CMake.
> -- Failed to find gflags - Failed to find an installed/exported CMake configuration for gflags, will perform search for installed gflags components.
> -- Failed to find gflags - Could not find gflags include directory, set GFLAGS_INCLUDE_DIR to directory containing gflags/gflags.h
> -- Failed to find glog - Could not find glog include directory, set GLOG_INCLUDE_DIR to directory containing glog/logging.h
> -- Module opencv_sfm disabled because the following dependencies are not found: Eigen Glog/Gflags
> -- checking for modules 'tesseract;lept'
> --   package 'tesseract' not found
> --   package 'lept' not found
> -- Tesseract:   NO
> -- xfeatures2d/boostdesc: Download: boostdesc_bgm.i
> CMake Warning at  ~/workspace/opencv/opencv-master/cmake/OpenCVDownload.cmake:170 (message):
>   xfeatures2d/boostdesc: Download failed: 1;"Unsupported protocol"
> Call Stack (most recent call first):
>    ~/workspace/opencv_contrib-master/modules/xfeatures2d/cmake/download_boostdesc.cmake:22 (ocv_download)
>   ~/workspace/opencv_contrib-master/modules/xfeatures2d/CMakeLists.txt:8 (download_boost_descriptors)
> 
> 
> -- xfeatures2d/boostdesc: Download: boostdesc_bgm_bi.i
> CMake Warning at  ~/workspace/opencv/opencv-master/cmake/OpenCVDownload.cmake:170 (message):
>   xfeatures2d/boostdesc: Download failed: 1;"Unsupported protocol"
> Call Stack (most recent call first):
>   ~/workspace/opencv_contrib-master/modules/xfeatures2d/cmake/download_boostdesc.cmake:22 (ocv_download)
>   ~/workspace/opencv_contrib-master/modules/xfeatures2d/CMakeLists.txt:8 (download_boost_descriptors)
> 
> 
> -- xfeatures2d/boostdesc: Download: boostdesc_bgm_hd.i
> CMake Warning at  ~/workspace/opencv/opencv-master/cmake/OpenCVDownload.cmake:170 (message):
>   xfeatures2d/boostdesc: Download failed: 1;"Unsupported protocol"
> Call Stack (most recent call first):
>   ~/workspace/opencv_contrib-master/modules/xfeatures2d/cmake/download_boostdesc.cmake:22 (ocv_download)
>   / ~/workspace/opencv_contrib-master/modules/xfeatures2d/CMakeLists.txt:8 (download_boost_descriptors)
> 
> 
> -- xfeatures2d/boostdesc: Download: boostdesc_binboost_064.i
> CMake Warning at ~/workspace/opencv/opencv-master/cmake/OpenCVDownload.cmake:170 (message):
>   xfeatures2d/boostdesc: Download failed: 1;"Unsupported protocol"
> Call Stack (most recent call first):
>    ~/workspace/opencv_contrib-master/modules/xfeatures2d/cmake/download_boostdesc.cmake:22 (ocv_download)
>    ~/workspace/opencv_contrib-master/modules/xfeatures2d/CMakeLists.txt:8 (download_boost_descriptors)
> 
> 
> -- xfeatures2d/boostdesc: Download: boostdesc_binboost_128.i
> CMake Warning at  ~/workspace/opencv/opencv-master/cmake/OpenCVDownload.cmake:170 (message):
>   xfeatures2d/boostdesc: Download failed: 1;"Unsupported protocol"
> Call Stack (most recent call first):
>   ~/workspace/opencv_contrib-master/modules/xfeatures2d/cmake/download_boostdesc.cmake:22 (ocv_download)
>    ~/workspace/opencv_contrib-master/modules/xfeatures2d/CMakeLists.txt:8 (download_boost_descriptors)
> 
> 
> -- xfeatures2d/boostdesc: Download: boostdesc_binboost_256.i
> CMake Warning at ~/workspace/opencv/opencv-master/cmake/OpenCVDownload.cmake:170 (message):
>   xfeatures2d/boostdesc: Download failed: 1;"Unsupported protocol"
> Call Stack (most recent call first):
>    ~/workspace/opencv_contrib-master/modules/xfeatures2d/cmake/download_boostdesc.cmake:22 (ocv_download)
>    ~/workspace/opencv_contrib-master/modules/xfeatures2d/CMakeLists.txt:8 (download_boost_descriptors)
> 
> 
> -- xfeatures2d/boostdesc: Download: boostdesc_lbgm.i
> CMake Warning at ~/workspace/opencv/opencv-master/cmake/OpenCVDownload.cmake:170 (message):
>   xfeatures2d/boostdesc: Download failed: 1;"Unsupported protocol"
> Call Stack (most recent call first):
>   ~/workspace/opencv_contrib-master/modules/xfeatures2d/cmake/download_boostdesc.cmake:22 (ocv_download)
>    ~/workspace/opencv_contrib-master/modules/xfeatures2d/CMakeLists.txt:8 (download_boost_descriptors)
> 
> 
> -- xfeatures2d/vgg: Download: vgg_generated_48.i
> CMake Warning at ~workspace/opencv/opencv-master/cmake/OpenCVDownload.cmake:170 (message):
>   xfeatures2d/vgg: Download failed: 1;"Unsupported protocol"
> Call Stack (most recent call first):
>    ~/workspace/opencv_contrib-master/modules/xfeatures2d/cmake/download_vgg.cmake:16 (ocv_download)
>  ~/workspace/opencv_contrib-master/modules/xfeatures2d/CMakeLists.txt:9 (download_vgg_descriptors)
> 
> 
> -- xfeatures2d/vgg: Download: vgg_generated_64.i
> CMake Warning at  ~/workspace/opencv/opencv-master/cmake/OpenCVDownload.cmake:170 (message):
>   xfeatures2d/vgg: Download failed: 1;"Unsupported protocol"
> Call Stack (most recent call first):
>    ~/workspace/opencv_contrib-master/modules/xfeatures2d/cmake/download_vgg.cmake:16 (ocv_download)
>    ~/workspace/opencv_contrib-master/modules/xfeatures2d/CMakeLists.txt:9 (download_vgg_descriptors)
> 
> 
> -- xfeatures2d/vgg: Download: vgg_generated_80.i
> CMake Warning at  ~/workspace/opencv/opencv-master/cmake/OpenCVDownload.cmake:170 (message):
>   xfeatures2d/vgg: Download failed: 1;"Unsupported protocol"
> Call Stack (most recent call first):
>   ~/workspace/opencv_contrib-master/modules/xfeatures2d/cmake/download_vgg.cmake:16 (ocv_download)
>   ~/workspace/opencv_contrib-master/modules/xfeatures2d/CMakeLists.txt:9 (download_vgg_descriptors)
> 
> 
> -- xfeatures2d/vgg: Download: vgg_generated_120.i
> CMake Warning at  ~/workspace/opencv/opencv-master/cmake/OpenCVDownload.cmake:170 (message):
>   xfeatures2d/vgg: Download failed: 1;"Unsupported protocol"
> Call Stack (most recent call first):
>    ~/workspace/opencv_contrib-master/modules/xfeatures2d/cmake/download_vgg.cmake:16 (ocv_download)
>   ~/workspace/opencv_contrib-master/modules/xfeatures2d/CMakeLists.txt:9 (download_vgg_descriptors)
> 
> 
> -- 
> -- General configuration for OpenCV 3.2.0-dev =====================================
> --   Version control:               unknown
> -- 
> --   Extra modules:
> --     Location (extra):             ~/workspace/opencv_contrib-master/modules
> --     Version control (extra):     unknown
> -- 
> --   Platform:
> --     Timestamp:                   2017-04-20T13:45:39Z
> --     Host:                        Linux 4.4.0-31-generic x86_64
> --     CMake:                       3.2.2
> --     CMake generator:             Unix Makefiles
> --     CMake build tool:            /usr/bin/make
> --     Configuration:               Release
> -- 
> --   CPU/HW features:
> --     Baseline:                    SSE SSE2 SSE3 SSSE3
> --       requested:                 SSSE3
> --     Dispatched code generation:  SSE4_1 FP16 AVX AVX2
> --       requested:                 SSE4_1 AVX FP16 AVX2
> --       SSE4_1 (0 files):          + SSE4_1
> --       FP16 (0 files):            + SSE4_1 SSE4_2 FP16 AVX
> --       AVX (1 files):             + SSE4_1 SSE4_2 AVX
> --       AVX2 (1 files):            + SSE4_1 SSE4_2 FP16 FMA3 AVX AVX2
> -- 
> --   C/C++:
> --     Built as dynamic libs?:      YES
> --     C++ Compiler:                /usr/bin/c++  (ver 4.8.4)
> --     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 -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections  -msse -msse2 -msse3 -mssse3 -fvisibility=hidden -fvisibility-inlines-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 -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections  -msse -msse2 -msse3 -mssse3 -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 -Wno-narrowing -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections  -msse -msse2 -msse3 -mssse3 -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 -Wno-narrowing -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections  -msse -msse2 -msse3 -mssse3 -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:       zlib libjpeg libwebp libpng libtiff libjasper IlmImf
> -- 
> --   OpenCV modules:
> --     To be built:                 core flann imgproc ml objdetect phase_unwrapping photo plot reg surface_matching video xphoto bgsegm face fuzzy imgcodecs shape videoio xobjdetect highgui superres ts bioinspired dpm features2d line_descriptor saliency text calib3d ccalib datasets rgbd stereo structured_light tracking videostab xfeatures2d ximgproc aruco optflow stitching
> --     Disabled:                    world contrib_world
> --     Disabled by dependency:      -
> --     Unavailable:                 cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev java python2 python3 viz cnn_3dobj cvv dnn dnn_modern freetype hdf matlab sfm xfeatures2d
> -- 
> --   GUI: 
> --     QT:                          NO
> --     GTK+:                        NO
> --     GThread :                    NO
> --     GtkGlExt:                    NO
> --     OpenGL support:              NO
> --     VTK support:                 NO
> -- 
> --   Media I/O: 
> --     ZLib:                        zlib (ver 1.2.8)
> --     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:                      NO
> --       avcodec:                   NO
> --       avformat:                  NO
> --       avutil:                    NO
> --       swscale:                   NO
> --       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/YES
> --     XIMEA:                       NO
> --     Xine:                        NO
> --     gPhoto2:                     NO
> -- 
> --   Parallel framework:            pthreads
> -- 
> --   Other third-party libraries:
> --     Use IPP:                     IPP not found or implicitly disabled
> --     Use IPP Async:               NO
> --     Use VA:                      NO
> --     Use Intel VA-API/OpenCL:     NO
> --     Use Lapack:                  NO
> --     Use Eigen:                   NO
> --     Use Cuda:                    NO
> --     Use OpenCL:                  YES
> --     Use OpenVX:                  NO
> --     Use custom HAL:              NO
> -- 
> --   OpenCL:                        <Dynamic loading of OpenCL library>
> --     Include path:                ~/workspace/opencv/opencv-master/3rdparty/include/opencl/1.2
> --     Use AMDFFT:                  NO
> --     Use AMDBLAS:                 NO
> -- 
> --   Python 2:
> --     Interpreter:                 /usr/bin/python2.7 (ver 2.7.6)
> -- 
> --   Python 3:
> --     Interpreter:                 /usr/bin/python3.4 (ver 3.4.3)
> -- 
> --   Python (for build):            /usr/bin/python2.7
> -- 
> --   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:              NO
> -- 
> --   Install path:                  /usr/local
> -- 
> --   cvconfig.h is in:              ~/workspace/build
> -- -----------------------------------------------------------------
> -- 
> -- Configuring done
> -- Generating done
> -- Build files have been written to:  ~/workspace/build
> 

and this the output of make -j5

Scanning dependencies of target opencv_core_pch_dephelp
[  1%] Built target zlib
[  4%] [  7%] Built target libjasper
[  7%] Built target libjpeg
Building CXX object modules/core/CMakeFiles/opencv_core_pch_dephelp.dir/opencv_core_pch_dephelp.cxx.o
Scanning dependencies of target opencv_ts_pch_dephelp
Scanning dependencies of target opencv_imgproc_pch_dephelp
Scanning dependencies of target opencv_imgcodecs_pch_dephelp
[  7%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc_pch_dephelp.dir/opencv_imgproc_pch_dephelp.cxx.o
[  8%] [ 16%] Built target libwebp
Building CXX object modules/ts/CMakeFiles/opencv_ts_pch_dephelp.dir/opencv_ts_pch_dephelp.cxx.o
[ 16%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_imgcodecs_pch_dephelp.dir/opencv_imgcodecs_pch_dephelp.cxx.o
Scanning dependencies of target opencv_videoio_pch_dephelp
[ 16%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio_pch_dephelp.dir/opencv_videoio_pch_dephelp.cxx.o
Linking CXX static library ../../lib/libopencv_ts_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_core_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_imgcodecs_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_imgproc_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_videoio_pch_dephelp.a
[ 16%] [ 16%] [ 16%] [ 16%] [ 16%] Built target opencv_imgcodecs_pch_dephelp
Built target opencv_core_pch_dephelp
Built target opencv_imgproc_pch_dephelp
Built target opencv_ts_pch_dephelp
Built target opencv_videoio_pch_dephelp
Scanning dependencies of target opencv_flann_pch_dephelp
Scanning dependencies of target opencv_highgui_pch_dephelp
Scanning dependencies of target opencv_test_flann_pch_dephelp
Scanning dependencies of target opencv_perf_core_pch_dephelp
Scanning dependencies of target opencv_test_core_pch_dephelp
[ 16%] [ 16%] [ 16%] Building CXX object modules/flann/CMakeFiles/opencv_flann_pch_dephelp.dir/opencv_flann_pch_dephelp.cxx.o
[ 16%] [ 17%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui_pch_dephelp.dir/opencv_highgui_pch_dephelp.cxx.o
Building CXX object modules/core/CMakeFiles/opencv_test_core_pch_dephelp.dir/opencv_test_core_pch_dephelp.cxx.o
Building CXX object modules/core/CMakeFiles/opencv_perf_core_pch_dephelp.dir/opencv_perf_core_pch_dephelp.cxx.o
Building CXX object modules/flann/CMakeFiles/opencv_test_flann_pch_dephelp.dir/opencv_test_flann_pch_dephelp.cxx.o
Linking CXX static library ../../lib/libopencv_flann_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_test_flann_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_highgui_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_perf_core_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_test_core_pch_dephelp.a
[ 17%] [ 17%] [ 17%] [ 17%] [ 17%] Built target opencv_flann_pch_dephelp
Built target opencv_highgui_pch_dephelp
Built target opencv_perf_core_pch_dephelp
Built target opencv_test_core_pch_dephelp
Built target opencv_test_flann_pch_dephelp
Scanning dependencies of target opencv_test_ml_pch_dephelp
Scanning dependencies of target opencv_ml_pch_dephelp
Scanning dependencies of target opencv_test_imgproc_pch_dephelp
Scanning dependencies of target opencv_perf_imgproc_pch_dephelp
Scanning dependencies of target opencv_objdetect_pch_dephelp
[ 17%] [ 17%] [ 17%] Building CXX object modules/objdetect/CMakeFiles/opencv_objdetect_pch_dephelp.dir/opencv_objdetect_pch_dephelp.cxx.o
Building CXX object modules/ml/CMakeFiles/opencv_ml_pch_dephelp.dir/opencv_ml_pch_dephelp.cxx.o
Building CXX object modules/ml/CMakeFiles/opencv_test_ml_pch_dephelp.dir/opencv_test_ml_pch_dephelp.cxx.o
[ 17%] [ 17%] Building CXX object modules/imgproc/CMakeFiles/opencv_perf_imgproc_pch_dephelp.dir/opencv_perf_imgproc_pch_dephelp.cxx.o
Building CXX object modules/imgproc/CMakeFiles/opencv_test_imgproc_pch_dephelp.dir/opencv_test_imgproc_pch_dephelp.cxx.o
Linking CXX static library ../../lib/libopencv_perf_imgproc_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_ml_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_test_imgproc_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_test_ml_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_objdetect_pch_dephelp.a
[ 17%] [ 17%] [ 17%] [ 17%] [ 17%] Built target opencv_test_ml_pch_dephelp
Built target opencv_objdetect_pch_dephelp
Built target opencv_perf_imgproc_pch_dephelp
Built target opencv_test_imgproc_pch_dephelp
Built target opencv_ml_pch_dephelp
Scanning dependencies of target opencv_test_objdetect_pch_dephelp
Scanning dependencies of target opencv_perf_objdetect_pch_dephelp
Scanning dependencies of target opencv_photo_pch_dephelp
Scanning dependencies of target opencv_phase_unwrapping_pch_dephelp
Scanning dependencies of target opencv_test_phase_unwrapping_pch_dephelp
[ 17%] [ 17%] [ 17%] Building CXX object modules/phase_unwrapping/CMakeFiles/opencv_phase_unwrapping_pch_dephelp.dir/opencv_phase_unwrapping_pch_dephelp.cxx.o
Building CXX object modules/photo/CMakeFiles/opencv_photo_pch_dephelp.dir/opencv_photo_pch_dephelp.cxx.o
Building CXX object modules/objdetect/CMakeFiles/opencv_perf_objdetect_pch_dephelp.dir/opencv_perf_objdetect_pch_dephelp.cxx.o
[ 18%] [ 18%] Building CXX object modules/phase_unwrapping/CMakeFiles/opencv_test_phase_unwrapping_pch_dephelp.dir/opencv_test_phase_unwrapping_pch_dephelp.cxx.o
Building CXX object modules/objdetect/CMakeFiles/opencv_test_objdetect_pch_dephelp.dir/opencv_test_objdetect_pch_dephelp.cxx.o
Linking CXX static library ../../lib/libopencv_phase_unwrapping_pch_dephelp.a
[ 18%] Built target opencv_phase_unwrapping_pch_dephelp
Linking CXX static library ../../lib/libopencv_photo_pch_dephelp.a
Scanning dependencies of target opencv_perf_photo_pch_dephelp
[ 18%] Built target opencv_photo_pch_dephelp
[ 18%] Scanning dependencies of target opencv_test_photo_pch_dephelp
Building CXX object modules/photo/CMakeFiles/opencv_perf_photo_pch_dephelp.dir/opencv_perf_photo_pch_dephelp.cxx.o
[ 18%] Building CXX object modules/photo/CMakeFiles/opencv_test_photo_pch_dephelp.dir/opencv_test_photo_pch_dephelp.cxx.o
Linking CXX static library ../../lib/libopencv_test_photo_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_perf_objdetect_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_perf_photo_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_test_objdetect_pch_dephelp.a
[ 18%] [ 18%] [ 18%] [ 18%] Built target opencv_test_photo_pch_dephelp
Built target opencv_perf_objdetect_pch_dephelp
Built target opencv_test_objdetect_pch_dephelp
Built target opencv_perf_photo_pch_dephelp
Scanning dependencies of target opencv_reg_pch_dephelp
Scanning dependencies of target opencv_perf_reg_pch_dephelp
[ 18%] Building CXX object modules/reg/CMakeFiles/opencv_reg_pch_dephelp.dir/opencv_reg_pch_dephelp.cxx.o
Scanning dependencies of target opencv_test_reg_pch_dephelp
Scanning dependencies of target opencv_plot_pch_dephelp
[ 18%] Building CXX object modules/reg/CMakeFiles/opencv_perf_reg_pch_dephelp.dir/opencv_perf_reg_pch_dephelp.cxx.o
[ 18%] Building CXX object modules/reg/CMakeFiles/opencv_test_reg_pch_dephelp.dir/opencv_test_reg_pch_dephelp.cxx.o
[ 18%] Building CXX object modules/plot/CMakeFiles/opencv_plot_pch_dephelp.dir/opencv_plot_pch_dephelp.cxx.o
Linking CXX static library ../../lib/libopencv_reg_pch_dephelp.a
[ 18%] Built target opencv_reg_pch_dephelp
Scanning dependencies of target opencv_surface_matching_pch_dephelp
[ 19%] Building CXX object modules/surface_matching/CMakeFiles/opencv_surface_matching_pch_dephelp.dir/opencv_surface_matching_pch_dephelp.cxx.o
Linking CXX static library ../../lib/libopencv_plot_pch_dephelp.a
[ 19%] Built target opencv_plot_pch_dephelp
Scanning dependencies of target opencv_video_pch_dephelp
[ 19%] Building CXX object modules/video/CMakeFiles/opencv_video_pch_dephelp.dir/opencv_video_pch_dephelp.cxx.o
Linking CXX static library ../../lib/libopencv_perf_reg_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_test_reg_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_test_phase_unwrapping_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_surface_matching_pch_dephelp.a
[ 19%] [ 19%] [ 19%] Built target opencv_perf_reg_pch_dephelp
Built target opencv_test_reg_pch_dephelp
Built target opencv_test_phase_unwrapping_pch_dephelp
[ 19%] Built target opencv_surface_matching_pch_dephelp
Linking CXX static library ../../lib/libopencv_video_pch_dephelp.a
[ 19%] Built target opencv_video_pch_dephelp
Scanning dependencies of target opencv_perf_video_pch_dephelp
Scanning dependencies of target opencv_perf_xphoto_pch_dephelp
Scanning dependencies of target opencv_test_video_pch_dephelp
Scanning dependencies of target opencv_test_xphoto_pch_dephelp
Scanning dependencies of target opencv_bgsegm_pch_dephelp
[ 19%] Building CXX object modules/bgsegm/CMakeFiles/opencv_bgsegm_pch_dephelp.dir/opencv_bgsegm_pch_dephelp.cxx.o
[ 19%] [ 19%] [ 19%] [ 19%] Building CXX object modules/video/CMakeFiles/opencv_test_video_pch_dephelp.dir/opencv_test_video_pch_dephelp.cxx.o
Building CXX object modules/video/CMakeFiles/opencv_perf_video_pch_dephelp.dir/opencv_perf_video_pch_dephelp.cxx.o
Building CXX object modules/xphoto/CMakeFiles/opencv_perf_xphoto_pch_dephelp.dir/opencv_perf_xphoto_pch_dephelp.cxx.o
Building CXX object modules/xphoto/CMakeFiles/opencv_test_xphoto_pch_dephelp.dir/opencv_test_xphoto_pch_dephelp.cxx.o
Linking CXX static library ../../lib/libopencv_perf_video_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_test_video_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_bgsegm_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_test_xphoto_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_perf_xphoto_pch_dephelp.a
[ 19%] [ 19%] [ 19%] [ 19%] [ 19%] Built target opencv_bgsegm_pch_dephelp
Built target opencv_perf_video_pch_dephelp
Built target opencv_test_video_pch_dephelp
Built target opencv_perf_xphoto_pch_dephelp
Built target opencv_test_xphoto_pch_dephelp
Scanning dependencies of target opencv_fuzzy_pch_dephelp
Scanning dependencies of target opencv_test_bgsegm_pch_dephelp
Scanning dependencies of target opencv_test_fuzzy_pch_dephelp
Scanning dependencies of target opencv_face_pch_dephelp
Scanning dependencies of target opencv_test_face_pch_dephelp
[ 19%] [ 19%] [ 19%] Building CXX object modules/fuzzy/CMakeFiles/opencv_fuzzy_pch_dephelp.dir/opencv_fuzzy_pch_dephelp.cxx.o
Building CXX object modules/bgsegm/CMakeFiles/opencv_test_bgsegm_pch_dephelp.dir/opencv_test_bgsegm_pch_dephelp.cxx.o
Building CXX object modules/fuzzy/CMakeFiles/opencv_test_fuzzy_pch_dephelp.dir/opencv_test_fuzzy_pch_dephelp.cxx.o
[ 19%] [ 19%] Building CXX object modules/face/CMakeFiles/opencv_face_pch_dephelp.dir/opencv_face_pch_dephelp.cxx.o
Building CXX object modules/face/CMakeFiles/opencv_test_face_pch_dephelp.dir/opencv_test_face_pch_dephelp.cxx.o
Linking CXX static library ../../lib/libopencv_face_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_test_bgsegm_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_test_face_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_fuzzy_pch_dephelp.a
[ 19%] [ 19%] [ 19%] [ 19%] Built target opencv_fuzzy_pch_dephelp
Built target opencv_test_bgsegm_pch_dephelp
Built target opencv_test_face_pch_dephelp
Built target opencv_face_pch_dephelp
Scanning dependencies of target opencv_perf_imgcodecs_pch_dephelp
Scanning dependencies of target opencv_test_imgcodecs_pch_dephelp
Linking CXX static library ../../lib/libopencv_test_fuzzy_pch_dephelp.a
[ 19%] Built target opencv_test_fuzzy_pch_dephelp
[ 19%] [ 19%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_perf_imgcodecs_pch_dephelp.dir/opencv_perf_imgcodecs_pch_dephelp.cxx.o
Building CXX object modules/imgcodecs/CMakeFiles/opencv_test_imgcodecs_pch_dephelp.dir/opencv_test_imgcodecs_pch_dephelp.cxx.o
Scanning dependencies of target opencv_shape_pch_dephelp
Scanning dependencies of target opencv_test_shape_pch_dephelp
Scanning dependencies of target opencv_perf_videoio_pch_dephelp
[ 19%] Building CXX object modules/shape/CMakeFiles/opencv_shape_pch_dephelp.dir/opencv_shape_pch_dephelp.cxx.o
[ 19%] [ 19%] Building CXX object modules/videoio/CMakeFiles/opencv_perf_videoio_pch_dephelp.dir/opencv_perf_videoio_pch_dephelp.cxx.o
Building CXX object modules/shape/CMakeFiles/opencv_test_shape_pch_dephelp.dir/opencv_test_shape_pch_dephelp.cxx.o
Linking CXX static library ../../lib/libopencv_shape_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_perf_imgcodecs_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_test_shape_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_perf_videoio_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_test_imgcodecs_pch_dephelp.a
[ 19%] [ 19%] [ 19%] [ 19%] [ 19%] Built target opencv_perf_imgcodecs_pch_dephelp
Built target opencv_shape_pch_dephelp
Built target opencv_test_imgcodecs_pch_dephelp
Built target opencv_perf_videoio_pch_dephelp
Built target opencv_test_shape_pch_dephelp
Scanning dependencies of target opencv_test_highgui_pch_dephelp
Scanning dependencies of target opencv_test_videoio_pch_dephelp
[ 20%] [ 20%] Building CXX object modules/videoio/CMakeFiles/opencv_test_videoio_pch_dephelp.dir/opencv_test_videoio_pch_dephelp.cxx.o
Building CXX object modules/highgui/CMakeFiles/opencv_test_highgui_pch_dephelp.dir/opencv_test_highgui_pch_dephelp.cxx.o
Scanning dependencies of target opencv_perf_superres_pch_dephelp
Scanning dependencies of target opencv_xobjdetect_pch_dephelp
Scanning dependencies of target opencv_superres_pch_dephelp
[ 20%] Building CXX object modules/superres/CMakeFiles/opencv_perf_superres_pch_dephelp.dir/opencv_perf_superres_pch_dephelp.cxx.o
[ 20%] Building CXX object modules/xobjdetect/CMakeFiles/opencv_xobjdetect_pch_dephelp.dir/opencv_xobjdetect_pch_dephelp.cxx.o
[ 20%] Building CXX object modules/superres/CMakeFiles/opencv_superres_pch_dephelp.dir/opencv_superres_pch_dephelp.cxx.o
Linking CXX static library ../../lib/libopencv_test_highgui_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_test_videoio_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_superres_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_xobjdetect_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_perf_superres_pch_dephelp.a
[ 20%] [ 20%] [ 20%] [ 20%] [ 20%] Built target opencv_test_videoio_pch_dephelp
Built target opencv_test_highgui_pch_dephelp
Built target opencv_perf_superres_pch_dephelp
Built target opencv_xobjdetect_pch_dephelp
Built target opencv_superres_pch_dephelp
Scanning dependencies of target opencv_test_superres_pch_dephelp
Scanning dependencies of target opencv_perf_bioinspired_pch_dephelp
Scanning dependencies of target opencv_bioinspired_pch_dephelp
Scanning dependencies of target opencv_test_bioinspired_pch_dephelp
[ 20%] [ 20%] [ 20%] [ 20%] Building CXX object modules/superres/CMakeFiles/opencv_test_superres_pch_dephelp.dir/opencv_test_superres_pch_dephelp.cxx.o
Building CXX object modules/bioinspired/CMakeFiles/opencv_bioinspired_pch_dephelp.dir/opencv_bioinspired_pch_dephelp.cxx.o
Building CXX object modules/bioinspired/CMakeFiles/opencv_perf_bioinspired_pch_dephelp.dir/opencv_perf_bioinspired_pch_dephelp.cxx.o
Building CXX object modules/bioinspired/CMakeFiles/opencv_test_bioinspired_pch_dephelp.dir/opencv_test_bioinspired_pch_dephelp.cxx.o
Scanning dependencies of target opencv_dpm_pch_dephelp
[ 20%] Building CXX object modules/dpm/CMakeFiles/opencv_dpm_pch_dephelp.dir/opencv_dpm_pch_dephelp.cxx.o
Linking CXX static library ../../lib/libopencv_perf_bioinspired_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_bioinspired_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_dpm_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_test_bioinspired_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_test_superres_pch_dephelp.a
[ 20%] [ 20%] [ 20%] [ 20%] [ 20%] Built target opencv_bioinspired_pch_dephelp
Built target opencv_test_superres_pch_dephelp
Built target opencv_perf_bioinspired_pch_dephelp
Built target opencv_test_bioinspired_pch_dephelp
Built target opencv_dpm_pch_dephelp
Scanning dependencies of target opencv_test_features2d_pch_dephelp
Scanning dependencies of target opencv_features2d_pch_dephelp
Scanning dependencies of target opencv_perf_features2d_pch_dephelp
[ 20%] Building CXX object modules/features2d/CMakeFiles/opencv_test_features2d_pch_dephelp.dir/opencv_test_features2d_pch_dephelp.cxx.o
[ 20%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d_pch_dephelp.dir/opencv_features2d_pch_dephelp.cxx.o
[ 20%] Building CXX object modules/features2d/CMakeFiles/opencv_perf_features2d_pch_dephelp.dir/opencv_perf_features2d_pch_dephelp.cxx.o
Scanning dependencies of target opencv_perf_line_descriptor_pch_dephelp
Scanning dependencies of target opencv_line_descriptor_pch_dephelp
[ 20%] Building CXX object modules/line_descriptor/CMakeFiles/opencv_line_descriptor_pch_dephelp.dir/opencv_line_descriptor_pch_dephelp.cxx.o
[ 20%] Building CXX object modules/line_descriptor/CMakeFiles/opencv_perf_line_descriptor_pch_dephelp.dir/opencv_perf_line_descriptor_pch_dephelp.cxx.o
Linking CXX static library ../../lib/libopencv_features2d_pch_dephelp.a
[ 20%] Built target opencv_features2d_pch_dephelp
Linking CXX static library ../../lib/libopencv_line_descriptor_pch_dephelp.a
Scanning dependencies of target opencv_test_line_descriptor_pch_dephelp
[ 20%] Building CXX object modules/line_descriptor/CMakeFiles/opencv_test_line_descriptor_pch_dephelp.dir/opencv_test_line_descriptor_pch_dephelp.cxx.o
Linking CXX static library ../../lib/libopencv_test_features2d_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_perf_features2d_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_perf_line_descriptor_pch_dephelp.a
[ 20%] Built target opencv_line_descriptor_pch_dephelp
[ 20%] Built target opencv_perf_line_descriptor_pch_dephelp
[ 20%] Built target opencv_perf_features2d_pch_dephelp
[ 20%] Built target opencv_test_features2d_pch_dephelp
Linking CXX static library ../../lib/libopencv_test_line_descriptor_pch_dephelp.a
Scanning dependencies of target opencv_saliency_pch_dephelp
[ 20%] Building CXX object modules/saliency/CMakeFiles/opencv_saliency_pch_dephelp.dir/opencv_saliency_pch_dephelp.cxx.o
[ 20%] Built target opencv_test_line_descriptor_pch_dephelp
Scanning dependencies of target opencv_test_text_pch_dephelp
Scanning dependencies of target opencv_calib3d_pch_dephelp
Scanning dependencies of target opencv_perf_calib3d_pch_dephelp
[ 20%] Building CXX object modules/calib3d/CMakeFiles/opencv_perf_calib3d_pch_dephelp.dir/opencv_perf_calib3d_pch_dephelp.cxx.o
Linking CXX static library ../../lib/libopencv_saliency_pch_dephelp.a
Scanning dependencies of target opencv_text_pch_dephelp
[ 20%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d_pch_dephelp.dir/opencv_calib3d_pch_dephelp.cxx.o
[ 20%] Building CXX object modules/text/CMakeFiles/opencv_test_text_pch_dephelp.dir/opencv_test_text_pch_dephelp.cxx.o
[ 20%] Building CXX object modules/text/CMakeFiles/opencv_text_pch_dephelp.dir/opencv_text_pch_dephelp.cxx.o
[ 20%] Built target opencv_saliency_pch_dephelp
Scanning dependencies of target opencv_test_calib3d_pch_dephelp
[ 20%] Building CXX object modules/calib3d/CMakeFiles/opencv_test_calib3d_pch_dephelp.dir/opencv_test_calib3d_pch_dephelp.cxx.o
Linking CXX static library ../../lib/libopencv_text_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_test_calib3d_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_test_text_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_calib3d_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_perf_calib3d_pch_dephelp.a
[ 20%] [ 20%] [ 20%] [ 20%] [ 20%] Built target opencv_text_pch_dephelp
Built target opencv_test_text_pch_dephelp
Built target opencv_perf_calib3d_pch_dephelp
Built target opencv_calib3d_pch_dephelp
Built target opencv_test_calib3d_pch_dephelp
Scanning dependencies of target opencv_ccalib_pch_dephelp
Scanning dependencies of target opencv_rgbd_pch_dephelp
Scanning dependencies of target opencv_stereo_pch_dephelp
Scanning dependencies of target opencv_test_rgbd_pch_dephelp
Scanning dependencies of target opencv_perf_stereo_pch_dephelp
[ 20%] Building CXX object modules/stereo/CMakeFiles/opencv_stereo_pch_dephelp.dir/opencv_stereo_pch_dephelp.cxx.o
[ 21%] [ 21%] [ 21%] [ 21%] Building CXX object modules/stereo/CMakeFiles/opencv_perf_stereo_pch_dephelp.dir/opencv_perf_stereo_pch_dephelp.cxx.o
Building CXX object modules/rgbd/CMakeFiles/opencv_rgbd_pch_dephelp.dir/opencv_rgbd_pch_dephelp.cxx.o
Building CXX object modules/ccalib/CMakeFiles/opencv_ccalib_pch_dephelp.dir/opencv_ccalib_pch_dephelp.cxx.o
Building CXX object modules/rgbd/CMakeFiles/opencv_test_rgbd_pch_dephelp.dir/opencv_test_rgbd_pch_dephelp.cxx.o
Linking CXX static library ../../lib/libopencv_test_rgbd_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_perf_stereo_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_ccalib_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_stereo_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_rgbd_pch_dephelp.a
[ 21%] [ 21%] [ 21%] [ 21%] [ 21%] Built target opencv_stereo_pch_dephelp
Built target opencv_rgbd_pch_dephelp
Built target opencv_test_rgbd_pch_dephelp
Built target opencv_perf_stereo_pch_dephelp
Built target opencv_ccalib_pch_dephelp
Scanning dependencies of target opencv_tracking_pch_dephelp
Scanning dependencies of target opencv_perf_tracking_pch_dephelp
Scanning dependencies of target opencv_test_stereo_pch_dephelp
Scanning dependencies of target opencv_test_structured_light_pch_dephelp
Scanning dependencies of target opencv_structured_light_pch_dephelp
[ 22%] [ 22%] [ 22%] Building CXX object modules/stereo/CMakeFiles/opencv_test_stereo_pch_dephelp.dir/opencv_test_stereo_pch_dephelp.cxx.o
Building CXX object modules/structured_light/CMakeFiles/opencv_structured_light_pch_dephelp.dir/opencv_structured_light_pch_dephelp.cxx.o
Building CXX object modules/structured_light/CMakeFiles/opencv_test_structured_light_pch_dephelp.dir/opencv_test_structured_light_pch_dephelp.cxx.o
[ 22%] [ 22%] Building CXX object modules/tracking/CMakeFiles/opencv_perf_tracking_pch_dephelp.dir/opencv_perf_tracking_pch_dephelp.cxx.o
Building CXX object modules/tracking/CMakeFiles/opencv_tracking_pch_dephelp.dir/opencv_tracking_pch_dephelp.cxx.o
Linking CXX static library ../../lib/libopencv_perf_tracking_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_structured_light_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_test_stereo_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_test_structured_light_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_tracking_pch_dephelp.a
[ 22%] [ 22%] [ 22%] [ 22%] [ 22%] Built target opencv_tracking_pch_dephelp
Built target opencv_structured_light_pch_dephelp
Built target opencv_test_stereo_pch_dephelp
Built target opencv_test_structured_light_pch_dephelp
Built target opencv_perf_tracking_pch_dephelp
Scanning dependencies of target opencv_videostab_pch_dephelp
Scanning dependencies of target opencv_perf_xfeatures2d_pch_dephelp
Scanning dependencies of target opencv_test_xfeatures2d_pch_dephelp
Scanning dependencies of target opencv_xfeatures2d_pch_dephelp
Scanning dependencies of target opencv_test_tracking_pch_dephelp
[ 22%] [ 22%] Building CXX object modules/xfeatures2d/CMakeFiles/opencv_xfeatures2d_pch_dephelp.dir/opencv_xfeatures2d_pch_dephelp.cxx.o
[ 22%] Building CXX object modules/videostab/CMakeFiles/opencv_videostab_pch_dephelp.dir/opencv_videostab_pch_dephelp.cxx.o
Building CXX object modules/xfeatures2d/CMakeFiles/opencv_perf_xfeatures2d_pch_dephelp.dir/opencv_perf_xfeatures2d_pch_dephelp.cxx.o
[ 22%] Building CXX object modules/xfeatures2d/CMakeFiles/opencv_test_xfeatures2d_pch_dephelp.dir/opencv_test_xfeatures2d_pch_dephelp.cxx.o
[ 22%] Building CXX object modules/tracking/CMakeFiles/opencv_test_tracking_pch_dephelp.dir/opencv_test_tracking_pch_dephelp.cxx.o
Linking CXX static library ../../lib/libopencv_videostab_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_test_xfeatures2d_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_perf_xfeatures2d_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_xfeatures2d_pch_dephelp.a
[ 22%] [ 22%] [ 22%] [ 22%] Built target opencv_perf_xfeatures2d_pch_dephelp
Built target opencv_videostab_pch_dephelp
Built target opencv_xfeatures2d_pch_dephelp
Built target opencv_test_xfeatures2d_pch_dephelp
Scanning dependencies of target opencv_perf_ximgproc_pch_dephelp
Scanning dependencies of target opencv_aruco_pch_dephelp
Scanning dependencies of target opencv_ximgproc_pch_dephelp
Scanning dependencies of target opencv_test_ximgproc_pch_dephelp
[ 22%] [ 22%] Building CXX object modules/aruco/CMakeFiles/opencv_aruco_pch_dephelp.dir/opencv_aruco_pch_dephelp.cxx.o
Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc_pch_dephelp.dir/opencv_ximgproc_pch_dephelp.cxx.o
[ 22%] [ 22%] Building CXX object modules/ximgproc/CMakeFiles/opencv_test_ximgproc_pch_dephelp.dir/opencv_test_ximgproc_pch_dephelp.cxx.o
Building CXX object modules/ximgproc/CMakeFiles/opencv_perf_ximgproc_pch_dephelp.dir/opencv_perf_ximgproc_pch_dephelp.cxx.o
Linking CXX static library ../../lib/libopencv_test_tracking_pch_dephelp.a
[ 22%] Built target opencv_test_tracking_pch_dephelp
Scanning dependencies of target opencv_test_aruco_pch_dephelp
[ 22%] Building CXX object modules/aruco/CMakeFiles/opencv_test_aruco_pch_dephelp.dir/opencv_test_aruco_pch_dephelp.cxx.o
Linking CXX static library ../../lib/libopencv_test_aruco_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_ximgproc_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_test_ximgproc_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_aruco_pch_dephelp.a
[ 22%] [ 22%] [ 22%] [ 22%] Built target opencv_ximgproc_pch_dephelp
Built target opencv_test_aruco_pch_dephelp
Built target opencv_aruco_pch_dephelp
Built target opencv_test_ximgproc_pch_dephelp
Scanning dependencies of target opencv_stitching_pch_dephelp
Scanning dependencies of target opencv_perf_optflow_pch_dephelp
Scanning dependencies of target opencv_test_optflow_pch_dephelp
Scanning dependencies of target opencv_optflow_pch_dephelp
[ 22%] Building CXX object modules/optflow/CMakeFiles/opencv_optflow_pch_dephelp.dir/opencv_optflow_pch_dephelp.cxx.o
[ 22%] [ 22%] [ 22%] Building CXX object modules/stitching/CMakeFiles/opencv_stitching_pch_dephelp.dir/opencv_stitching_pch_dephelp.cxx.o
Building CXX object modules/optflow/CMakeFiles/opencv_test_optflow_pch_dephelp.dir/opencv_test_optflow_pch_dephelp.cxx.o
Building CXX object modules/optflow/CMakeFiles/opencv_perf_optflow_pch_dephelp.dir/opencv_perf_optflow_pch_dephelp.cxx.o
In file included from ~/workspace/opencv/opencv-master/modules/stitching/include/opencv2/stitching.hpp:49:0,
                 from ~/workspace/opencv/opencv-master/modules/stitching/src/precomp.hpp:59,
                 from ~/workspace/build/modules/stitching/opencv_stitching_pch_dephelp.cxx:1:
~/workspace/opencv/opencv-master/modules/stitching/include/opencv2/stitching/detail/matchers.hpp:52:42: fatal error: opencv2/xfeatures2d/cuda.hpp: No such file or directory
 #  include "opencv2/xfeatures2d/cuda.hpp"
                                          ^
compilation terminated.
make[2]: *** [modules/stitching/CMakeFiles/opencv_stitching_pch_dephelp.dir/opencv_stitching_pch_dephelp.cxx.o] Error 1
make[1]: *** [modules/stitching/CMakeFiles/opencv_stitching_pch_dephelp.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Linking CXX static library ../../lib/libopencv_optflow_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_perf_optflow_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_test_optflow_pch_dephelp.a
[ 22%] [ 22%] [ 22%] Built target opencv_perf_optflow_pch_dephelp
Built target opencv_test_optflow_pch_dephelp
Built target opencv_optflow_pch_dephelp
Linking CXX static library ../../lib/libopencv_perf_ximgproc_pch_dephelp.a
[ 22%] Built target opencv_perf_ximgproc_pch_dephelp
make: *** [all] Error 2
xx@ubuntu:~//workspace/build$ 

@StevenPuttemans
Copy link

So let us reduce this down to the actual error which is

In file included from ~/workspace/opencv/opencv-master/modules/stitching/include/opencv2/stitching.hpp:49:0,
                 from ~/workspace/opencv/opencv-master/modules/stitching/src/precomp.hpp:59,
                 from ~/workspace/build/modules/stitching/opencv_stitching_pch_dephelp.cxx:1:
~/workspace/opencv/opencv-master/modules/stitching/include/opencv2/stitching/detail/matchers.hpp:52:42: fatal error: opencv2/xfeatures2d/cuda.hpp: No such file or directory
 #  include "opencv2/xfeatures2d/cuda.hpp"
                                          ^

Looking at your CMAKE this is expected to fail, since Use Cuda: NO means no CUDA installation has been found on your system. However, xfeatures2d should not have a dependency on CUDA if CUDA has been disabled by CMAKE.

@alalek could you take a look at this? This seems like an actual bug.

@alalek
Copy link
Member

alalek commented Apr 21, 2017

This include statement is guarded by this condition:

#ifdef HAVE_OPENCV_XFEATURES2D
#  include "opencv2/xfeatures2d/cuda.hpp"
#endif

CMake says that xfeatures2d module is not available, so this should not be called. But it is processed...

Reviewing of xfeatures2d config shows that current disabling approach doesn't work well (module disabling is called after a commitment for the final modules list).

Current workaround is to disable xfeatured2d manually: cmake -DBUILD_opencv_xfeatures2d=OFF ...

Reproducer (all downloads are failed): http://pullrequest.opencv.org/buildbot/builders/master-contrib_valgrind-lin64-debug/builds/10013

@skvark
Copy link
Member

skvark commented Aug 9, 2017

I had the same issue but managed to solve it. As far as I can see, the real problem is caused by the failed downloads:

Download failed: 1;"unsupported protocol"

I believe that in my case this occured because my cmake version had no HTTPS support. To fix this, you have to install or build cmake with HTTPS support. In my case the easiest way was to build cmake from sources against system's own curl (which has HTTPS support):

wget --no-check-certificate https://cmake.org/files/v3.9/cmake-3.9.0.tar.gz
tar -zxvf cmake-3.9.0.tar.gz
cd cmake-3.9.0
# need to build against system curl to get https support
# -> install devel packages
yum -y install curl-devel zlib-devel
./bootstrap --system-curl
make && make install

I think that opencv-contrib's cmake should fail with a better error message if there's no HTTPS support.

@tomrunia
Copy link

Thanks a lot @skvark for your recommendation of rebuilding Cmake with HTTPS support. I was running into the same problems of xfeatures2d not building because the downloads failed.

@bikmaeff
Copy link

Another reason not to download the package could be a network connection through a proxy server.

@Eyenga
Copy link

Eyenga commented Oct 26, 2017

Hey, guys sorry to reopen this but I wasn't really sure where else to go. I am having the same problem and did what was suggested by @skvark and the following was the output when running cmake

-- Looking for ccache - not found
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found suitable version "1.2.8", minimum required is "1.2.3") 
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8") 
-- 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'
--   Found libdc1394-2, version 2.2.4
-- Looking for linux/videodev.h
-- Looking for linux/videodev.h - not found
-- Looking for linux/videodev2.h
-- Looking for linux/videodev2.h - 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 TBB: /usr/lib/x86_64-linux-gnu/libtbb.so
-- IPPICV: Download: ippicv_2017u3_lnx_intel64_general_20170822.tgz
-- found Intel IPP (ICV version): 2017.0.3 [2017.0.3]
-- at: /home/tank/Programming/opencv/build/3rdparty/ippicv/ippicv_lnx
-- found Intel IPP IW sources: 2017.0.3
-- at: /home/tank/Programming/opencv/build/3rdparty/ippicv/ippiw_lnx
-- Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off
-- Could NOT find Atlas (missing: Atlas_CLAPACK_INCLUDE_DIR) 
-- Looking for dgemm_
-- Looking for dgemm_ - found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE  
-- A library with BLAS API found.
-- Looking for cheev_
-- Looking for cheev_ - found
-- A library with LAPACK API found.
-- Found Doxygen: /usr/bin/doxygen (found version "1.8.11") found components:  doxygen missing components:  dot
-- Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH) 
-- Could NOT find Pylint (missing: PYLINT_EXECUTABLE) 
-- 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
-- Looking for dlerror in dl
-- Looking for dlerror in dl - found
-- Performing Test HAVE_C_WNO_UNDEF
-- Performing Test HAVE_C_WNO_UNDEF - Success
-- Performing Test HAVE_C_WNO_SIGN_COMPARE
-- Performing Test HAVE_C_WNO_SIGN_COMPARE - Success
-- Performing Test HAVE_CXX_WNO_MISSING_PROTOTYPES
-- Performing Test HAVE_CXX_WNO_MISSING_PROTOTYPES - Failed
-- Performing Test HAVE_CXX_WNO_UNUSED_PARAMETER
-- Performing Test HAVE_CXX_WNO_UNUSED_PARAMETER - Success
-- Performing Test HAVE_CXX_WNO_UNUSED_LOCAL_TYPEDEFS
-- Performing Test HAVE_CXX_WNO_UNUSED_LOCAL_TYPEDEFS - Success
-- Performing Test HAVE_CXX_WNO_SIGN_PROMO
-- Performing Test HAVE_CXX_WNO_SIGN_PROMO - Success
-- Performing Test HAVE_CXX_WNO_TAUTOLOGICAL_UNDEFINED_COMPARE
-- Performing Test HAVE_CXX_WNO_TAUTOLOGICAL_UNDEFINED_COMPARE - Failed
-- Performing Test HAVE_CXX_WNO_IGNORED_QUALIFIERS
-- Performing Test HAVE_CXX_WNO_IGNORED_QUALIFIERS - Success
-- Performing Test HAVE_CXX_WNO_UNUSED_FUNCTION
-- Performing Test HAVE_CXX_WNO_UNUSED_FUNCTION - Success
-- Performing Test HAVE_CXX_WNO_UNUSED_CONST_VARIABLE
-- Performing Test HAVE_CXX_WNO_UNUSED_CONST_VARIABLE - Failed
-- Performing Test HAVE_CXX_WNO_SHORTEN_64_TO_32
-- Performing Test HAVE_CXX_WNO_SHORTEN_64_TO_32 - Failed
-- Caffe:   NO
-- Protobuf:   NO
-- Glog:   NO
-- tiny-dnn: Download: v1.0.0a3.tar.gz
-- Looking for tiny_dnn.h
-- Looking for tiny_dnn.h - found
-- Found tiny-dnn in: /home/tank/Programming/opencv/build/3rdparty/tinydnn/tiny-dnn-1.0.0a3
-- Performing Test COMPILER_SUPPORTS_CXX11
-- Performing Test COMPILER_SUPPORTS_CXX11 - Success
-- The protocol buffer compiler is not found (PROTOBUF_PROTOC_EXECUTABLE='')
-- Checking for one of the modules 'freetype2'
-- Checking for one of the modules 'harfbuzz'
-- freetype2:   YES
-- harfbuzz:    YES
-- Could NOT find HDF5 (missing: HDF5_LIBRARIES HDF5_INCLUDE_DIRS) 
-- No preference for use of exported gflags CMake configuration set, and no hints for include/library directories provided. Defaulting to preferring an installed/exported gflags CMake configuration if available.
-- Failed to find installed gflags CMake configuration, searching for gflags build directories exported with CMake.
-- Failed to find gflags - Failed to find an installed/exported CMake configuration for gflags, will perform search for installed gflags components.
-- Failed to find gflags - Could not find gflags include directory, set GFLAGS_INCLUDE_DIR to directory containing gflags/gflags.h
-- Failed to find glog - Could not find glog include directory, set GLOG_INCLUDE_DIR to directory containing glog/logging.h
-- Module opencv_sfm disabled because the following dependencies are not found: Eigen Glog/Gflags
-- Excluding from source files list: /home/tank/Programming/opencv/build/modules/imgproc/accum.neon.cpp
-- Performing Test HAVE_CXX_WNO_MAYBE_UNINITIALIZED
-- Performing Test HAVE_CXX_WNO_MAYBE_UNINITIALIZED - Success
-- Performing Test HAVE_CXX_WNO_ENUM_COMPARE
-- Performing Test HAVE_CXX_WNO_ENUM_COMPARE - Success
-- 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.
-- freetype2:   YES
-- harfbuzz:    YES
-- Performing Test HAVE_CXX_WNO_OVERLOADED_VIRTUAL
-- Performing Test HAVE_CXX_WNO_OVERLOADED_VIRTUAL - Success
-- Checking for modules 'tesseract;lept'
--   No package 'tesseract' found
--   No package 'lept' found
-- Tesseract:   NO
-- xfeatures2d/boostdesc: Download: boostdesc_bgm.i
CMake Error at /home/tank/Programming/opencv/cmake/OpenCVDownload.cmake:38 (file):
  Syntax error in cmake code at

    /home/tank/Programming/opencv/cmake/OpenCVDownload.cmake:38

  when parsing string

    #   Trying 151.101.200.133...

  # Connected to raw.githubusercontent.com (151.101.200.133) port 443 (#0)

  # found 148 certificates in /etc/ssl/certs/ca-certificates.crt

  # found 604 certificates in /etc/ssl/certs

  # ALPN, offering http/1.1

  # SSL connection using TLS1.2 / ECDHE_RSA_AES_128_GCM_SHA256

  # 	 server certificate verification SKIPPED

  # 	 server certificate status verification SKIPPED

  # 	 common name: www.github.com (matched)

  # 	 server certificate expiration date OK

  # 	 server certificate activation date OK

  # 	 certificate public key: RSA

  # 	 certificate version: #3

  # 	 subject: C=US,ST=California,L=San Francisco,O=GitHub\,
  Inc.,CN=www.github.com

  # 	 start date: Thu, 23 Mar 2017 00:00:00 GMT

  # 	 expire date: Wed, 13 May 2020 12:00:00 GMT

  # 	 issuer: C=US,O=DigiCert Inc,OU=www.digicert.com,CN=DigiCert SHA2 High
  Assurance Server CA

  # 	 compression: NULL

  # ALPN, server accepted to use http/1.1

  # GET
  /opencv/opencv_3rdparty/34e4206aef44d50e6bbcd0ab06354b52e7466d26/boostdesc_bgm.i
  HTTP/1.1

  # Host: raw.githubusercontent.com

  # User-Agent: curl/7.47.0

  # Accept: */*

  # 

  # HTTP/1.1 200 OK

  # Content-Security-Policy: default-src 'none'; style-src 'unsafe-inline';
  sandbox

  # Strict-Transport-Security: max-age=31536000

  # X-Content-Type-Options: nosniff

  # X-Frame-Options: deny

  # X-XSS-Protection: 1; mode=block

  # ETag: "5b58aaf64a7aad1d79de3b7a5bdad3a4312b84ea"

  # Content-Type: text/plain; charset=utf-8

  # Cache-Control: max-age=300

  # X-Geo-Block-List:

  # X-GitHub-Request-Id: 481E:3C7C:3DB2C66:41E2FF0:59F19C1D

  # Content-Length: 14852

  # Accept-Ranges: bytes

  # Date: Thu, 26 Oct 2017 08:26:08 GMT

  # Via: 1.1 varnish

  # Connection: keep-alive

  # X-Served-By: cache-dca17726-DCA

  # X-Cache: MISS

  # X-Cache-Hits: 0

  # X-Timer: S1509006368.282754,VS0,VE26

  # Vary: Authorization,Accept-Encoding

  # Access-Control-Allow-Origin: *

  # X-Fastly-Request-ID: 83038d1a8f9d6bd14ac7c45db496c8384bff1467

  # Expires: Thu, 26 Oct 2017 08:31:08 GMT

  # Source-Age: 0

  # 

  # [1916 bytes data]

  # [2759 bytes data]

  # [2759 bytes data]

  # [2759 bytes data]

  # [2759 bytes data]

  # [1900 bytes data]

  # Connection #0 to host raw.githubusercontent.com left intact

  #

  \n

  Invalid escape sequence \,
Call Stack (most recent call first):
  /home/tank/Programming/opencv/cmake/OpenCVDownload.cmake:162 (ocv_download_log)
  /home/tank/Programming/opencv_contrib/modules/xfeatures2d/cmake/download_boostdesc.cmake:22 (ocv_download)
  /home/tank/Programming/opencv_contrib/modules/xfeatures2d/CMakeLists.txt:8 (download_boost_descriptors)


-- Configuring incomplete, errors occurred!
See also "/home/tank/Programming/opencv/build/CMakeFiles/CMakeOutput.log".
See also "/home/tank/Programming/opencv/build/CMakeFiles/CMakeError.log".

I think the problem is with the following:

# subject: C=US,ST=California,L=San Francisco,O=GitHub\, Inc.,CN=www.github.com

I don't think that " \, " is supposed to be there after "O=GItHub" but I'm not sure how to fix it.

Any help would be appreciated

@alalek
Copy link
Member

alalek commented Oct 26, 2017

@Eyenga In your case just comment/delete mentioned line (file(APPEND ...)).

@Eyenga
Copy link

Eyenga commented Oct 27, 2017

@alalek Okay, that worked. Thank you my nigga!

@ElegantLin
Copy link

Hi, everyone, I tried @skvark 's methods. However, I met something wrong in my process.
When I input
sudo yum -y install curl-devel zlib-devel

The output is

There are no enabled repos.
 Run "yum repolist all" to see the repos you have.
 You can enable repos with yum-config-manager --enable <repo>

The system is Ubuntu 16.04 and I didn't install cuda.

PS: I am not sure whether xfeature2 has the dependency to Cuda and I don't think whether there is a relationship between them.

Could you please help me and give me the answer?

THX a lot :-)

@skvark
Copy link
Member

skvark commented Nov 7, 2017

Ubuntu uses apt-get, not yum. You'll have to modify the commands, my instructions were for Cent OS 5.

@ElegantLin
Copy link

Yep. Thanks for your answer. And do you know the instructions for Ubuntu 16.04. My instructions are

sudo apt-get install curl-devel
sudo apt-get install zlib-devel

The output is

Unable to locate package curl-devel
Unable to locate package zlib-devel

I Google these 2 packages and I got little info about them.

Do you think whether I can complete the following step without these 2 packages?

THX a lot.

@Eyenga
Copy link

Eyenga commented Nov 8, 2017

@ElegantLin you need to install the Ubuntu equivalent packages:

sudo apt-get install libcurl4-gnutls-dev
sudo apt-get install zlib1g-dev

@jchazalon
Copy link

jchazalon commented Mar 7, 2018

This may not be the best place to post it, but as I came to this thread when fighting to build OpenCV 3.4.1 + contrib I think it may be useful to others. Please point me to any better place to share this.

First I performed the build under Ubuntu 14.04, but this should be replicable with other Linux versions, and the problems I found affect all distributions.

There are two problems I found and corrected. I'm unsure about the inclusion problem with CUDA headers pointed by @StevenPuttemans , this may be another issue but I enabled CUDA support and had appropriate headers on my test server, so I did not encountered this one.

Here is the command I used to prepare the build:

cmake \
  -D CMAKE_BUILD_TYPE=RELEASE     \
  -D CMAKE_INSTALL_PREFIX=/modules/opencv/3.4.1     \
  -D WITH_TBB=ON     \
  -D WITH_V4L=ON     \
  -D WITH_OPENGL=ON     \
  -D BUILD_NEW_PYTHON_SUPPORT=ON     \
  -D BUILD_TIFF=ON     \
  -D OPENCV_EXTRA_MODULES_PATH=/home/jchazalo/tmp/ocv/opencv_contrib-3.4.1/modules \
  ..

First problem: cmake-related: lack of SSL support of the integrated libcurl version included in cmake

By default, cmake ships its own libraries and the libcurl one is built without ssl support
OpenCV built scripts rely on this feature to automatically download models and others from GitHub (which is quite annoying by the way). Note that proxy support is not an issue if you have HTTP_PROXY and HTTPS_PROXY env vars properly defined.
So you need to obtain a version of CMake which has ssl support.

Here are the steps I followed:

# Install cpp headers for libcurl
sudo apt-get install libcurl4-gnutls-dev

# Download and build a cmake version with SSL support
# We use the system's libcurl to avoid later problems
mdkir -p ~/tmp/cmake
cd !$
wget https://cmake.org/files/v3.10/cmake-3.10.2.tar.gz
tar -xzf cmake-3.10.2.tar.gz
cd cmake-3.10.2/
./bootstrap --parallel=$(nproc) --system-curl
make -j $(nproc)

# Uninstall cmake
sudo apt remove cmake

# Install new version from sources
# (we should build a package instead)
sudo make install

Many thanks to @Eyenga for the reference to the right development headers for libcurl.

More references:

Second problem: OpenCV-related: Lack of support for escape characters during log output

The error is visible when calling cmake:

[... edited: curl output ... ]
  Invalid escape sequence \,
Call Stack (most recent call first):
  cmake/OpenCVDownload.cmake:163 (ocv_download_log)
  3rdparty/ippicv/ippicv.cmake:42 (ocv_download)
  cmake/OpenCVFindIPP.cmake:243 (download_ippicv)
  cmake/OpenCVFindLibsPerf.cmake:12 (include)
  CMakeLists.txt:637 (include)
[... edited ...]

There is a problem in opencv-3.4.1/cmake/OpenCVDownload.cmake in a logging function which crashes everything. Because curl output can return arbitrary characters, they must not be interpreted.
(In our case, information about the SSL certificate for GitHub contains a \, as pointed out by @Eyenga , once again many thanks).

The solution is to rewrite the log code to something suitable. I did not want to follow @alalek 's advice because it suppresses the output. A better way is to avoid interpreting string literals by changing the macro to a function.

I changed the file opencv-3.4.1/cmake/OpenCVDownload.cmake, lines 37-39:

  macro(ocv_download_log)
    file(APPEND "${OPENCV_DOWNLOAD_LOG}" "${ARGN}\n")
  endmacro()

to

  function(ocv_download_log)
    file(APPEND "${OPENCV_DOWNLOAD_LOG}" "${ARGN}\n")
  endfunction()

More references:

Hoping this may help someone.

jchazalon added a commit to jchazalon/opencv that referenced this issue Mar 7, 2018
This suppresses the interpretation of string literals by switching the ocv_download_log from a macro to a function.
This avoid crashes when the string to log contains escape characters.

More details about the problem this PR fixes are available at: opencv/opencv_contrib#1131
@21Ansh
Copy link

21Ansh commented Jul 23, 2018

Turn off xfeatures2d flag from CMakeLists.txt. It worked for me

@frankgould
Copy link

frankgould commented Sep 26, 2018

Is it possible to get an absolute answer to this cuda.hpp: No such file or directory? I see all kinds of possible solutions that might take hours to try after I've spent hours with other proxy problems where files are not downloaded and have to be manually. Now it appears either the xfeatures2d flag in CMakeList.txt needs to be turned off but I could not find xfeatures2d in that file. The other solution is to cmake -D BUILD_opencv_xfeatures2d=OFF but that means deleting my build directory and starting everything from scratch. Any suggestions will be greatly appreciated. I am installing OpenCV on Raspbian.

I downloaded the cuba.hpp file but do not know where opencv2/xfeatures2d/ folder is located to put the file.

@Aashima-Gupta
Copy link

Hi, i am getting this error while building the project in android studio.

#include <opencv2/contrib/detection_based_tracker.hpp> file not found
fatal error: 'opencv2/contrib/contrib.hpp' file not found
#include "opencv2/contrib/contrib.hpp" file not found
There are other .hpp files that already exist in the opencv folder, however these 2 files are missing.

Please help asap.

@alalek
Copy link
Member

alalek commented Sep 28, 2018

@Aashima-Gupta
Build and usage questions should go to Users OpenCV Q/A forum: http://answers.opencv.org
This tracker is for issues and bugs that needs fix in OpenCV.

P.S. Off-topic messages will be deleted.

@frankgould
Copy link

@alalek
I did post on the Q/A forum, link below, but have not received any responses. Any suggestions?

http://answers.opencv.org/question/200186/cudahdd-not-found-with-raspbian/

@anujonthemove
Copy link

I just got 'Download failed: 1;"Unsupported protocol"' error while building opencv in a docker. I am building a docker such that I make a user, then make that user a sudoer so that when my docker starts, I get a user on terminal and not root (which is what you get when you use an ubuntu docker). In this case of a user, we need to run every command with sudo, hence adding that removed the mentioned error.

Gist: just try using 'sudo' before CMAKE!

@negarmg
Copy link

negarmg commented Jun 30, 2021

hi ,
i am using
Qt5.12.11 ,
opencv-4.5.2-vc14_vc15
windows10
I want to write a program to display an image or video from a webcam using Qt and Open CV.
But I was not able to add Open CV to QT. When I used the following link, I encountered these errors in CMake.
/................................................................................................
https://wiki.qt.io/How_to_setup_Qt_and_openCV_on_Windows
//...............................................................................................
In cmake, I selected the source and destination, but after clicking the configure button, I encountered these errors:
//...........................................................................................
{
Performing Test HAVE_CXX_WNO_ENUM_COMPARE_SWITCH - Failed
Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH)
VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file
ADE: Download: v0.1.1f.zip
Try 1 failed
CMake Warning at cmake/OpenCVDownload.cmake:202 (message):
ADE: Download failed: 35;"SSL connect error"

For details please refer to the download log file:

C:/Qt/opencv_cv2/opencv/Release/CMakeDownloadLog.txt

Call Stack (most recent call first):
modules/gapi/cmake/DownloadADE.cmake:5 (ocv_download)
modules/gapi/cmake/init.cmake:19 (include)
cmake/OpenCVModule.cmake:298 (include)
cmake/OpenCVModule.cmake:361 (_add_modules_1)
modules/CMakeLists.txt:7 (ocv_glob_modules)

OpenCV Python: during development append to PYTHONPATH: C:/Qt/opencv_cv2/opencv/Release/python_loader
Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
FFMPEG: Download: opencv_videoio_ffmpeg.dll
Try 1 failed
CMake Warning at cmake/OpenCVDownload.cmake:202 (message):
FFMPEG: Download failed: 35;"SSL connect error"

For details please refer to the download log file:

C:/Qt/opencv_cv2/opencv/Release/CMakeDownloadLog.txt

Call Stack (most recent call first):
3rdparty/ffmpeg/ffmpeg.cmake:20 (ocv_download)
modules/videoio/cmake/detect_ffmpeg.cmake:14 (download_win_ffmpeg)
modules/videoio/cmake/init.cmake:7 (include)
modules/videoio/cmake/init.cmake:18 (add_backend)
cmake/OpenCVModule.cmake:298 (include)
cmake/OpenCVModule.cmake:361 (_add_modules_1)
modules/CMakeLists.txt:7 (ocv_glob_modules)

FFMPEG: Download: opencv_videoio_ffmpeg_64.dll
Try 1 failed
CMake Warning at cmake/OpenCVDownload.cmake:202 (message):
FFMPEG: Download failed: 35;"SSL connect error"

For details please refer to the download log file:

C:/Qt/opencv_cv2/opencv/Release/CMakeDownloadLog.txt

Call Stack (most recent call first):
3rdparty/ffmpeg/ffmpeg.cmake:20 (ocv_download)
modules/videoio/cmake/detect_ffmpeg.cmake:14 (download_win_ffmpeg)
modules/videoio/cmake/init.cmake:7 (include)
modules/videoio/cmake/init.cmake:18 (add_backend)
cmake/OpenCVModule.cmake:298 (include)
cmake/OpenCVModule.cmake:361 (_add_modules_1)
modules/CMakeLists.txt:7 (ocv_glob_modules)

FFMPEG: Download: ffmpeg_version.cmake
Try 1 failed
CMake Warning at cmake/OpenCVDownload.cmake:202 (message):
FFMPEG: Download failed: 35;"SSL connect error"

For details please refer to the download log file:

C:/Qt/opencv_cv2/opencv/Release/CMakeDownloadLog.txt

Call Stack (most recent call first):
3rdparty/ffmpeg/ffmpeg.cmake:20 (ocv_download)
modules/videoio/cmake/detect_ffmpeg.cmake:14 (download_win_ffmpeg)
modules/videoio/cmake/init.cmake:7 (include)
modules/videoio/cmake/init.cmake:18 (add_backend)
cmake/OpenCVModule.cmake:298 (include)
cmake/OpenCVModule.cmake:361 (_add_modules_1)
modules/CMakeLists.txt:7 (ocv_glob_modules)

}
please help me to solve these errors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests