<h5 dir="auto">System information (version)</h5>

<ul dir="auto">
<li>OpenCV =&gt; 3.4.1:</li>
<li>Operating System / Platform =&gt; Ubuntu 16.04:</li>
<li>Compiler =&gt; :cmake/gcc:</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">Tried to compile opencv_contrib3.4.1 with opencv repository .But got following error:</p>
<p dir="auto">opencv/modules/core/include/opencv2/core/ptr.inl.hpp:301:26: error: invalid new-expression of abstract class type ‘cv::linemod::Modality’<br>
return Ptr(new T());</p>
<h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV =&gt; 3.4</li>
<li>Operating System / Platform =&gt; Ubuntu 16.04 Desktop 64 Bit</li>
<li>Compiler =&gt; cmake / gcc</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">I try to compile current version from git with opencv_contrib enabled, but get an compile error associated with python linemod module bindings. I´m used to fix compile issues, but I have no idea how handle this one. Can´t find anything related on goolge...<br>
Here is the output from make</p>
<h4 dir="auto">Steps to reproduce</h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="cmake ..

-- Looking for ccache - not found
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found suitable version &quot;1.2.8&quot;, minimum required is &quot;1.2.3&quot;) 
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version &quot;1.2.8&quot;) 
-- Found OpenEXR: /usr/lib/x86_64-linux-gnu/libIlmImf.so
-- Checking for module 'gtk+-3.0'
--   No package 'gtk+-3.0' 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 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: /home/dan/tools/opencv/build/3rdparty/ippicv/ippicv_lnx
-- found Intel IPP IW sources: 2017.0.3
-- at: /home/dan/tools/opencv/build/3rdparty/ippicv/ippiw_lnx
-- CUDA detected: 9.1
-- CUDA NVCC target flags: -gencode;arch=compute_52,code=sm_52;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_61,code=sm_61;-gencode;arch=compute_70,code=sm_70;-D_FORCE_INLINES
-- Found OpenBLAS libraries: /usr/lib/libopenblas.so
-- Found OpenBLAS include: /usr/include
-- LAPACK(OpenBLAS): LAPACK_LIBRARIES: /usr/lib/libopenblas.so
CMake Warning at cmake/OpenCVFindLAPACK.cmake:29 (message):
  LAPACK(OpenBLAS): CBLAS/LAPACK headers are not found in '/usr/include'
Call Stack (most recent call first):
  cmake/OpenCVFindLAPACK.cmake:97 (ocv_lapack_check)
  CMakeLists.txt:631 (include)


-- Could NOT find Atlas (missing:  Atlas_CLAPACK_INCLUDE_DIR) 
-- A library with BLAS API found.
-- A library with LAPACK API found.
-- 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:   YES
-- Protobuf:   NO
-- Glog:   YES
-- Module opencv_ovis disabled because OGRE3D was not found
-- Looking for tiny_dnn.h
-- Looking for tiny_dnn.h - found
-- Found tiny-dnn in: /home/dan/tools/opencv/build/3rdparty/tinydnn/tiny-dnn-1.0.0a3
-- The protocol buffer compiler is not found (PROTOBUF_PROTOC_EXECUTABLE='')
-- freetype2:   YES
-- harfbuzz:    YES
-- 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.
-- Checking SFM deps... TRUE
-- CERES support is disabled. Ceres Solver for reconstruction API is required.
-- Excluding from source files list: /home/dan/tools/opencv/build/modules/imgproc/accum.neon.cpp
-- freetype2:   YES
-- harfbuzz:    YES
-- Checking for modules 'tesseract;lept'
--   Package 'lept', required by 'tesseract', not found
--   No package 'lept' found
-- Tesseract:   NO
-- 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.
-- Checking SFM deps... TRUE
-- CERES support is disabled. Ceres Solver for reconstruction API is required.
-- 
-- General configuration for OpenCV 3.4.0-dev =====================================
--   Version control:               3.4.0-337-gd56b2b5
-- 
--   Extra modules:
--     Location (extra):            /home/dan/tools/opencv/opencv_contrib/modules
--     Version control (extra):     3.4.0-49-g4cb11f2
-- 
--   Platform:
--     Timestamp:                   2018-02-10T19:28:32Z
--     Host:                        Linux 4.13.0-32-generic x86_64
--     CMake:                       3.5.1
--     CMake generator:             Unix Makefiles
--     CMake build tool:            /usr/bin/make
--     Configuration:               Release
-- 
--   CPU/HW features:
--     Baseline:                    SSE SSE2 SSE3
--       requested:                 SSE3
--     Dispatched code generation:  SSE4_1 SSE4_2 FP16 AVX AVX2 AVX512_SKX
--       requested:                 SSE4_1 SSE4_2 AVX FP16 AVX2 AVX512_SKX
--       SSE4_1 (3 files):          + SSSE3 SSE4_1
--       SSE4_2 (1 files):          + SSSE3 SSE4_1 POPCNT SSE4_2
--       FP16 (1 files):            + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX
--       AVX (5 files):             + SSSE3 SSE4_1 POPCNT SSE4_2 AVX
--       AVX2 (9 files):            + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2
--       AVX512_SKX (1 files):      + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2 AVX_512F AVX512_SKX
-- 
--   C/C++:
--     Built as dynamic libs?:      YES
--     C++ Compiler:                /usr/bin/c++  (ver 5.4.0)
--     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 -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -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 -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-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 -fdata-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 -fdata-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 cudart nppc nppial nppicc nppicom nppidei nppif nppig nppim nppist nppisu nppitc npps cublas cufft -L/usr/local/cuda/lib64
--     3rdparty dependencies:
-- 
--   OpenCV modules:
--     To be built:                 aruco bgsegm bioinspired calib3d ccalib core cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev datasets dnn dnn_objdetect dpm face features2d flann freetype fuzzy hdf hfs highgui img_hash imgcodecs imgproc java_bindings_generator line_descriptor ml objdetect optflow phase_unwrapping photo plot python2 python3 python_bindings_generator reg rgbd saliency sfm shape stereo stitching structured_light superres surface_matching text tracking ts video videoio videostab xfeatures2d ximgproc xobjdetect xphoto
--     Disabled:                    cnn_3dobj js world
--     Disabled by dependency:      -
--     Unavailable:                 cvv dnn_modern java matlab ovis viz
--     Applications:                perf_tests apps
--     Documentation:               NO
--     Non-free algorithms:         YES
-- 
--   GUI: 
--     GTK+:                        YES (ver 2.24.30)
--       GThread :                  YES (ver 2.48.2)
--       GtkGlExt:                  NO
--     VTK support:                 NO
-- 
--   Media I/O: 
--     ZLib:                        /usr/lib/x86_64-linux-gnu/libz.so (ver 1.2.8)
--     JPEG:                        /usr/lib/x86_64-linux-gnu/libjpeg.so (ver )
--     WEBP:                        /usr/lib/x86_64-linux-gnu/libwebp.so (ver encoder: 0x0202)
--     PNG:                         /usr/lib/x86_64-linux-gnu/libpng.so (ver 1.2.54)
--     TIFF:                        /usr/lib/x86_64-linux-gnu/libtiff.so (ver 42 / 4.0.6)
--     JPEG 2000:                   /usr/lib/x86_64-linux-gnu/libjasper.so (ver 1.900.1)
--     OpenEXR:                     /usr/lib/x86_64-linux-gnu/libImath.so /usr/lib/x86_64-linux-gnu/libIlmImf.so /usr/lib/x86_64-linux-gnu/libIex.so /usr/lib/x86_64-linux-gnu/libHalf.so /usr/lib/x86_64-linux-gnu/libIlmThread.so (ver 2.2.0)
-- 
--   Video I/O:
--     DC1394:                      YES (ver 2.2.4)
--     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:                   
--       base:                      YES (ver 1.13.0.1)
--       video:                     YES (ver 1.13.0.1)
--       app:                       YES (ver 1.13.0.1)
--       riff:                      YES (ver 1.13.0.1)
--       pbutils:                   YES (ver 1.13.0.1)
--     OpenNI2:                     YES (ver 2.2.0, build 33)
--     libv4l/libv4l2:              NO
--     v4l/v4l2:                    linux/videodev2.h
--     gPhoto2:                     NO
-- 
--   Parallel framework:            pthreads
-- 
--   Trace:                         YES (with Intel ITT)
-- 
--   Other third-party libraries:
--     Intel IPP:                   2017.0.3 [2017.0.3]
--            at:                   /home/dan/tools/opencv/build/3rdparty/ippicv/ippicv_lnx
--     Intel IPP IW:                sources (2017.0.3)
--               at:                /home/dan/tools/opencv/build/3rdparty/ippicv/ippiw_lnx
--     Lapack:                      NO
--     Eigen:                       YES (ver 3.2.92)
--     Custom HAL:                  NO
--     Protobuf:                    build (3.5.1)
-- 
--   NVIDIA CUDA:                   YES (ver 9.1, CUFFT CUBLAS NVCUVID FAST_MATH)
--     NVIDIA GPU arch:             52 60 61 70
--     NVIDIA PTX archs:
-- 
--   OpenCL:                        YES (no extra features)
--     Include path:                /home/dan/tools/opencv/3rdparty/include/opencl/1.2
--     Link libraries:              Dynamic load
-- 
--   Python 2:
--     Interpreter:                 /usr/bin/python2.7 (ver 2.7.12)
--     Libraries:                   /usr/lib/x86_64-linux-gnu/libpython2.7.so (ver 2.7.12)
--     numpy:                       /usr/local/lib/python2.7/dist-packages/numpy/core/include (ver 1.14.0)
--     packages path:               lib/python2.7/dist-packages
-- 
--   Python 3:
--     Interpreter:                 /usr/bin/python3 (ver 3.5.2)
--     Libraries:                   /usr/lib/x86_64-linux-gnu/libpython3.5m.so (ver 3.5.2)
--     numpy:                       /usr/local/lib/python3.5/dist-packages/numpy/core/include (ver 1.14.0)
--     packages path:               lib/python3.5/dist-packages
-- 
--   Python (for build):            /usr/bin/python2.7
-- 
--   Java:                          
--     ant:                         NO
--     JNI:                         NO
--     Java wrappers:               NO
--     Java tests:                  NO
-- 
--   Matlab:                        NO
-- 
--   Install to:                    /usr/local
-- -----------------------------------------------------------------
-- 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/dan/tools/opencv/build"><pre class="notranslate"><code class="notranslate">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") 
-- Found OpenEXR: /usr/lib/x86_64-linux-gnu/libIlmImf.so
-- Checking for module 'gtk+-3.0'
--   No package 'gtk+-3.0' 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 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: /home/dan/tools/opencv/build/3rdparty/ippicv/ippicv_lnx
-- found Intel IPP IW sources: 2017.0.3
-- at: /home/dan/tools/opencv/build/3rdparty/ippicv/ippiw_lnx
-- CUDA detected: 9.1
-- CUDA NVCC target flags: -gencode;arch=compute_52,code=sm_52;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_61,code=sm_61;-gencode;arch=compute_70,code=sm_70;-D_FORCE_INLINES
-- Found OpenBLAS libraries: /usr/lib/libopenblas.so
-- Found OpenBLAS include: /usr/include
-- LAPACK(OpenBLAS): LAPACK_LIBRARIES: /usr/lib/libopenblas.so
CMake Warning at cmake/OpenCVFindLAPACK.cmake:29 (message):
  LAPACK(OpenBLAS): CBLAS/LAPACK headers are not found in '/usr/include'
Call Stack (most recent call first):
  cmake/OpenCVFindLAPACK.cmake:97 (ocv_lapack_check)
  CMakeLists.txt:631 (include)


-- Could NOT find Atlas (missing:  Atlas_CLAPACK_INCLUDE_DIR) 
-- A library with BLAS API found.
-- A library with LAPACK API found.
-- 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:   YES
-- Protobuf:   NO
-- Glog:   YES
-- Module opencv_ovis disabled because OGRE3D was not found
-- Looking for tiny_dnn.h
-- Looking for tiny_dnn.h - found
-- Found tiny-dnn in: /home/dan/tools/opencv/build/3rdparty/tinydnn/tiny-dnn-1.0.0a3
-- The protocol buffer compiler is not found (PROTOBUF_PROTOC_EXECUTABLE='')
-- freetype2:   YES
-- harfbuzz:    YES
-- 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.
-- Checking SFM deps... TRUE
-- CERES support is disabled. Ceres Solver for reconstruction API is required.
-- Excluding from source files list: /home/dan/tools/opencv/build/modules/imgproc/accum.neon.cpp
-- freetype2:   YES
-- harfbuzz:    YES
-- Checking for modules 'tesseract;lept'
--   Package 'lept', required by 'tesseract', not found
--   No package 'lept' found
-- Tesseract:   NO
-- 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.
-- Checking SFM deps... TRUE
-- CERES support is disabled. Ceres Solver for reconstruction API is required.
-- 
-- General configuration for OpenCV 3.4.0-dev =====================================
--   Version control:               3.4.0-337-gd56b2b5
-- 
--   Extra modules:
--     Location (extra):            /home/dan/tools/opencv/opencv_contrib/modules
--     Version control (extra):     3.4.0-49-g4cb11f2
-- 
--   Platform:
--     Timestamp:                   2018-02-10T19:28:32Z
--     Host:                        Linux 4.13.0-32-generic x86_64
--     CMake:                       3.5.1
--     CMake generator:             Unix Makefiles
--     CMake build tool:            /usr/bin/make
--     Configuration:               Release
-- 
--   CPU/HW features:
--     Baseline:                    SSE SSE2 SSE3
--       requested:                 SSE3
--     Dispatched code generation:  SSE4_1 SSE4_2 FP16 AVX AVX2 AVX512_SKX
--       requested:                 SSE4_1 SSE4_2 AVX FP16 AVX2 AVX512_SKX
--       SSE4_1 (3 files):          + SSSE3 SSE4_1
--       SSE4_2 (1 files):          + SSSE3 SSE4_1 POPCNT SSE4_2
--       FP16 (1 files):            + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX
--       AVX (5 files):             + SSSE3 SSE4_1 POPCNT SSE4_2 AVX
--       AVX2 (9 files):            + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2
--       AVX512_SKX (1 files):      + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2 AVX_512F AVX512_SKX
-- 
--   C/C++:
--     Built as dynamic libs?:      YES
--     C++ Compiler:                /usr/bin/c++  (ver 5.4.0)
--     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 -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -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 -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-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 -fdata-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 -fdata-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 cudart nppc nppial nppicc nppicom nppidei nppif nppig nppim nppist nppisu nppitc npps cublas cufft -L/usr/local/cuda/lib64
--     3rdparty dependencies:
-- 
--   OpenCV modules:
--     To be built:                 aruco bgsegm bioinspired calib3d ccalib core cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev datasets dnn dnn_objdetect dpm face features2d flann freetype fuzzy hdf hfs highgui img_hash imgcodecs imgproc java_bindings_generator line_descriptor ml objdetect optflow phase_unwrapping photo plot python2 python3 python_bindings_generator reg rgbd saliency sfm shape stereo stitching structured_light superres surface_matching text tracking ts video videoio videostab xfeatures2d ximgproc xobjdetect xphoto
--     Disabled:                    cnn_3dobj js world
--     Disabled by dependency:      -
--     Unavailable:                 cvv dnn_modern java matlab ovis viz
--     Applications:                perf_tests apps
--     Documentation:               NO
--     Non-free algorithms:         YES
-- 
--   GUI: 
--     GTK+:                        YES (ver 2.24.30)
--       GThread :                  YES (ver 2.48.2)
--       GtkGlExt:                  NO
--     VTK support:                 NO
-- 
--   Media I/O: 
--     ZLib:                        /usr/lib/x86_64-linux-gnu/libz.so (ver 1.2.8)
--     JPEG:                        /usr/lib/x86_64-linux-gnu/libjpeg.so (ver )
--     WEBP:                        /usr/lib/x86_64-linux-gnu/libwebp.so (ver encoder: 0x0202)
--     PNG:                         /usr/lib/x86_64-linux-gnu/libpng.so (ver 1.2.54)
--     TIFF:                        /usr/lib/x86_64-linux-gnu/libtiff.so (ver 42 / 4.0.6)
--     JPEG 2000:                   /usr/lib/x86_64-linux-gnu/libjasper.so (ver 1.900.1)
--     OpenEXR:                     /usr/lib/x86_64-linux-gnu/libImath.so /usr/lib/x86_64-linux-gnu/libIlmImf.so /usr/lib/x86_64-linux-gnu/libIex.so /usr/lib/x86_64-linux-gnu/libHalf.so /usr/lib/x86_64-linux-gnu/libIlmThread.so (ver 2.2.0)
-- 
--   Video I/O:
--     DC1394:                      YES (ver 2.2.4)
--     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:                   
--       base:                      YES (ver 1.13.0.1)
--       video:                     YES (ver 1.13.0.1)
--       app:                       YES (ver 1.13.0.1)
--       riff:                      YES (ver 1.13.0.1)
--       pbutils:                   YES (ver 1.13.0.1)
--     OpenNI2:                     YES (ver 2.2.0, build 33)
--     libv4l/libv4l2:              NO
--     v4l/v4l2:                    linux/videodev2.h
--     gPhoto2:                     NO
-- 
--   Parallel framework:            pthreads
-- 
--   Trace:                         YES (with Intel ITT)
-- 
--   Other third-party libraries:
--     Intel IPP:                   2017.0.3 [2017.0.3]
--            at:                   /home/dan/tools/opencv/build/3rdparty/ippicv/ippicv_lnx
--     Intel IPP IW:                sources (2017.0.3)
--               at:                /home/dan/tools/opencv/build/3rdparty/ippicv/ippiw_lnx
--     Lapack:                      NO
--     Eigen:                       YES (ver 3.2.92)
--     Custom HAL:                  NO
--     Protobuf:                    build (3.5.1)
-- 
--   NVIDIA CUDA:                   YES (ver 9.1, CUFFT CUBLAS NVCUVID FAST_MATH)
--     NVIDIA GPU arch:             52 60 61 70
--     NVIDIA PTX archs:
-- 
--   OpenCL:                        YES (no extra features)
--     Include path:                /home/dan/tools/opencv/3rdparty/include/opencl/1.2
--     Link libraries:              Dynamic load
-- 
--   Python 2:
--     Interpreter:                 /usr/bin/python2.7 (ver 2.7.12)
--     Libraries:                   /usr/lib/x86_64-linux-gnu/libpython2.7.so (ver 2.7.12)
--     numpy:                       /usr/local/lib/python2.7/dist-packages/numpy/core/include (ver 1.14.0)
--     packages path:               lib/python2.7/dist-packages
-- 
--   Python 3:
--     Interpreter:                 /usr/bin/python3 (ver 3.5.2)
--     Libraries:                   /usr/lib/x86_64-linux-gnu/libpython3.5m.so (ver 3.5.2)
--     numpy:                       /usr/local/lib/python3.5/dist-packages/numpy/core/include (ver 1.14.0)
--     packages path:               lib/python3.5/dist-packages
-- 
--   Python (for build):            /usr/bin/python2.7
-- 
--   Java:                          
--     ant:                         NO
--     JNI:                         NO
--     Java wrappers:               NO
--     Java tests:                  NO
-- 
--   Matlab:                        NO
-- 
--   Install to:                    /usr/local
-- -----------------------------------------------------------------
-- 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/dan/tools/opencv/build
</code></pre></div>
<p dir="auto">make</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[  0%] Built target gen-pkgconfig
[  2%] Built target ippiw
[  6%] Built target libprotobuf
[  6%] Built target ittnotify
[  6%] Built target opencv_cudev
[  6%] Built target opencv_ts_pch_dephelp
[  6%] Built target pch_Generate_opencv_ts
[  6%] Built target opencv_core_pch_dephelp
[  6%] Built target pch_Generate_opencv_core
[ 10%] Built target opencv_core
[ 10%] Built target opencv_imgproc_pch_dephelp
[ 10%] Built target pch_Generate_opencv_imgproc
[ 14%] Built target opencv_imgproc
[ 14%] Built target opencv_imgcodecs_pch_dephelp
[ 14%] Built target pch_Generate_opencv_imgcodecs
[ 15%] Built target opencv_imgcodecs
[ 15%] Built target opencv_videoio_pch_dephelp
[ 15%] Built target pch_Generate_opencv_videoio
[ 16%] Built target opencv_videoio
[ 16%] Built target opencv_highgui_pch_dephelp
[ 16%] Built target pch_Generate_opencv_highgui
[ 16%] Built target opencv_highgui
[ 17%] Built target opencv_ts
[ 17%] Built target opencv_perf_core_pch_dephelp
[ 17%] Built target pch_Generate_opencv_perf_core
[ 19%] Built target opencv_perf_core
[ 19%] Built target opencv_cudaarithm_pch_dephelp
[ 20%] Built target pch_Generate_opencv_cudaarithm
[ 22%] Built target opencv_cudaarithm
[ 22%] Built target opencv_perf_cudaarithm_pch_dephelp
[ 22%] Built target pch_Generate_opencv_perf_cudaarithm
[ 22%] Built target opencv_perf_cudaarithm
[ 22%] Built target opencv_flann_pch_dephelp
[ 23%] Built target pch_Generate_opencv_flann
[ 23%] Built target opencv_flann
[ 23%] Built target opencv_hdf_pch_dephelp
[ 23%] Built target pch_Generate_opencv_hdf
[ 23%] Built target opencv_hdf
[ 23%] Built target opencv_perf_imgproc_pch_dephelp
[ 23%] Built target pch_Generate_opencv_perf_imgproc
[ 25%] Built target opencv_perf_imgproc
[ 25%] Built target opencv_ml_pch_dephelp
[ 25%] Built target pch_Generate_opencv_ml
[ 26%] Built target opencv_ml
[ 26%] Built target opencv_perf_objdetect_pch_dephelp
[ 26%] Built target pch_Generate_opencv_perf_objdetect
[ 26%] Built target opencv_objdetect_pch_dephelp
[ 26%] Built target pch_Generate_opencv_objdetect
[ 27%] Built target opencv_objdetect
[ 27%] Built target opencv_perf_objdetect
[ 27%] Built target opencv_phase_unwrapping_pch_dephelp
[ 27%] Built target pch_Generate_opencv_phase_unwrapping
[ 27%] Built target opencv_phase_unwrapping
[ 27%] Built target opencv_plot_pch_dephelp
[ 27%] Built target pch_Generate_opencv_plot
[ 27%] Built target opencv_plot
[ 27%] Built target opencv_reg_pch_dephelp
[ 27%] Built target pch_Generate_opencv_reg
[ 28%] Built target opencv_reg
[ 28%] Built target opencv_perf_reg_pch_dephelp
[ 28%] Built target pch_Generate_opencv_perf_reg
[ 28%] Built target opencv_perf_reg
[ 28%] Built target opencv_surface_matching_pch_dephelp
[ 28%] Built target pch_Generate_opencv_surface_matching
[ 29%] Built target opencv_surface_matching
[ 29%] Built target opencv_video_pch_dephelp
[ 29%] Built target pch_Generate_opencv_video
[ 30%] Built target opencv_video
[ 30%] Built target opencv_perf_video_pch_dephelp
[ 30%] Built target pch_Generate_opencv_perf_video
[ 31%] Built target opencv_perf_video
[ 31%] Built target opencv_perf_xphoto_pch_dephelp
[ 31%] Built target pch_Generate_opencv_perf_xphoto
[ 32%] Built target opencv_xphoto
[ 32%] Built target opencv_perf_xphoto
[ 32%] Built target opencv_cudabgsegm_pch_dephelp
[ 32%] Built target pch_Generate_opencv_cudabgsegm
[ 32%] Built target opencv_cudabgsegm
[ 32%] Built target opencv_perf_cudabgsegm_pch_dephelp
[ 33%] Built target pch_Generate_opencv_perf_cudabgsegm
[ 33%] Built target opencv_perf_cudabgsegm
[ 33%] Built target opencv_perf_cudafilters_pch_dephelp
[ 33%] Built target pch_Generate_opencv_perf_cudafilters
[ 33%] Built target opencv_cudafilters_pch_dephelp
[ 33%] Built target pch_Generate_opencv_cudafilters
[ 35%] Built target opencv_cudafilters
[ 35%] Built target opencv_perf_cudafilters
[ 35%] Built target opencv_cudaimgproc_pch_dephelp
[ 35%] Built target pch_Generate_opencv_cudaimgproc
[ 37%] Built target opencv_cudaimgproc
[ 37%] Built target opencv_perf_cudaimgproc_pch_dephelp
[ 37%] Built target pch_Generate_opencv_perf_cudaimgproc
[ 38%] Built target opencv_perf_cudaimgproc
[ 38%] Built target opencv_perf_cudawarping_pch_dephelp
[ 38%] Built target pch_Generate_opencv_perf_cudawarping
[ 38%] Built target opencv_cudawarping_pch_dephelp
[ 38%] Built target pch_Generate_opencv_cudawarping
[ 39%] Built target opencv_cudawarping
[ 40%] Built target opencv_perf_cudawarping
[ 40%] Built target opencv_dnn_pch_dephelp
[ 40%] Built target pch_Generate_opencv_dnn
[ 44%] Built target opencv_dnn
[ 44%] Built target opencv_perf_dnn_pch_dephelp
[ 44%] Built target pch_Generate_opencv_perf_dnn
[ 44%] Built target opencv_perf_dnn
[ 45%] Built target opencv_freetype_pch_dephelp
[ 45%] Built target pch_Generate_opencv_freetype
[ 45%] Built target opencv_freetype
[ 45%] Built target opencv_fuzzy_pch_dephelp
[ 45%] Built target pch_Generate_opencv_fuzzy
[ 45%] Built target opencv_fuzzy
[ 45%] Built target opencv_hfs_pch_dephelp
[ 45%] Built target pch_Generate_opencv_hfs
[ 46%] Built target opencv_hfs
[ 46%] Built target opencv_img_hash_pch_dephelp
[ 46%] Built target pch_Generate_opencv_img_hash
[ 47%] Built target opencv_img_hash
[ 47%] Built target opencv_perf_imgcodecs_pch_dephelp
[ 47%] Built target pch_Generate_opencv_perf_imgcodecs
[ 47%] Built target opencv_perf_imgcodecs
[ 47%] Built target opencv_photo_pch_dephelp
[ 47%] Built target pch_Generate_opencv_photo
[ 49%] Built target opencv_photo
[ 49%] Built target opencv_perf_photo_pch_dephelp
[ 49%] Built target pch_Generate_opencv_perf_photo
[ 49%] Built target opencv_perf_photo
[ 49%] Built target opencv_shape_pch_dephelp
[ 49%] Built target pch_Generate_opencv_shape
[ 50%] Built target opencv_shape
[ 50%] Built target opencv_perf_videoio_pch_dephelp
[ 50%] Built target pch_Generate_opencv_perf_videoio
[ 50%] Built target opencv_perf_videoio
[ 50%] Built target opencv_xobjdetect_pch_dephelp
[ 51%] Built target pch_Generate_opencv_xobjdetect
[ 51%] Built target opencv_xobjdetect
[ 51%] Built target opencv_waldboost_detector
[ 51%] Built target opencv_cudacodec_pch_dephelp
[ 51%] Built target pch_Generate_opencv_cudacodec
[ 52%] Built target opencv_cudacodec
[ 52%] Built target opencv_perf_cudacodec_pch_dephelp
[ 52%] Built target pch_Generate_opencv_perf_cudacodec
[ 53%] Built target opencv_perf_cudacodec
[ 53%] Built target opencv_perf_bioinspired_pch_dephelp
[ 53%] Built target pch_Generate_opencv_perf_bioinspired
[ 53%] Built target opencv_bioinspired_pch_dephelp
[ 53%] Built target pch_Generate_opencv_bioinspired
[ 54%] Built target opencv_bioinspired
[ 54%] Built target opencv_perf_bioinspired
[ 55%] Built target opencv_dnn_objdetect_pch_dephelp
[ 55%] Built target pch_Generate_opencv_dnn_objdetect
[ 55%] Built target opencv_dnn_objdetect
[ 55%] Built target opencv_dpm_pch_dephelp
[ 55%] Built target pch_Generate_opencv_dpm
[ 55%] Built target opencv_dpm
[ 55%] Built target opencv_perf_features2d_pch_dephelp
[ 55%] Built target pch_Generate_opencv_perf_features2d
[ 55%] Built target opencv_features2d_pch_dephelp
[ 55%] Built target pch_Generate_opencv_features2d
[ 57%] Built target opencv_features2d
[ 58%] Built target opencv_perf_features2d
[ 58%] Built target opencv_perf_line_descriptor_pch_dephelp
[ 58%] Built target pch_Generate_opencv_perf_line_descriptor
[ 58%] Built target opencv_line_descriptor_pch_dephelp
[ 59%] Built target pch_Generate_opencv_line_descriptor
[ 59%] Built target opencv_line_descriptor
[ 60%] Built target opencv_perf_line_descriptor
[ 61%] Built target opencv_saliency_pch_dephelp
[ 62%] Built target pch_Generate_opencv_saliency
[ 62%] Built target opencv_saliency
[ 62%] Built target opencv_text_pch_dephelp
[ 63%] Built target pch_Generate_opencv_text
[ 63%] Built target opencv_text
[ 64%] Built target opencv_perf_calib3d_pch_dephelp
[ 64%] Built target pch_Generate_opencv_perf_calib3d
[ 64%] Built target opencv_calib3d_pch_dephelp
[ 64%] Built target pch_Generate_opencv_calib3d
[ 66%] Built target opencv_calib3d
[ 66%] Built target opencv_perf_calib3d
[ 67%] Built target opencv_ccalib_pch_dephelp
[ 67%] Built target pch_Generate_opencv_ccalib
[ 67%] Built target opencv_ccalib
[ 67%] Built target opencv_perf_cudafeatures2d_pch_dephelp
[ 67%] Built target pch_Generate_opencv_perf_cudafeatures2d
[ 67%] Built target opencv_cudafeatures2d_pch_dephelp
[ 67%] Built target pch_Generate_opencv_cudafeatures2d
[ 68%] Built target opencv_cudafeatures2d
[ 68%] Built target opencv_perf_cudafeatures2d
[ 68%] Built target opencv_cudalegacy_pch_dephelp
[ 68%] Built target pch_Generate_opencv_cudalegacy
[ 70%] Built target opencv_cudalegacy
[ 71%] Built target opencv_perf_cudalegacy_pch_dephelp
[ 71%] Built target pch_Generate_opencv_perf_cudalegacy
[ 71%] Built target opencv_perf_cudalegacy
[ 71%] Built target opencv_perf_cudaobjdetect_pch_dephelp
[ 71%] Built target pch_Generate_opencv_perf_cudaobjdetect
[ 71%] Built target opencv_cudaobjdetect_pch_dephelp
[ 71%] Built target pch_Generate_opencv_cudaobjdetect
[ 71%] Built target opencv_cudaobjdetect
[ 71%] Built target opencv_perf_cudaobjdetect
[ 71%] Built target opencv_perf_cudaoptflow_pch_dephelp
[ 71%] Built target pch_Generate_opencv_perf_cudaoptflow
[ 71%] Built target opencv_cudaoptflow_pch_dephelp
[ 72%] Built target pch_Generate_opencv_cudaoptflow
[ 73%] Built target opencv_cudaoptflow
[ 73%] Built target opencv_perf_cudaoptflow
[ 73%] Built target opencv_perf_cudastereo_pch_dephelp
[ 74%] Built target pch_Generate_opencv_perf_cudastereo
[ 74%] Built target opencv_cudastereo_pch_dephelp
[ 74%] Built target pch_Generate_opencv_cudastereo
[ 74%] Built target opencv_cudastereo
[ 74%] Built target opencv_perf_cudastereo
[ 76%] Built target opencv_datasets
[ 77%] Built target opencv_rgbd_pch_dephelp
[ 77%] Built target pch_Generate_opencv_rgbd
[ 77%] Built target opencv_rgbd
[ 77%] Built target opencv_perf_stereo_pch_dephelp
[ 77%] Built target opencv_stereo_pch_dephelp
[ 77%] Built target pch_Generate_opencv_stereo
[ 77%] Built target opencv_stereo
[ 77%] Built target pch_Generate_opencv_perf_stereo
[ 78%] Built target opencv_perf_stereo
[ 79%] Built target opencv_structured_light_pch_dephelp
[ 79%] Built target pch_Generate_opencv_structured_light
[ 79%] Built target opencv_structured_light
[ 79%] Built target opencv_perf_superres_pch_dephelp
[ 79%] Built target pch_Generate_opencv_perf_superres
[ 79%] Built target opencv_superres_pch_dephelp
[ 79%] Built target pch_Generate_opencv_superres
[ 79%] Built target opencv_superres
[ 80%] Built target opencv_perf_superres
[ 80%] Built target opencv_perf_tracking_pch_dephelp
[ 81%] Built target opencv_tracking_pch_dephelp
[ 81%] Built target pch_Generate_opencv_tracking
[ 83%] Built target opencv_tracking
[ 83%] Built target pch_Generate_opencv_perf_tracking
[ 83%] Built target opencv_perf_tracking
[ 83%] Built target opencv_videostab_pch_dephelp
[ 83%] Built target pch_Generate_opencv_videostab
[ 84%] Built target opencv_videostab
[ 84%] Built target opencv_perf_xfeatures2d_pch_dephelp
[ 85%] Built target pch_Generate_opencv_perf_xfeatures2d
[ 85%] Built target opencv_xfeatures2d_pch_dephelp
[ 85%] Built target pch_Generate_opencv_xfeatures2d
[ 87%] Built target opencv_xfeatures2d
[ 88%] Built target opencv_perf_xfeatures2d
[ 88%] Built target opencv_perf_ximgproc_pch_dephelp
[ 88%] Built target pch_Generate_opencv_perf_ximgproc
[ 88%] Built target opencv_ximgproc_pch_dephelp
[ 88%] Built target pch_Generate_opencv_ximgproc
[ 90%] Built target opencv_ximgproc
[ 91%] Built target opencv_perf_ximgproc
[ 91%] Built target opencv_aruco_pch_dephelp
[ 91%] Built target pch_Generate_opencv_aruco
[ 91%] Built target opencv_aruco
[ 91%] Built target opencv_bgsegm_pch_dephelp
[ 91%] Built target pch_Generate_opencv_bgsegm
[ 91%] Built target opencv_bgsegm
[ 91%] Built target opencv_face_pch_dephelp
[ 91%] Built target pch_Generate_opencv_face
[ 92%] Built target opencv_face
[ 92%] Built target opencv_perf_optflow_pch_dephelp
[ 93%] Built target pch_Generate_opencv_perf_optflow
[ 93%] Built target opencv_optflow_pch_dephelp
[ 93%] Built target pch_Generate_opencv_optflow
[ 94%] Built target opencv_optflow
[ 95%] Built target opencv_perf_optflow
[ 95%] Built target numeric
[ 95%] Built target opencv_sfm_pch_dephelp
[ 95%] Built target pch_Generate_opencv_sfm
[ 96%] Built target multiview
[ 96%] Built target correspondence
[ 96%] Built target opencv_sfm
[ 96%] Built target opencv_perf_stitching_pch_dephelp
[ 96%] Built target pch_Generate_opencv_perf_stitching
[ 96%] Built target opencv_stitching_pch_dephelp
[ 96%] Built target pch_Generate_opencv_stitching
[ 97%] Built target opencv_stitching
[ 97%] Built target opencv_perf_stitching
[ 97%] Built target gen_opencv_python_source
[ 97%] Building CXX object modules/python2/CMakeFiles/opencv_python2.dir/__/src2/cv2.cpp.o
In file included from /home/dan/tools/opencv/build/modules/python_bindings_generator/pyopencv_custom_headers.h:6:0,
                 from /home/dan/tools/opencv/modules/python/src2/cv2.cpp:1532:
/home/dan/tools/opencv/opencv_contrib/modules/rgbd/misc/python/pyopencv_linemod.hpp:4:40: error: ‘linemod’ was not declared in this scope
 template&lt;&gt; struct pyopencvVecConverter&lt;linemod::Match&gt;
                                        ^
/home/dan/tools/opencv/opencv_contrib/modules/rgbd/misc/python/pyopencv_linemod.hpp:4:54: error: template argument 1 is invalid
 template&lt;&gt; struct pyopencvVecConverter&lt;linemod::Match&gt;
                                                      ^
/home/dan/tools/opencv/opencv_contrib/modules/rgbd/misc/python/pyopencv_linemod.hpp:17:40: error: ‘linemod’ was not declared in this scope
 template&lt;&gt; struct pyopencvVecConverter&lt;linemod::Template&gt;
                                        ^
/home/dan/tools/opencv/opencv_contrib/modules/rgbd/misc/python/pyopencv_linemod.hpp:17:57: error: template argument 1 is invalid
 template&lt;&gt; struct pyopencvVecConverter&lt;linemod::Template&gt;
                                                         ^
/home/dan/tools/opencv/opencv_contrib/modules/rgbd/misc/python/pyopencv_linemod.hpp:30:44: error: ‘linemod’ was not declared in this scope
 template&lt;&gt; struct pyopencvVecConverter&lt;Ptr&lt;linemod::Modality&gt; &gt;
                                            ^
/home/dan/tools/opencv/opencv_contrib/modules/rgbd/misc/python/pyopencv_linemod.hpp:30:61: error: template argument 1 is invalid
 template&lt;&gt; struct pyopencvVecConverter&lt;Ptr&lt;linemod::Modality&gt; &gt;
                                                             ^
/home/dan/tools/opencv/opencv_contrib/modules/rgbd/misc/python/pyopencv_linemod.hpp:30:63: error: template argument 1 is invalid
 template&lt;&gt; struct pyopencvVecConverter&lt;Ptr&lt;linemod::Modality&gt; &gt;
                                                               ^
/home/dan/tools/opencv/opencv_contrib/modules/rgbd/misc/python/pyopencv_linemod.hpp:43:21: error: ‘linemod’ was not declared in this scope
 typedef std::vector&lt;linemod::Match&gt; vector_Match;
                     ^
/home/dan/tools/opencv/opencv_contrib/modules/rgbd/misc/python/pyopencv_linemod.hpp:43:35: error: template argument 1 is invalid
 typedef std::vector&lt;linemod::Match&gt; vector_Match;
                                   ^
/home/dan/tools/opencv/opencv_contrib/modules/rgbd/misc/python/pyopencv_linemod.hpp:43:35: error: template argument 2 is invalid
/home/dan/tools/opencv/opencv_contrib/modules/rgbd/misc/python/pyopencv_linemod.hpp:44:21: error: ‘linemod’ was not declared in this scope
 typedef std::vector&lt;linemod::Template&gt; vector_Template;
                     ^
/home/dan/tools/opencv/opencv_contrib/modules/rgbd/misc/python/pyopencv_linemod.hpp:44:38: error: template argument 1 is invalid
 typedef std::vector&lt;linemod::Template&gt; vector_Template;
                                      ^
/home/dan/tools/opencv/opencv_contrib/modules/rgbd/misc/python/pyopencv_linemod.hpp:44:38: error: template argument 2 is invalid
/home/dan/tools/opencv/opencv_contrib/modules/rgbd/misc/python/pyopencv_linemod.hpp:45:25: error: ‘linemod’ was not declared in this scope
 typedef std::vector&lt;Ptr&lt;linemod::Modality&gt; &gt; vector_Ptr_Modality;
                         ^
/home/dan/tools/opencv/opencv_contrib/modules/rgbd/misc/python/pyopencv_linemod.hpp:45:42: error: template argument 1 is invalid
 typedef std::vector&lt;Ptr&lt;linemod::Modality&gt; &gt; vector_Ptr_Modality;
                                          ^
/home/dan/tools/opencv/opencv_contrib/modules/rgbd/misc/python/pyopencv_linemod.hpp:45:44: error: template argument 1 is invalid
 typedef std::vector&lt;Ptr&lt;linemod::Modality&gt; &gt; vector_Ptr_Modality;
                                            ^
/home/dan/tools/opencv/opencv_contrib/modules/rgbd/misc/python/pyopencv_linemod.hpp:45:44: error: template argument 2 is invalid
modules/python2/CMakeFiles/opencv_python2.dir/build.make:62: recipe for target 'modules/python2/CMakeFiles/opencv_python2.dir/__/src2/cv2.cpp.o' failed
make[2]: *** [modules/python2/CMakeFiles/opencv_python2.dir/__/src2/cv2.cpp.o] Error 1
CMakeFiles/Makefile2:14558: recipe for target 'modules/python2/CMakeFiles/opencv_python2.dir/all' failed
make[1]: *** [modules/python2/CMakeFiles/opencv_python2.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
"><pre class="notranslate"><code class="notranslate">[  0%] Built target gen-pkgconfig
[  2%] Built target ippiw
[  6%] Built target libprotobuf
[  6%] Built target ittnotify
[  6%] Built target opencv_cudev
[  6%] Built target opencv_ts_pch_dephelp
[  6%] Built target pch_Generate_opencv_ts
[  6%] Built target opencv_core_pch_dephelp
[  6%] Built target pch_Generate_opencv_core
[ 10%] Built target opencv_core
[ 10%] Built target opencv_imgproc_pch_dephelp
[ 10%] Built target pch_Generate_opencv_imgproc
[ 14%] Built target opencv_imgproc
[ 14%] Built target opencv_imgcodecs_pch_dephelp
[ 14%] Built target pch_Generate_opencv_imgcodecs
[ 15%] Built target opencv_imgcodecs
[ 15%] Built target opencv_videoio_pch_dephelp
[ 15%] Built target pch_Generate_opencv_videoio
[ 16%] Built target opencv_videoio
[ 16%] Built target opencv_highgui_pch_dephelp
[ 16%] Built target pch_Generate_opencv_highgui
[ 16%] Built target opencv_highgui
[ 17%] Built target opencv_ts
[ 17%] Built target opencv_perf_core_pch_dephelp
[ 17%] Built target pch_Generate_opencv_perf_core
[ 19%] Built target opencv_perf_core
[ 19%] Built target opencv_cudaarithm_pch_dephelp
[ 20%] Built target pch_Generate_opencv_cudaarithm
[ 22%] Built target opencv_cudaarithm
[ 22%] Built target opencv_perf_cudaarithm_pch_dephelp
[ 22%] Built target pch_Generate_opencv_perf_cudaarithm
[ 22%] Built target opencv_perf_cudaarithm
[ 22%] Built target opencv_flann_pch_dephelp
[ 23%] Built target pch_Generate_opencv_flann
[ 23%] Built target opencv_flann
[ 23%] Built target opencv_hdf_pch_dephelp
[ 23%] Built target pch_Generate_opencv_hdf
[ 23%] Built target opencv_hdf
[ 23%] Built target opencv_perf_imgproc_pch_dephelp
[ 23%] Built target pch_Generate_opencv_perf_imgproc
[ 25%] Built target opencv_perf_imgproc
[ 25%] Built target opencv_ml_pch_dephelp
[ 25%] Built target pch_Generate_opencv_ml
[ 26%] Built target opencv_ml
[ 26%] Built target opencv_perf_objdetect_pch_dephelp
[ 26%] Built target pch_Generate_opencv_perf_objdetect
[ 26%] Built target opencv_objdetect_pch_dephelp
[ 26%] Built target pch_Generate_opencv_objdetect
[ 27%] Built target opencv_objdetect
[ 27%] Built target opencv_perf_objdetect
[ 27%] Built target opencv_phase_unwrapping_pch_dephelp
[ 27%] Built target pch_Generate_opencv_phase_unwrapping
[ 27%] Built target opencv_phase_unwrapping
[ 27%] Built target opencv_plot_pch_dephelp
[ 27%] Built target pch_Generate_opencv_plot
[ 27%] Built target opencv_plot
[ 27%] Built target opencv_reg_pch_dephelp
[ 27%] Built target pch_Generate_opencv_reg
[ 28%] Built target opencv_reg
[ 28%] Built target opencv_perf_reg_pch_dephelp
[ 28%] Built target pch_Generate_opencv_perf_reg
[ 28%] Built target opencv_perf_reg
[ 28%] Built target opencv_surface_matching_pch_dephelp
[ 28%] Built target pch_Generate_opencv_surface_matching
[ 29%] Built target opencv_surface_matching
[ 29%] Built target opencv_video_pch_dephelp
[ 29%] Built target pch_Generate_opencv_video
[ 30%] Built target opencv_video
[ 30%] Built target opencv_perf_video_pch_dephelp
[ 30%] Built target pch_Generate_opencv_perf_video
[ 31%] Built target opencv_perf_video
[ 31%] Built target opencv_perf_xphoto_pch_dephelp
[ 31%] Built target pch_Generate_opencv_perf_xphoto
[ 32%] Built target opencv_xphoto
[ 32%] Built target opencv_perf_xphoto
[ 32%] Built target opencv_cudabgsegm_pch_dephelp
[ 32%] Built target pch_Generate_opencv_cudabgsegm
[ 32%] Built target opencv_cudabgsegm
[ 32%] Built target opencv_perf_cudabgsegm_pch_dephelp
[ 33%] Built target pch_Generate_opencv_perf_cudabgsegm
[ 33%] Built target opencv_perf_cudabgsegm
[ 33%] Built target opencv_perf_cudafilters_pch_dephelp
[ 33%] Built target pch_Generate_opencv_perf_cudafilters
[ 33%] Built target opencv_cudafilters_pch_dephelp
[ 33%] Built target pch_Generate_opencv_cudafilters
[ 35%] Built target opencv_cudafilters
[ 35%] Built target opencv_perf_cudafilters
[ 35%] Built target opencv_cudaimgproc_pch_dephelp
[ 35%] Built target pch_Generate_opencv_cudaimgproc
[ 37%] Built target opencv_cudaimgproc
[ 37%] Built target opencv_perf_cudaimgproc_pch_dephelp
[ 37%] Built target pch_Generate_opencv_perf_cudaimgproc
[ 38%] Built target opencv_perf_cudaimgproc
[ 38%] Built target opencv_perf_cudawarping_pch_dephelp
[ 38%] Built target pch_Generate_opencv_perf_cudawarping
[ 38%] Built target opencv_cudawarping_pch_dephelp
[ 38%] Built target pch_Generate_opencv_cudawarping
[ 39%] Built target opencv_cudawarping
[ 40%] Built target opencv_perf_cudawarping
[ 40%] Built target opencv_dnn_pch_dephelp
[ 40%] Built target pch_Generate_opencv_dnn
[ 44%] Built target opencv_dnn
[ 44%] Built target opencv_perf_dnn_pch_dephelp
[ 44%] Built target pch_Generate_opencv_perf_dnn
[ 44%] Built target opencv_perf_dnn
[ 45%] Built target opencv_freetype_pch_dephelp
[ 45%] Built target pch_Generate_opencv_freetype
[ 45%] Built target opencv_freetype
[ 45%] Built target opencv_fuzzy_pch_dephelp
[ 45%] Built target pch_Generate_opencv_fuzzy
[ 45%] Built target opencv_fuzzy
[ 45%] Built target opencv_hfs_pch_dephelp
[ 45%] Built target pch_Generate_opencv_hfs
[ 46%] Built target opencv_hfs
[ 46%] Built target opencv_img_hash_pch_dephelp
[ 46%] Built target pch_Generate_opencv_img_hash
[ 47%] Built target opencv_img_hash
[ 47%] Built target opencv_perf_imgcodecs_pch_dephelp
[ 47%] Built target pch_Generate_opencv_perf_imgcodecs
[ 47%] Built target opencv_perf_imgcodecs
[ 47%] Built target opencv_photo_pch_dephelp
[ 47%] Built target pch_Generate_opencv_photo
[ 49%] Built target opencv_photo
[ 49%] Built target opencv_perf_photo_pch_dephelp
[ 49%] Built target pch_Generate_opencv_perf_photo
[ 49%] Built target opencv_perf_photo
[ 49%] Built target opencv_shape_pch_dephelp
[ 49%] Built target pch_Generate_opencv_shape
[ 50%] Built target opencv_shape
[ 50%] Built target opencv_perf_videoio_pch_dephelp
[ 50%] Built target pch_Generate_opencv_perf_videoio
[ 50%] Built target opencv_perf_videoio
[ 50%] Built target opencv_xobjdetect_pch_dephelp
[ 51%] Built target pch_Generate_opencv_xobjdetect
[ 51%] Built target opencv_xobjdetect
[ 51%] Built target opencv_waldboost_detector
[ 51%] Built target opencv_cudacodec_pch_dephelp
[ 51%] Built target pch_Generate_opencv_cudacodec
[ 52%] Built target opencv_cudacodec
[ 52%] Built target opencv_perf_cudacodec_pch_dephelp
[ 52%] Built target pch_Generate_opencv_perf_cudacodec
[ 53%] Built target opencv_perf_cudacodec
[ 53%] Built target opencv_perf_bioinspired_pch_dephelp
[ 53%] Built target pch_Generate_opencv_perf_bioinspired
[ 53%] Built target opencv_bioinspired_pch_dephelp
[ 53%] Built target pch_Generate_opencv_bioinspired
[ 54%] Built target opencv_bioinspired
[ 54%] Built target opencv_perf_bioinspired
[ 55%] Built target opencv_dnn_objdetect_pch_dephelp
[ 55%] Built target pch_Generate_opencv_dnn_objdetect
[ 55%] Built target opencv_dnn_objdetect
[ 55%] Built target opencv_dpm_pch_dephelp
[ 55%] Built target pch_Generate_opencv_dpm
[ 55%] Built target opencv_dpm
[ 55%] Built target opencv_perf_features2d_pch_dephelp
[ 55%] Built target pch_Generate_opencv_perf_features2d
[ 55%] Built target opencv_features2d_pch_dephelp
[ 55%] Built target pch_Generate_opencv_features2d
[ 57%] Built target opencv_features2d
[ 58%] Built target opencv_perf_features2d
[ 58%] Built target opencv_perf_line_descriptor_pch_dephelp
[ 58%] Built target pch_Generate_opencv_perf_line_descriptor
[ 58%] Built target opencv_line_descriptor_pch_dephelp
[ 59%] Built target pch_Generate_opencv_line_descriptor
[ 59%] Built target opencv_line_descriptor
[ 60%] Built target opencv_perf_line_descriptor
[ 61%] Built target opencv_saliency_pch_dephelp
[ 62%] Built target pch_Generate_opencv_saliency
[ 62%] Built target opencv_saliency
[ 62%] Built target opencv_text_pch_dephelp
[ 63%] Built target pch_Generate_opencv_text
[ 63%] Built target opencv_text
[ 64%] Built target opencv_perf_calib3d_pch_dephelp
[ 64%] Built target pch_Generate_opencv_perf_calib3d
[ 64%] Built target opencv_calib3d_pch_dephelp
[ 64%] Built target pch_Generate_opencv_calib3d
[ 66%] Built target opencv_calib3d
[ 66%] Built target opencv_perf_calib3d
[ 67%] Built target opencv_ccalib_pch_dephelp
[ 67%] Built target pch_Generate_opencv_ccalib
[ 67%] Built target opencv_ccalib
[ 67%] Built target opencv_perf_cudafeatures2d_pch_dephelp
[ 67%] Built target pch_Generate_opencv_perf_cudafeatures2d
[ 67%] Built target opencv_cudafeatures2d_pch_dephelp
[ 67%] Built target pch_Generate_opencv_cudafeatures2d
[ 68%] Built target opencv_cudafeatures2d
[ 68%] Built target opencv_perf_cudafeatures2d
[ 68%] Built target opencv_cudalegacy_pch_dephelp
[ 68%] Built target pch_Generate_opencv_cudalegacy
[ 70%] Built target opencv_cudalegacy
[ 71%] Built target opencv_perf_cudalegacy_pch_dephelp
[ 71%] Built target pch_Generate_opencv_perf_cudalegacy
[ 71%] Built target opencv_perf_cudalegacy
[ 71%] Built target opencv_perf_cudaobjdetect_pch_dephelp
[ 71%] Built target pch_Generate_opencv_perf_cudaobjdetect
[ 71%] Built target opencv_cudaobjdetect_pch_dephelp
[ 71%] Built target pch_Generate_opencv_cudaobjdetect
[ 71%] Built target opencv_cudaobjdetect
[ 71%] Built target opencv_perf_cudaobjdetect
[ 71%] Built target opencv_perf_cudaoptflow_pch_dephelp
[ 71%] Built target pch_Generate_opencv_perf_cudaoptflow
[ 71%] Built target opencv_cudaoptflow_pch_dephelp
[ 72%] Built target pch_Generate_opencv_cudaoptflow
[ 73%] Built target opencv_cudaoptflow
[ 73%] Built target opencv_perf_cudaoptflow
[ 73%] Built target opencv_perf_cudastereo_pch_dephelp
[ 74%] Built target pch_Generate_opencv_perf_cudastereo
[ 74%] Built target opencv_cudastereo_pch_dephelp
[ 74%] Built target pch_Generate_opencv_cudastereo
[ 74%] Built target opencv_cudastereo
[ 74%] Built target opencv_perf_cudastereo
[ 76%] Built target opencv_datasets
[ 77%] Built target opencv_rgbd_pch_dephelp
[ 77%] Built target pch_Generate_opencv_rgbd
[ 77%] Built target opencv_rgbd
[ 77%] Built target opencv_perf_stereo_pch_dephelp
[ 77%] Built target opencv_stereo_pch_dephelp
[ 77%] Built target pch_Generate_opencv_stereo
[ 77%] Built target opencv_stereo
[ 77%] Built target pch_Generate_opencv_perf_stereo
[ 78%] Built target opencv_perf_stereo
[ 79%] Built target opencv_structured_light_pch_dephelp
[ 79%] Built target pch_Generate_opencv_structured_light
[ 79%] Built target opencv_structured_light
[ 79%] Built target opencv_perf_superres_pch_dephelp
[ 79%] Built target pch_Generate_opencv_perf_superres
[ 79%] Built target opencv_superres_pch_dephelp
[ 79%] Built target pch_Generate_opencv_superres
[ 79%] Built target opencv_superres
[ 80%] Built target opencv_perf_superres
[ 80%] Built target opencv_perf_tracking_pch_dephelp
[ 81%] Built target opencv_tracking_pch_dephelp
[ 81%] Built target pch_Generate_opencv_tracking
[ 83%] Built target opencv_tracking
[ 83%] Built target pch_Generate_opencv_perf_tracking
[ 83%] Built target opencv_perf_tracking
[ 83%] Built target opencv_videostab_pch_dephelp
[ 83%] Built target pch_Generate_opencv_videostab
[ 84%] Built target opencv_videostab
[ 84%] Built target opencv_perf_xfeatures2d_pch_dephelp
[ 85%] Built target pch_Generate_opencv_perf_xfeatures2d
[ 85%] Built target opencv_xfeatures2d_pch_dephelp
[ 85%] Built target pch_Generate_opencv_xfeatures2d
[ 87%] Built target opencv_xfeatures2d
[ 88%] Built target opencv_perf_xfeatures2d
[ 88%] Built target opencv_perf_ximgproc_pch_dephelp
[ 88%] Built target pch_Generate_opencv_perf_ximgproc
[ 88%] Built target opencv_ximgproc_pch_dephelp
[ 88%] Built target pch_Generate_opencv_ximgproc
[ 90%] Built target opencv_ximgproc
[ 91%] Built target opencv_perf_ximgproc
[ 91%] Built target opencv_aruco_pch_dephelp
[ 91%] Built target pch_Generate_opencv_aruco
[ 91%] Built target opencv_aruco
[ 91%] Built target opencv_bgsegm_pch_dephelp
[ 91%] Built target pch_Generate_opencv_bgsegm
[ 91%] Built target opencv_bgsegm
[ 91%] Built target opencv_face_pch_dephelp
[ 91%] Built target pch_Generate_opencv_face
[ 92%] Built target opencv_face
[ 92%] Built target opencv_perf_optflow_pch_dephelp
[ 93%] Built target pch_Generate_opencv_perf_optflow
[ 93%] Built target opencv_optflow_pch_dephelp
[ 93%] Built target pch_Generate_opencv_optflow
[ 94%] Built target opencv_optflow
[ 95%] Built target opencv_perf_optflow
[ 95%] Built target numeric
[ 95%] Built target opencv_sfm_pch_dephelp
[ 95%] Built target pch_Generate_opencv_sfm
[ 96%] Built target multiview
[ 96%] Built target correspondence
[ 96%] Built target opencv_sfm
[ 96%] Built target opencv_perf_stitching_pch_dephelp
[ 96%] Built target pch_Generate_opencv_perf_stitching
[ 96%] Built target opencv_stitching_pch_dephelp
[ 96%] Built target pch_Generate_opencv_stitching
[ 97%] Built target opencv_stitching
[ 97%] Built target opencv_perf_stitching
[ 97%] Built target gen_opencv_python_source
[ 97%] Building CXX object modules/python2/CMakeFiles/opencv_python2.dir/__/src2/cv2.cpp.o
In file included from /home/dan/tools/opencv/build/modules/python_bindings_generator/pyopencv_custom_headers.h:6:0,
                 from /home/dan/tools/opencv/modules/python/src2/cv2.cpp:1532:
/home/dan/tools/opencv/opencv_contrib/modules/rgbd/misc/python/pyopencv_linemod.hpp:4:40: error: ‘linemod’ was not declared in this scope
 template&lt;&gt; struct pyopencvVecConverter&lt;linemod::Match&gt;
                                        ^
/home/dan/tools/opencv/opencv_contrib/modules/rgbd/misc/python/pyopencv_linemod.hpp:4:54: error: template argument 1 is invalid
 template&lt;&gt; struct pyopencvVecConverter&lt;linemod::Match&gt;
                                                      ^
/home/dan/tools/opencv/opencv_contrib/modules/rgbd/misc/python/pyopencv_linemod.hpp:17:40: error: ‘linemod’ was not declared in this scope
 template&lt;&gt; struct pyopencvVecConverter&lt;linemod::Template&gt;
                                        ^
/home/dan/tools/opencv/opencv_contrib/modules/rgbd/misc/python/pyopencv_linemod.hpp:17:57: error: template argument 1 is invalid
 template&lt;&gt; struct pyopencvVecConverter&lt;linemod::Template&gt;
                                                         ^
/home/dan/tools/opencv/opencv_contrib/modules/rgbd/misc/python/pyopencv_linemod.hpp:30:44: error: ‘linemod’ was not declared in this scope
 template&lt;&gt; struct pyopencvVecConverter&lt;Ptr&lt;linemod::Modality&gt; &gt;
                                            ^
/home/dan/tools/opencv/opencv_contrib/modules/rgbd/misc/python/pyopencv_linemod.hpp:30:61: error: template argument 1 is invalid
 template&lt;&gt; struct pyopencvVecConverter&lt;Ptr&lt;linemod::Modality&gt; &gt;
                                                             ^
/home/dan/tools/opencv/opencv_contrib/modules/rgbd/misc/python/pyopencv_linemod.hpp:30:63: error: template argument 1 is invalid
 template&lt;&gt; struct pyopencvVecConverter&lt;Ptr&lt;linemod::Modality&gt; &gt;
                                                               ^
/home/dan/tools/opencv/opencv_contrib/modules/rgbd/misc/python/pyopencv_linemod.hpp:43:21: error: ‘linemod’ was not declared in this scope
 typedef std::vector&lt;linemod::Match&gt; vector_Match;
                     ^
/home/dan/tools/opencv/opencv_contrib/modules/rgbd/misc/python/pyopencv_linemod.hpp:43:35: error: template argument 1 is invalid
 typedef std::vector&lt;linemod::Match&gt; vector_Match;
                                   ^
/home/dan/tools/opencv/opencv_contrib/modules/rgbd/misc/python/pyopencv_linemod.hpp:43:35: error: template argument 2 is invalid
/home/dan/tools/opencv/opencv_contrib/modules/rgbd/misc/python/pyopencv_linemod.hpp:44:21: error: ‘linemod’ was not declared in this scope
 typedef std::vector&lt;linemod::Template&gt; vector_Template;
                     ^
/home/dan/tools/opencv/opencv_contrib/modules/rgbd/misc/python/pyopencv_linemod.hpp:44:38: error: template argument 1 is invalid
 typedef std::vector&lt;linemod::Template&gt; vector_Template;
                                      ^
/home/dan/tools/opencv/opencv_contrib/modules/rgbd/misc/python/pyopencv_linemod.hpp:44:38: error: template argument 2 is invalid
/home/dan/tools/opencv/opencv_contrib/modules/rgbd/misc/python/pyopencv_linemod.hpp:45:25: error: ‘linemod’ was not declared in this scope
 typedef std::vector&lt;Ptr&lt;linemod::Modality&gt; &gt; vector_Ptr_Modality;
                         ^
/home/dan/tools/opencv/opencv_contrib/modules/rgbd/misc/python/pyopencv_linemod.hpp:45:42: error: template argument 1 is invalid
 typedef std::vector&lt;Ptr&lt;linemod::Modality&gt; &gt; vector_Ptr_Modality;
                                          ^
/home/dan/tools/opencv/opencv_contrib/modules/rgbd/misc/python/pyopencv_linemod.hpp:45:44: error: template argument 1 is invalid
 typedef std::vector&lt;Ptr&lt;linemod::Modality&gt; &gt; vector_Ptr_Modality;
                                            ^
/home/dan/tools/opencv/opencv_contrib/modules/rgbd/misc/python/pyopencv_linemod.hpp:45:44: error: template argument 2 is invalid
modules/python2/CMakeFiles/opencv_python2.dir/build.make:62: recipe for target 'modules/python2/CMakeFiles/opencv_python2.dir/__/src2/cv2.cpp.o' failed
make[2]: *** [modules/python2/CMakeFiles/opencv_python2.dir/__/src2/cv2.cpp.o] Error 1
CMakeFiles/Makefile2:14558: recipe for target 'modules/python2/CMakeFiles/opencv_python2.dir/all' failed
make[1]: *** [modules/python2/CMakeFiles/opencv_python2.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2

</code></pre></div>