Open engineer1109 opened 5 years ago
cmake info
-- Looking for ccache - not found
-- Found ZLIB: /usr/local/lib/libz.so (found suitable version "1.2.11", minimum required is "1.2.3")
-- Could NOT find Jasper (missing: JASPER_LIBRARIES JASPER_INCLUDE_DIR)
-- Found ZLIB: /usr/local/lib/libz.so (found version "1.2.11")
-- Checking for module 'gtk+-3.0'
-- No package 'gtk+-3.0' found
-- found Intel IPP (ICV version): 2019.0.0 [2019.0.0 Gold]
-- at: /media/wjl/0B8803760B880376/github/2/opencv-4.1.0/build/3rdparty/ippicv/ippicv_lnx/icv
-- found Intel IPP Integration Wrappers sources: 2019.0.0
-- at: /media/wjl/0B8803760B880376/github/2/opencv-4.1.0/build/3rdparty/ippicv/ippicv_lnx/iw
-- CUDA detected: 10.0
-- CUDA NVCC target flags: -gencode;arch=compute_30,code=sm_30;-gencode;arch=compute_35,code=sm_35;-gencode;arch=compute_37,code=sm_37;-gencode;arch=compute_50,code=sm_50;-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;-gencode;arch=compute_75,code=sm_75;-D_FORCE_INLINES
-- Could not find OpenBLAS include. Turning OpenBLAS_FOUND off
-- Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off
-- Could NOT find Atlas (missing: Atlas_CLAPACK_INCLUDE_DIR Atlas_CBLAS_LIBRARY Atlas_BLAS_LIBRARY)
-- A library with BLAS API found.
-- A library with LAPACK API found.
-- Found VTK 8.2.0 (/usr/local/lib/cmake/vtk-8.2/UseVTK.cmake)
-- OpenCV Python: during development append to PYTHONPATH: /media/wjl/0B8803760B880376/github/2/opencv-4.1.0/build/python_loader
-- Caffe: NO
-- Protobuf: NO
-- Glog: NO
-- freetype2: YES
-- harfbuzz: YES
-- Unable to determine HDF5 C flags from HDF5 wrapper.
-- Unable to determine HDF5 C version from HDF5 wrapper.
-- Could NOT find HDF5 (missing: HDF5_LIBRARIES HDF5_INCLUDE_DIRS) (found version "")
-- Module opencv_ovis disabled because OGRE3D was not found
-- 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.
-- Found installed version of gflags: /usr/lib/x86_64-linux-gnu/cmake/gflags
-- Detected gflags version: 2.2.1
-- 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: Glog/Gflags
-- freetype2: YES
-- harfbuzz: YES
-- Checking for modules 'tesseract;lept'
-- No package 'tesseract' found
-- No package 'lept' found
-- Tesseract: NO
--
-- General configuration for OpenCV 4.1.0 =====================================
-- Version control: unknown
--
-- Extra modules:
-- Location (extra): /media/wjl/0B8803760B880376/github/2/opencv_contrib-4.1.0/modules
-- Version control (extra): unknown
--
-- Platform:
-- Timestamp: 2019-06-12T15:27:58Z
-- Host: Linux 4.18.0-21-generic x86_64
-- CMake: 3.10.2
-- 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 (15 files): + SSSE3 SSE4_1
-- SSE4_2 (2 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 (29 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2
-- AVX512_SKX (2 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 7.4.0)
-- C++ flags (Release): -Ofast -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-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffast-math -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG
-- C++ flags (Debug): -Ofast -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-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffast-math -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -g -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-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffast-math -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-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffast-math -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -g -DDEBUG -D_DEBUG
-- Linker flags (Release): -Wl,--gc-sections
-- Linker flags (Debug): -Wl,--gc-sections
-- ccache: NO
-- Precompiled headers: YES
-- Extra dependencies: m pthread /usr/lib/x86_64-linux-gnu/libGL.so /usr/lib/x86_64-linux-gnu/libGLU.so cudart_static dl rt nppc nppial nppicc nppicom nppidei nppif nppig nppim nppist nppisu nppitc npps cublas cufft -L/usr/local/cuda/lib64 -L/usr/lib/x86_64-linux-gnu
-- 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 gapi hfs highgui img_hash imgcodecs imgproc line_descriptor ml objdetect optflow phase_unwrapping photo plot python3 quality reg rgbd saliency shape stereo stitching structured_light superres surface_matching text tracking ts video videoio videostab viz xfeatures2d ximgproc xobjdetect xphoto
-- Disabled: world
-- Disabled by dependency: -
-- Unavailable: cnn_3dobj cvv hdf java js matlab ovis python2 sfm
-- Applications: tests perf_tests apps
-- Documentation: NO
-- Non-free algorithms: NO
--
-- GUI:
-- GTK+: YES (ver 2.24.32)
-- GThread : YES (ver 2.56.4)
-- GtkGlExt: YES (ver 1.2.0)
-- OpenGL support: YES (/usr/lib/x86_64-linux-gnu/libGL.so /usr/lib/x86_64-linux-gnu/libGLU.so)
-- VTK support: YES (ver 8.2.0)
--
-- Media I/O:
-- ZLib: /usr/local/lib/libz.so (ver 1.2.11)
-- JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so (ver 80)
-- WEBP: build (ver encoder: 0x020e)
-- PNG: /usr/lib/x86_64-linux-gnu/libpng.so (ver 1.6.34)
-- TIFF: /usr/lib/x86_64-linux-gnu/libtiff.so (ver 42 / 4.0.9)
-- JPEG 2000: build (ver 1.900.1)
-- OpenEXR: build (ver 1.7.1)
-- HDR: YES
-- SUNRASTER: YES
-- PXM: YES
-- PFM: YES
--
-- Video I/O:
-- DC1394: NO
-- FFMPEG: YES
-- avcodec: YES (58.52.100)
-- avformat: YES (58.27.103)
-- avutil: YES (56.26.100)
-- swscale: YES (5.4.100)
-- avresample: YES (4.0.0)
-- GStreamer: YES (1.14.1)
-- v4l/v4l2: YES (linux/videodev2.h)
--
-- Parallel framework: pthreads
--
-- Trace: YES (with Intel ITT)
--
-- Other third-party libraries:
-- Intel IPP: 2019.0.0 Gold [2019.0.0]
-- at: /media/wjl/0B8803760B880376/github/2/opencv-4.1.0/build/3rdparty/ippicv/ippicv_lnx/icv
-- Intel IPP IW: sources (2019.0.0)
-- at: /media/wjl/0B8803760B880376/github/2/opencv-4.1.0/build/3rdparty/ippicv/ippicv_lnx/iw
-- Lapack: NO
-- Eigen: YES (ver 3.3.4)
-- Custom HAL: NO
-- Protobuf: build (3.5.1)
--
-- NVIDIA CUDA: YES (ver 10.0, CUFFT CUBLAS NVCUVID FAST_MATH)
-- NVIDIA GPU arch: 30 35 37 50 52 60 61 70 75
-- NVIDIA PTX archs:
--
-- OpenCL: YES (no extra features)
-- Include path: /media/wjl/0B8803760B880376/github/2/opencv-4.1.0/3rdparty/include/opencl/1.2
-- Link libraries: Dynamic load
--
-- Python 3:
-- Interpreter: /usr/bin/python3 (ver 3.6.7)
-- Libraries: /usr/lib/x86_64-linux-gnu/libpython3.6m.so (ver 3.6.7)
-- numpy: /usr/local/lib/python3.6/dist-packages/numpy/core/include (ver 1.16.3)
-- install path: lib/python3.6/dist-packages/cv2/python-3.6
--
-- Python (for build): /usr/bin/python2.7
--
-- Java:
-- ant: NO
-- JNI: /home/wjl/jdk1.8.0_212/include /home/wjl/jdk1.8.0_212/include/linux /home/wjl/jdk1.8.0_212/include
-- Java wrappers: NO
-- Java tests: NO
--
-- Install to: /usr/local
-- -- Configuring done -- Generating done -- Build files have been written to: /media/wjl/0B8803760B880376/github/2/opencv-4.1.0/build
I was also having the same problem so i installed previous version using
git clone -b 3.4 https://github.com/opencv/opencv
git clone -b 3.4 https://github.com/opencv/opencv_contrib
Then used this cmake command
cmake -D CMAKE_BUILD_TYPE=RELEASE \ -D CMAKE_INSTALL_PREFIX=$cwd/installation/OpenCV-"$cvVersion" \ -D INSTALL_C_EXAMPLES=ON \ -D INSTALL_PYTHON_EXAMPLES=ON \ -D WITH_TBB=ON \ -D WITH_V4L=ON \ -D OPENCV_PYTHON3_INSTALL_PATH=$cwd/OpenCV-$cvVersion-py3/lib/python3.5/site-packages \ -D WITH_QT=ON \ -D WITH_OPENGL=ON \-DEIGEN_INCLUDE_PATH=/root/eigen/ \ -D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules \ -D BUILD_EXAMPLES=ON ..
Replace the Path accordingly
It worked fine for me
Did you make clean
and make it again?
I resolved this issue.
Meet this problem, when built for python.
In file included from /media/wjl/0B8803760B880376/github/2/opencv-4.1.0/build/modules/python_bindings_generator/pyopencv_custom_headers.h:6:0, from /media/wjl/0B8803760B880376/github/2/opencv-4.1.0/modules/python/src2/cv2.cpp:1721: /media/wjl/0B8803760B880376/github/2/opencv_contrib-4.1.0/modules/surface_matching/misc/python/pyopencv_ppf_match_3d.hpp:3:40: error: ‘ppf_match_3d’ was not declared in this scope template<> struct pyopencvVecConverter
^
^
^
/media/wjl/0B8803760B880376/github/2/opencv_contrib-4.1.0/modules/surface_matching/misc/python/pyopencv_ppf_match_3d.hpp:16:21: error: ‘ppf_match_3d’ was not declared in this scope
typedef std::vector vector_Pose3DPtr;
^ vector_Pose3DPtr;
^ vector_Pose3DPtr;
^
/media/wjl/0B8803760B880376/github/2/opencv_contrib-4.1.0/modules/surface_matching/misc/python/pyopencv_ppf_match_3d.hpp:16:44: error: template argument 2 is invalid
In file included from /media/wjl/0B8803760B880376/github/2/opencv-4.1.0/build/modules/python_bindings_generator/pyopencv_custom_headers.h:13:0,
from /media/wjl/0B8803760B880376/github/2/opencv-4.1.0/modules/python/src2/cv2.cpp:1721:
/media/wjl/0B8803760B880376/github/2/opencv_contrib-4.1.0/modules/rgbd/misc/python/pyopencv_linemod.hpp:4:40: error: ‘linemod’ was not declared in this scope
template<> struct pyopencvVecConverter
^
^
^
/media/wjl/0B8803760B880376/github/2/opencv_contrib-4.1.0/modules/rgbd/misc/python/pyopencv_linemod.hpp:17:40: error: ‘linemod’ was not declared in this scope
template<> struct pyopencvVecConverter
^
^
^
/media/wjl/0B8803760B880376/github/2/opencv_contrib-4.1.0/modules/rgbd/misc/python/pyopencv_linemod.hpp:30:40: error: ‘linemod’ was not declared in this scope
template<> struct pyopencvVecConverter
^
^
^
/media/wjl/0B8803760B880376/github/2/opencv_contrib-4.1.0/modules/rgbd/misc/python/pyopencv_linemod.hpp:43:44: error: ‘linemod’ was not declared in this scope
template<> struct pyopencvVecConverter<Ptr >
^ >
^ >
^
/media/wjl/0B8803760B880376/github/2/opencv_contrib-4.1.0/modules/rgbd/misc/python/pyopencv_linemod.hpp:43:63: error: template argument 1 is invalid
template<> struct pyopencvVecConverter<Ptr >
^
/media/wjl/0B8803760B880376/github/2/opencv_contrib-4.1.0/modules/rgbd/misc/python/pyopencv_linemod.hpp:56:21: error: ‘linemod’ was not declared in this scope
typedef std::vector vector_Match;
^ vector_Match;
^ vector_Match;
^
/media/wjl/0B8803760B880376/github/2/opencv_contrib-4.1.0/modules/rgbd/misc/python/pyopencv_linemod.hpp:56:35: error: template argument 2 is invalid
/media/wjl/0B8803760B880376/github/2/opencv_contrib-4.1.0/modules/rgbd/misc/python/pyopencv_linemod.hpp:57:21: error: ‘linemod’ was not declared in this scope
typedef std::vector vector_Template;
^ vector_Template;
^ vector_Template;
^
/media/wjl/0B8803760B880376/github/2/opencv_contrib-4.1.0/modules/rgbd/misc/python/pyopencv_linemod.hpp:57:38: error: template argument 2 is invalid
/media/wjl/0B8803760B880376/github/2/opencv_contrib-4.1.0/modules/rgbd/misc/python/pyopencv_linemod.hpp:58:21: error: ‘linemod’ was not declared in this scope
typedef std::vector vector_Feature;
^ vector_Feature;
^ vector_Feature;
^
/media/wjl/0B8803760B880376/github/2/opencv_contrib-4.1.0/modules/rgbd/misc/python/pyopencv_linemod.hpp:58:37: error: template argument 2 is invalid
/media/wjl/0B8803760B880376/github/2/opencv_contrib-4.1.0/modules/rgbd/misc/python/pyopencv_linemod.hpp:59:25: error: ‘linemod’ was not declared in this scope
typedef std::vector<Ptr > vector_Ptr_Modality;
^ > vector_Ptr_Modality;
^ > vector_Ptr_Modality;
^
/media/wjl/0B8803760B880376/github/2/opencv_contrib-4.1.0/modules/rgbd/misc/python/pyopencv_linemod.hpp:59:44: error: template argument 1 is invalid
typedef std::vector<Ptr > vector_Ptr_Modality;
^
/media/wjl/0B8803760B880376/github/2/opencv_contrib-4.1.0/modules/rgbd/misc/python/pyopencv_linemod.hpp:59:44: error: template argument 2 is invalid
/media/wjl/0B8803760B880376/github/2/opencv-4.1.0/modules/python/src2/cv2.cpp: In instantiation of ‘bool pyopencv_to(PyObject, T&, const char) [with T = cv::line_descriptor::KeyLine; PyObject = _object]’:
/media/wjl/0B8803760B880376/github/2/opencv-4.1.0/modules/python/src2/cv2.cpp:1305:24: required from ‘bool pyopencv_to_generic_vec(PyObject, std::vector<_Tp>&, ArgInfo) [with _Tp = cv::line_descriptor::KeyLine; PyObject = _object]’
/media/wjl/0B8803760B880376/github/2/opencv_contrib-4.1.0/modules/line_descriptor/misc/python/pyopencv_LSDDetector.hpp:7:56: required from here
/media/wjl/0B8803760B880376/github/2/opencv-4.1.0/modules/python/src2/cv2.cpp:24:105: error: ‘to’ is not a member of ‘PyOpenCV_Converter<cv::line_descriptor::KeyLine, void>’
, const char name = "") { return PyOpenCV_Converter::to(obj, p, name); }
~~~ /media/wjl/0B8803760B880376/github/2/opencv_contrib-4.1.0/modules/surface_matching/misc/python/pyopencv_ppf_match_3d.hpp:3:40: note: suggested alternative: ‘rpmatch’ template<> struct pyopencvVecConverter~~~ rpmatch /media/wjl/0B8803760B880376/github/2/opencv_contrib-4.1.0/modules/surface_matching/misc/python/pyopencv_ppf_match_3d.hpp:3:64: error: template argument 1 is invalid template<> struct pyopencvVecConverter~~~ /media/wjl/0B8803760B880376/github/2/opencv_contrib-4.1.0/modules/surface_matching/misc/python/pyopencv_ppf_match_3d.hpp:16:21: note: suggested alternative: ‘rpmatch’ typedef std::vector~~~ rpmatch /media/wjl/0B8803760B880376/github/2/opencv_contrib-4.1.0/modules/surface_matching/misc/python/pyopencv_ppf_match_3d.hpp:16:44: error: template argument 1 is invalid typedef std::vector~~ /media/wjl/0B8803760B880376/github/2/opencv_contrib-4.1.0/modules/rgbd/misc/python/pyopencv_linemod.hpp:4:40: note: suggested alternative: ‘lchmod’ template<> struct pyopencvVecConverter~~ lchmod /media/wjl/0B8803760B880376/github/2/opencv_contrib-4.1.0/modules/rgbd/misc/python/pyopencv_linemod.hpp:4:54: error: template argument 1 is invalid template<> struct pyopencvVecConverter~~ /media/wjl/0B8803760B880376/github/2/opencv_contrib-4.1.0/modules/rgbd/misc/python/pyopencv_linemod.hpp:17:40: note: suggested alternative: ‘lchmod’ template<> struct pyopencvVecConverter~~ lchmod /media/wjl/0B8803760B880376/github/2/opencv_contrib-4.1.0/modules/rgbd/misc/python/pyopencv_linemod.hpp:17:57: error: template argument 1 is invalid template<> struct pyopencvVecConverter~~ /media/wjl/0B8803760B880376/github/2/opencv_contrib-4.1.0/modules/rgbd/misc/python/pyopencv_linemod.hpp:30:40: note: suggested alternative: ‘lchmod’ template<> struct pyopencvVecConverter~~ lchmod /media/wjl/0B8803760B880376/github/2/opencv_contrib-4.1.0/modules/rgbd/misc/python/pyopencv_linemod.hpp:30:56: error: template argument 1 is invalid template<> struct pyopencvVecConverter~~ /media/wjl/0B8803760B880376/github/2/opencv_contrib-4.1.0/modules/rgbd/misc/python/pyopencv_linemod.hpp:43:44: note: suggested alternative: ‘lchmod’ template<> struct pyopencvVecConverter<Ptr~~ lchmod /media/wjl/0B8803760B880376/github/2/opencv_contrib-4.1.0/modules/rgbd/misc/python/pyopencv_linemod.hpp:43:61: error: template argument 1 is invalid template<> struct pyopencvVecConverter<Ptr~~ /media/wjl/0B8803760B880376/github/2/opencv_contrib-4.1.0/modules/rgbd/misc/python/pyopencv_linemod.hpp:56:21: note: suggested alternative: ‘lchmod’ typedef std::vector~~ lchmod /media/wjl/0B8803760B880376/github/2/opencv_contrib-4.1.0/modules/rgbd/misc/python/pyopencv_linemod.hpp:56:35: error: template argument 1 is invalid typedef std::vector~~ /media/wjl/0B8803760B880376/github/2/opencv_contrib-4.1.0/modules/rgbd/misc/python/pyopencv_linemod.hpp:57:21: note: suggested alternative: ‘lchmod’ typedef std::vector~~ lchmod /media/wjl/0B8803760B880376/github/2/opencv_contrib-4.1.0/modules/rgbd/misc/python/pyopencv_linemod.hpp:57:38: error: template argument 1 is invalid typedef std::vector~~ /media/wjl/0B8803760B880376/github/2/opencv_contrib-4.1.0/modules/rgbd/misc/python/pyopencv_linemod.hpp:58:21: note: suggested alternative: ‘lchmod’ typedef std::vector~~ lchmod /media/wjl/0B8803760B880376/github/2/opencv_contrib-4.1.0/modules/rgbd/misc/python/pyopencv_linemod.hpp:58:37: error: template argument 1 is invalid typedef std::vector~~ /media/wjl/0B8803760B880376/github/2/opencv_contrib-4.1.0/modules/rgbd/misc/python/pyopencv_linemod.hpp:59:25: note: suggested alternative: ‘lchmod’ typedef std::vector<Ptr~~ lchmod /media/wjl/0B8803760B880376/github/2/opencv_contrib-4.1.0/modules/rgbd/misc/python/pyopencv_linemod.hpp:59:42: error: template argument 1 is invalid typedef std::vector<Ptr