Issue 1:
System information (version)

OpenCV => 4.2.0

Operating System / Platform => Windows 7 64 Bit

Compiler => Visual Studio 2017

Detailed description

Steps to reproduce

1.I use VS2017, C ++/MFC/Win32 project。When I quit the program, I found a memory leak。

Detected memory leaks!

Dumping objects ->

{377} normal block at 0x041259A8, 56 bytes long.

Data: < > 01 00 CD CD 00 00 00 00 00 00 00 00 00 00 00 00

{311} normal block at 0x04122DE8, 12 bytes long.

Data: 4F 70 65 6E 43 56 54 72 61 63 65 00

{310} normal block at 0x04131F48, 24 bytes long.

Data: < - > 01 00 00 00 E8 2D 12 04 00 00 00 00 00 00 00 00

{305} normal block at 0x040DE428, 128 bytes long.

Data: < > CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD

{304} normal block at 0x040DEC68, 128 bytes long.

Data: < > 00 00 00 00 CD CD CD CD CD CD CD CD CD CD CD CD

{303} normal block at 0x04123268, 8 bytes long.

Data: <,4 > 2C 34 12 04 00 00 00 00

{302} normal block at 0x04123100, 8 bytes long.

Data: < 4 > 1C 34 12 04 00 00 00 00

{301} normal block at 0x041233E8, 84 bytes long.

Data: < qb > 02 01 00 00 A8 85 71 62 00 00 00 00 CD CD CD CD

{300} normal block at 0x04120F90, 48 bytes long.

Data: < qb > 02 01 00 00 A8 85 71 62 00 00 00 00 CD CD CD CD

2.Then I used windbg.exe to debug and found the following information：

0:000> !heap -p -a 0x041259A8

address 041259a8 found in

_HEAP @ 40b0000

HEAP_ENTRY Size Prev Flags UserPtr UserSize - state

04125970 000f 0000 [00] 04125988 0005c - (busy)

77e93484 ntdll!RtlpCallInterceptRoutine+0x00000026

77e50a8a ntdll!RtlpAllocateHeapInternal+0x00055c8a

77dfadee ntdll!RtlAllocateHeap+0x0000003e

622ab4a5 ucrtbased!heap_alloc_dbg_internal+0x00000195

622ab2c6 ucrtbased!heap_alloc_dbg+0x00000036

622ada3a ucrtbased!_malloc_dbg+0x0000001a

622ae354 ucrtbased!malloc+0x00000014

*** WARNING: Unable to verify checksum for D:\My Resources\2-PartTime\SmartDispenser\SmartDispenser 2020.02.02\Debug\opencv_core420d.dll

*** ERROR: Symbol file could not be found. Defaulted to export symbols for D:\My Resources\2-PartTime\SmartDispenser\SmartDispenser 2020.02.02\Debug\opencv_core420d.dll -

5dbf7ed opencv_core420d!cv::SparseMat::ptr+0x00a38123

5cee65a opencv_core420d!cv::SparseMat::ptr+0x00966f90

5cee918 opencv_core420d!cv::SparseMat::ptr+0x0096724e

*** WARNING: Unable to verify checksum for D:\My Resources\2-PartTime\SmartDispenser\SmartDispenser 2020.02.02\Debug\opencv_imgproc420d.dll

*** ERROR: Symbol file could not be found. Defaulted to export symbols for D:\My Resources\2-PartTime\SmartDispenser\SmartDispenser 2020.02.02\Debug\opencv_imgproc420d.dll -

79e14fb3 opencv_imgproc420d!cvDrawContours+0x00f9eb8b

79b138bd opencv_imgproc420d!cvDrawContours+0x00c9d495

622c59df ucrtbased!_initterm+0x0000003f

7a0e90f7 opencv_imgproc420d!cvDrawContours+0x01272ccf

7a0e8fb9 opencv_imgproc420d!cvDrawContours+0x01272b91

7a0e93a3 opencv_imgproc420d!cvDrawContours+0x01272f7b

7a0e958f opencv_imgproc420d!cvDrawContours+0x01273167

77e31d36 ntdll!LdrxCallInitRoutine+0x00000016

77df5558 ntdll!LdrpCallInitRoutine+0x00000051

77e03edf ntdll!LdrpInitializeNode+0x00000133

77e04786 ntdll!LdrpInitializeGraphRecurse+0x0000005d

77e0479d ntdll!LdrpInitializeGraphRecurse+0x00000074

77e0479d ntdll!LdrpInitializeGraphRecurse+0x00000074

77e0479d ntdll!LdrpInitializeGraphRecurse+0x00000074

77e0479d ntdll!LdrpInitializeGraphRecurse+0x00000074

77e69472 ntdll!LdrpInitializeGraph+0x00000013

77e692b2 ntdll!LdrpInitializeProcess+0x00001cc2

77e11d21 ntdll!_LdrpInitialize+0x000000ba

77e11c11 ntdll!LdrInitializeThunk+0x00000011

0:000> !heap -p -a 0x041233E8

address 041233e8 found in

_HEAP @ 40b0000

HEAP_ENTRY Size Prev Flags UserPtr UserSize - state

041233b0 0012 0000 [00] 041233c8 00078 - (busy)

77e93484 ntdll!RtlpCallInterceptRoutine+0x00000026

77e50a8a ntdll!RtlpAllocateHeapInternal+0x00055c8a

77dfadee ntdll!RtlAllocateHeap+0x0000003e

622ab4a5 ucrtbased!heap_alloc_dbg_internal+0x00000195

622ab2c6 ucrtbased!heap_alloc_dbg+0x00000036

622ada3a ucrtbased!_malloc_dbg+0x0000001a

622ae354 ucrtbased!malloc+0x00000014

5dbf7ed opencv_core420d!cv::SparseMat::ptr+0x00a38123

5cef0ba opencv_core420d!cv::SparseMat::ptr+0x009679f0

5ce6570 opencv_core420d!cv::SparseMat::ptr+0x0095eea6

5cf53d5 opencv_core420d!cv::SparseMat::ptr+0x0096dd0b

5cf5465 opencv_core420d!cv::SparseMat::ptr+0x0096dd9b

5cf6eae opencv_core420d!cv::SparseMat::ptr+0x0096f7e4

5cfd155 opencv_core420d!cv::SparseMat::ptr+0x00975a8b

5cfd056 opencv_core420d!cv::SparseMat::ptr+0x0097598c

5cfd661 opencv_core420d!cv::SparseMat::ptr+0x00975f97

5cf603b opencv_core420d!cv::SparseMat::ptr+0x0096e971

5d2ca80 opencv_core420d!cv::SparseMat::ptr+0x009a53b6

5d259a2 opencv_core420d!cv::SparseMat::ptr+0x0099e2d8

5afe90b opencv_core420d!cv::SparseMat::ptr+0x00777241

5afecb5 opencv_core420d!cv::SparseMat::ptr+0x007775eb

5afe8b3 opencv_core420d!cv::SparseMat::ptr+0x007771e9

5986f2d opencv_core420d!cv::SparseMat::ptr+0x005ff863

622c59df ucrtbased!_initterm+0x0000003f

5dc17c7 opencv_core420d!cv::SparseMat::ptr+0x00a3a0fd

5dc1689 opencv_core420d!cv::SparseMat::ptr+0x00a39fbf

5dc1a73 opencv_core420d!cv::SparseMat::ptr+0x00a3a3a9

5dc1c5f opencv_core420d!cv::SparseMat::ptr+0x00a3a595

77e31d36 ntdll!LdrxCallInitRoutine+0x00000016

77df5558 ntdll!LdrpCallInitRoutine+0x00000051

77e03edf ntdll!LdrpInitializeNode+0x00000133

77e04786 ntdll!LdrpInitializeGraphRecurse+0x0000005d

3.What is the problem? How to deal with it?

Issue 2:
System information (version)

OS: Ubuntu 18.04 bionic

Kernel: x86_64 Linux 4.18.8-041808-generic

Uptime: 26m

Packages: 3341

Shell: bash 4.4.19

Resolution: 3840x1080

DE: Budgie

WM: BudgieWM

WM Theme: Adwaita

GTK Theme: Adwaita [GTK2/3]

Icon Theme: Adwaita

Font: Ubuntu 11

CPU: Intel Core i7-8750H @ 12x 4.1GHz [41.0°C]

GPU: GeForce GTX 1070 with Max-Q Design

RAM: 3785MiB / 32021MiB

currently installed opencv 4.0.0 alpha i want to upgrade to 4.0.1

dev tools eclipse

Detailed description

befor proceding to

make

i did the folowing:

tc@tcx:/datadisk/tcx_dev/opencv/opencv/build$ sudo cmake -D CMAKE_BUILD_TYPE=RELEASE \
> -D CMAKE_INSTALL_PREFIX=$cwd/installation/OpenCV-master \
> -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 \
> -D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules \
> -D BUILD_EXAMPLES=ON ..
-- Looking for ccache - not found
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/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/lib/x86_64-linux-gnu/libz.so (found version "1.2.11")
-- found Intel IPP (ICV version): 2019.0.0 [2019.0.0 Gold]
-- at: /datadisk/tcx_dev/opencv/opencv/build/3rdparty/ippicv/ippicv_lnx/icv
-- found Intel IPP Integration Wrappers sources: 2019.0.0
-- at: /datadisk/tcx_dev/opencv/opencv/build/3rdparty/ippicv/ippicv_lnx/iw
-- 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)
-- A library with BLAS API found.
-- A library with LAPACK API found.
-- Found apache ant: /usr/bin/ant (1.10.3)
-- Could NOT find Flake8 (missing: FLAKE8_EXECUTABLE)
-- VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file
-- OpenCV Python: during development append to PYTHONPATH: /datadisk/tcx_dev/opencv/opencv/build/python_loader
-- Caffe: NO
-- Protobuf: NO
-- Glog: NO
-- freetype2: YES
-- harfbuzz: YES
-- HDF5: Using hdf5 compiler wrapper to determine C configuration
-- 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.
-- 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
-- HDF5: Using hdf5 compiler wrapper to determine C configuration
-- freetype2: YES
-- harfbuzz: YES
-- Checking for modules 'tesseract;lept'
-- No package 'tesseract' found
-- No package 'lept' found
-- Tesseract: NO
-- Pylint: registered 168 targets. Build 'check_pylint' target to run checks ("cmake --build . --target check_pylint" or "make check_pylint")
CMake Warning at cmake/OpenCVGenSetupVars.cmake:54 (message):
CONFIGURATION IS NOT SUPPORTED: validate setupvars script in install
directory
Call Stack (most recent call first):
CMakeLists.txt:1056 (include)

--
-- General configuration for OpenCV 4.0.1-dev =====================================
-- Version control: 4.0.1-248-g8bde6aea4
--
-- Extra modules:
-- Location (extra): /datadisk/tcx_dev/opencv/opencv_contrib/modules
-- Version control (extra): 4.0.1-35-gca7cb77a
--
-- Platform:
-- Timestamp: 2019-02-25T09:46:43Z
-- Host: Linux 4.18.8-041808-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 (7 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 (18 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.3.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 -Wimplicit-fallthrough=3 -Wno-strict-overflow -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 -Wimplicit-fallthrough=3 -Wno-strict-overflow -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 -Wimplicit-fallthrough=3 -Wno-strict-overflow -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 -Wimplicit-fallthrough=3 -Wno-strict-overflow -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 /usr/lib/x86_64-linux-gnu/libGL.so /usr/lib/x86_64-linux-gnu/libGLU.so
-- 3rdparty dependencies:
--
-- OpenCV modules:
-- To be built: aruco bgsegm bioinspired calib3d ccalib core cvv datasets dnn dnn_objdetect dpm face features2d flann freetype fuzzy gapi hdf hfs highgui img_hash imgcodecs imgproc java java_bindings_generator line_descriptor ml objdetect optflow phase_unwrapping photo plot python3 python_bindings_generator quality reg rgbd saliency shape stereo stitching structured_light superres surface_matching text tracking ts video videoio videostab xfeatures2d ximgproc xobjdetect xphoto
-- Disabled: world
-- Disabled by dependency: -
-- Unavailable: cnn_3dobj cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev js matlab ovis python2 sfm viz
-- Applications: tests perf_tests examples apps
-- Documentation: NO
-- Non-free algorithms: NO
--
-- GUI:
-- QT: YES (ver 5.9.6)
-- QT OpenGL support: YES (Qt5::OpenGL 5.9.6)
-- GTK+: NO
-- OpenGL support: YES (/usr/lib/x86_64-linux-gnu/libGL.so /usr/lib/x86_64-linux-gnu/libGLU.so)
-- VTK support: NO
--
-- Media I/O:
-- ZLib: /usr/lib/x86_64-linux-gnu/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 (57.107.100)
-- avformat: YES (57.83.100)
-- avutil: YES (55.78.100)
-- swscale: YES (4.8.100)
-- avresample: NO
-- GStreamer: NO
-- 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: /datadisk/tcx_dev/opencv/opencv/build/3rdparty/ippicv/ippicv_lnx/icv
-- Intel IPP IW: sources (2019.0.0)
-- at: /datadisk/tcx_dev/opencv/opencv/build/3rdparty/ippicv/ippicv_lnx/iw
-- Lapack: NO
-- Eigen: NO
-- Custom HAL: NO
-- Protobuf: build (3.5.1)
--
-- OpenCL: YES (no extra features)
-- Include path: /datadisk/tcx_dev/opencv/opencv/3rdparty/include/opencl/1.2
-- Link libraries: Dynamic load
--
-- Python 3:
-- Interpreter: /datadisk/tcx_dev/anaconda/[/datadisk/tcx_dev/anaconda/install_dir]/bin/python3 (ver 3.6.6)
-- Libraries: /usr/lib/x86_64-linux-gnu/libpython3.6m.so (ver 3.6.6)
-- numpy: /datadisk/tcx_dev/anaconda/[/datadisk/tcx_dev/anaconda/install_dir]/lib/python3.6/site-packages/numpy/core/include (ver 1.15.4)
-- install path: /datadisk/tcx_dev/opencv/OpenCV--py3/lib/python3.5/site-packages
--
-- Python (for build): /usr/bin/python2.7
-- Pylint: /datadisk/tcx_dev/anaconda/[/datadisk/tcx_dev/anaconda/install_dir]/bin/pylint (ver: 3.6.6, checks: 168)
--
-- Java:
-- ant: /usr/bin/ant (ver 1.10.3)
-- JNI: /usr/lib/jvm/java-8-openjdk-amd64/include /usr/lib/jvm/java-8-openjdk-amd64/include/linux /usr/lib/jvm/java-8-openjdk-amd64/include
-- Java wrappers: YES
-- Java tests: YES
--
-- Install to: /datadisk/tcx_dev/opencv/installation/OpenCV-master
-- -----------------------------------------------------------------
--
-- Configuring done
-- Generating done
-- Build files have been written to: /datadisk/tcx_dev/opencv/opencv/build

when i procede with make i get the folowing error:

tc@tcx:/datadisk/tcx_dev/opencv/opencv/build$ make -j10
[ 41%] Built target ittnotify
[ 41%] Built target quirc
[ 41%] Built target opencv_core_pch_dephelp
[ 41%] Built target opencv_test_core_pch_dephelp
[ 41%] Built target ippiw
[ 41%] Built target ade
[ 41%] Built target libjasper
[ 41%] Built target libwebp
[ 41%] Built target IlmImf
[ 41%] Built target opencv_imgcodecs_pch_dephelp
[ 41%] Built target opencv_videoio_pch_dephelp
[ 41%] Built target opencv_imgproc_pch_dephelp
[ 41%] Built target opencv_highgui_pch_dephelp
[ 41%] Built target opencv_ts_pch_dephelp
[ 41%] Built target pch_Generate_opencv_test_core
[ 41%] Built target opencv_perf_core_pch_dephelp
[ 41%] Built target libprotobuf
[ 41%] Built target opencv_flann_pch_dephelp
[ 41%] Built target opencv_test_flann_pch_dephelp
[ 41%] Built target opencv_hdf_pch_dephelp
[ 41%] Built target opencv_test_hdf_pch_dephelp
[ 41%] Built target opencv_test_imgproc_pch_dephelp
[ 41%] Built target opencv_perf_imgproc_pch_dephelp
[ 41%] Built target opencv_test_ml_pch_dephelp
[ 41%] Built target opencv_ml_pch_dephelp
[ 41%] Built target opencv_test_phase_unwrapping_pch_dephelp
[ 41%] Built target opencv_phase_unwrapping_pch_dephelp
[ 41%] Built target opencv_test_photo_pch_dephelp
[ 41%] Built target opencv_quality_pch_dephelp
[ 41%] Built target opencv_perf_photo_pch_dephelp
[ 41%] Built target opencv_photo_pch_dephelp
[ 41%] Built target opencv_test_quality_pch_dephelp
[ 41%] Built target opencv_plot_pch_dephelp
[ 41%] Built target opencv_test_reg_pch_dephelp
[ 41%] Built target opencv_reg_pch_dephelp
[ 41%] Built target opencv_perf_reg_pch_dephelp
[ 41%] Built target opencv_surface_matching_pch_dephelp
[ 41%] Built target opencv_perf_xphoto_pch_dephelp
[ 41%] Built target opencv_test_dnn_pch_dephelp
[ 41%] Built target opencv_dnn_pch_dephelp
[ 41%] Built target opencv_test_xphoto_pch_dephelp
[ 41%] Built target opencv_perf_dnn_pch_dephelp
[ 41%] Built target opencv_freetype_pch_dephelp
[ 41%] Built target opencv_gapi_pch_dephelp
[ 41%] Built target opencv_fuzzy_pch_dephelp
[ 41%] Built target opencv_test_fuzzy_pch_dephelp
[ 41%] Built target opencv_test_gapi_pch_dephelp
[ 41%] Built target opencv_perf_gapi_pch_dephelp
[ 41%] Built target opencv_img_hash_pch_dephelp
[ 41%] Built target opencv_test_img_hash_pch_dephelp
[ 41%] Built target opencv_test_imgcodecs_pch_dephelp
[ 41%] Built target opencv_hfs_pch_dephelp
[ 41%] Built target opencv_perf_imgcodecs_pch_dephelp
[ 41%] Built target opencv_perf_videoio_pch_dephelp
[ 41%] Built target opencv_test_videoio_pch_dephelp
[ 41%] Built target opencv_test_highgui_pch_dephelp
[ 41%] Built target opencv_bioinspired_pch_dephelp
[ 41%] Built target opencv_perf_bioinspired_pch_dephelp
[ 41%] Built target opencv_test_features2d_pch_dephelp
[ 41%] Built target opencv_dnn_objdetect_pch_dephelp
[ 41%] Built target opencv_test_bioinspired_pch_dephelp
[ 41%] Built target opencv_features2d_pch_dephelp
[ 41%] Built target opencv_perf_features2d_pch_dephelp
[ 41%] Built target opencv_test_line_descriptor_pch_dephelp
[ 41%] Built target opencv_perf_line_descriptor_pch_dephelp
[ 41%] Built target opencv_line_descriptor_pch_dephelp
[ 41%] Built target opencv_saliency_pch_dephelp
[ 41%] Built target opencv_test_saliency_pch_dephelp
[ 41%] Built target opencv_test_text_pch_dephelp
[ 41%] Built target opencv_text_pch_dephelp
[ 41%] Built target opencv_calib3d_pch_dephelp
[ 41%] Built target opencv_perf_calib3d_pch_dephelp
[ 41%] Built target opencv_test_calib3d_pch_dephelp
[ 41%] Automatic MOC for target opencv_test_cvv_pch_dephelp
[ 41%] Built target opencv_ccalib_pch_dephelp
[ 41%] Built target opencv_test_objdetect_pch_dephelp
[ 41%] Built target opencv_objdetect_pch_dephelp
[ 41%] Built target opencv_test_rgbd_pch_dephelp
[ 41%] Built target opencv_perf_objdetect_pch_dephelp
[ 41%] Built target opencv_rgbd_pch_dephelp
[ 41%] Built target opencv_test_shape_pch_dephelp
[ 41%] Built target opencv_shape_pch_dephelp
[ 41%] Built target opencv_structured_light_pch_dephelp
[ 41%] Built target opencv_test_cvv_pch_dephelp_autogen
[ 41%] Built target opencv_test_structured_light_pch_dephelp
[ 41%] Built target opencv_test_video_pch_dephelp
[ 41%] Built target opencv_video_pch_dephelp
[ 41%] Built target opencv_perf_video_pch_dephelp
[ 41%] Built target opencv_test_videostab_pch_dephelp
[ 41%] Built target opencv_videostab_pch_dephelp
[ 41%] Built target opencv_xfeatures2d_pch_dephelp
[ 41%] Built target opencv_test_xfeatures2d_pch_dephelp
[ 41%] Built target opencv_ximgproc_pch_dephelp
[ 41%] Built target opencv_perf_xfeatures2d_pch_dephelp
[ 41%] Built target opencv_test_ximgproc_pch_dephelp
[ 41%] Built target opencv_perf_ximgproc_pch_dephelp
[ 41%] Built target opencv_xobjdetect_pch_dephelp
[ 41%] Built target opencv_test_bgsegm_pch_dephelp
[ 41%] Built target opencv_aruco_pch_dephelp
[ 41%] Built target opencv_test_aruco_pch_dephelp
[ 41%] Built target opencv_dpm_pch_dephelp
[ 41%] Built target opencv_test_face_pch_dephelp
[ 41%] Built target opencv_bgsegm_pch_dephelp
[ 41%] Built target opencv_face_pch_dephelp
[ 41%] Built target opencv_test_optflow_pch_dephelp
[ 41%] Built target opencv_optflow_pch_dephelp
[ 41%] Built target opencv_perf_optflow_pch_dephelp
[ 41%] Built target opencv_test_stitching_pch_dephelp
[ 41%] Built target opencv_perf_stitching_pch_dephelp
[ 41%] Built target opencv_stitching_pch_dephelp
[ 41%] Built target opencv_test_superres_pch_dephelp
[ 41%] Built target opencv_perf_superres_pch_dephelp
[ 41%] Built target opencv_tracking_pch_dephelp
[ 41%] Built target opencv_superres_pch_dephelp
[ 41%] Built target opencv_perf_tracking_pch_dephelp
[ 41%] Built target opencv_test_tracking_pch_dephelp
[ 41%] Built target opencv_stereo_pch_dephelp
[ 41%] Generate files for Java bindings
[ 41%] Built target pch_Generate_opencv_ts
[ 41%] Built target opencv_test_stereo_pch_dephelp
[ 41%] Built target opencv_perf_stereo_pch_dephelp
[ 41%] Built target pch_Generate_opencv_videoio
[ 41%] Built target pch_Generate_opencv_core
[ 41%] Built target gen_opencv_python_source
[ 41%] Built target pch_Generate_opencv_imgproc
[ 41%] Built target pch_Generate_opencv_imgcodecs
[ 41%] Built target pch_Generate_opencv_highgui
[ 41%] Built target pch_Generate_opencv_test_flann
[ 41%] Built target pch_Generate_opencv_flann
[ 41%] Built target pch_Generate_opencv_perf_core
JAVA: Processing OpenCV modules: 25
[ 41%] Built target pch_Generate_opencv_perf_imgproc
[ 41%] Built target pch_Generate_opencv_hdf
[ 41%] Built target pch_Generate_opencv_test_hdf
[ 41%] Built target pch_Generate_opencv_test_imgproc
[ 41%] Built target pch_Generate_opencv_ml
[ 41%] Built target pch_Generate_opencv_test_ml
[ 41%] Built target pch_Generate_opencv_test_phase_unwrapping
[ 41%] Built target pch_Generate_opencv_test_photo
[ 41%] Built target pch_Generate_opencv_phase_unwrapping
[ 41%] Built target pch_Generate_opencv_quality
[ 41%] Built target pch_Generate_opencv_plot
[ 41%] Built target pch_Generate_opencv_photo
[ 41%] Built target pch_Generate_opencv_perf_photo
[ 41%] Built target pch_Generate_opencv_test_reg
[ 41%] Built target pch_Generate_opencv_test_quality
[ 41%] Built target pch_Generate_opencv_perf_reg
[ 41%] Built target pch_Generate_opencv_perf_xphoto
[ 41%] Built target pch_Generate_opencv_test_dnn
[ 41%] Built target pch_Generate_opencv_reg
[ 41%] Built target pch_Generate_opencv_dnn
[ 41%] Built target pch_Generate_opencv_test_xphoto
[ 41%] Built target pch_Generate_opencv_surface_matching
[ 41%] Built target pch_Generate_opencv_perf_dnn
[ 41%] Built target pch_Generate_opencv_freetype
[ 41%] Built target pch_Generate_opencv_fuzzy
[ 41%] Built target pch_Generate_opencv_test_gapi
[ 41%] Built target pch_Generate_opencv_gapi
[ 41%] Built target pch_Generate_opencv_test_img_hash
[ 41%] Built target pch_Generate_opencv_test_fuzzy
[ 41%] Built target pch_Generate_opencv_perf_gapi
[ 41%] Built target pch_Generate_opencv_hfs
[ 41%] Built target pch_Generate_opencv_img_hash
[ 41%] Built target pch_Generate_opencv_test_imgcodecs
[ 41%] Built target pch_Generate_opencv_perf_imgcodecs
duplicated: CLASS cv::.Algorithm :
[ 41%] Built target pch_Generate_opencv_bioinspired
[ 41%] Built target pch_Generate_opencv_test_videoio
[ 41%] Built target pch_Generate_opencv_perf_videoio
[ 41%] Built target pch_Generate_opencv_test_highgui
[ 41%] Built target pch_Generate_opencv_test_bioinspired
[ 41%] Built target pch_Generate_opencv_perf_bioinspired
[ 41%] Built target pch_Generate_opencv_dnn_objdetect
[ 41%] Built target pch_Generate_opencv_features2d
[ 41%] Built target pch_Generate_opencv_perf_features2d
[ 41%] Built target pch_Generate_opencv_perf_line_descriptor
[ 41%] Built target pch_Generate_opencv_test_features2d
[ 41%] Built target pch_Generate_opencv_test_line_descriptor
[ 41%] Built target pch_Generate_opencv_line_descriptor
[ 41%] Built target pch_Generate_opencv_saliency
[ 41%] Built target pch_Generate_opencv_test_saliency
[ 41%] Built target pch_Generate_opencv_text
[ 41%] Built target pch_Generate_opencv_test_text
[ 41%] Built target pch_Generate_opencv_calib3d
[ 41%] Built target pch_Generate_opencv_perf_calib3d
[ 41%] Built target pch_Generate_opencv_test_calib3d
[ 41%] Built target opencv_test_cvv_pch_dephelp
[ 41%] Built target pch_Generate_opencv_ccalib
[ 41%] Built target pch_Generate_opencv_objdetect
[ 41%] Built target pch_Generate_opencv_test_objdetect
[ 41%] Built target pch_Generate_opencv_perf_objdetect
[ 41%] Built target pch_Generate_opencv_test_rgbd
[ 41%] Built target pch_Generate_opencv_rgbd
[ 41%] Built target pch_Generate_opencv_test_shape
[ 41%] Built target pch_Generate_opencv_shape
[ 41%] Built target pch_Generate_opencv_structured_light
[ 41%] Built target pch_Generate_opencv_test_video
[ 41%] Built target pch_Generate_opencv_test_structured_light
[ 41%] Built target pch_Generate_opencv_video
[ 41%] Built target pch_Generate_opencv_perf_video
[ 41%] Built target pch_Generate_opencv_videostab
[ 41%] Built target pch_Generate_opencv_test_videostab
[ 41%] Built target pch_Generate_opencv_test_xfeatures2d
[ 41%] Built target pch_Generate_opencv_test_ximgproc
[ 41%] Built target pch_Generate_opencv_perf_xfeatures2d
[ 41%] Built target pch_Generate_opencv_xfeatures2d
[ 41%] Built target pch_Generate_opencv_ximgproc
[ 41%] Built target pch_Generate_opencv_perf_ximgproc
[ 41%] Built target pch_Generate_opencv_xobjdetect
[ 41%] Built target pch_Generate_opencv_aruco
[ 41%] Built target pch_Generate_opencv_test_aruco
[ 41%] Built target pch_Generate_opencv_bgsegm
[ 41%] Built target pch_Generate_opencv_test_bgsegm
[ 41%] Built target pch_Generate_opencv_face
[ 41%] Built target pch_Generate_opencv_test_face
[ 41%] Built target pch_Generate_opencv_dpm
[ 41%] Built target pch_Generate_opencv_optflow
[ 41%] Built target pch_Generate_opencv_test_optflow
[ 41%] Built target pch_Generate_opencv_perf_optflow
[ 41%] Built target pch_Generate_opencv_test_stitching
[ 41%] Built target pch_Generate_opencv_stitching
[ 41%] Built target pch_Generate_opencv_perf_stitching
[ 41%] Built target pch_Generate_opencv_perf_superres
[ 41%] Built target pch_Generate_opencv_superres
[ 41%] Built target pch_Generate_opencv_test_tracking
[ 41%] Built target pch_Generate_opencv_perf_tracking
[ 41%] Built target pch_Generate_opencv_test_superres
[ 41%] Built target pch_Generate_opencv_tracking
[ 41%] Built target pch_Generate_opencv_stereo
[ 41%] Built target pch_Generate_opencv_test_stereo
[ 41%] Built target pch_Generate_opencv_perf_stereo
[ 41%] Built target pch_Generate_opencv_test_cvv
SKIP:void cv::Algorithm::read(FileNode fn)	due to ARG type FileNode/I
SKIP:void cv::Algorithm::write(Ptr_FileStorage fs, String name = String())	due to ARG type Ptr_FileStorage/I
Scanning dependencies of target opencv_core
[ 41%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/system.cpp.o
[ 41%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/utils/datafile.cpp.o
SKIP:void cv::dnn::Net::forward(vector_vector_Mat& outputBlobs, vector_String outBlobNames)	due to ARG type vector_vector_Mat/O
SKIP:void cv::dnn::Net::getLayersShapes(MatShape netInputShape, vector_int& layersIds, vector_vector_MatShape& inLayersShapes, vector_vector_MatShape& outLayersShapes)	due to ARG type vector_vector_MatShape/O
SKIP:void cv::dnn::Net::getLayersShapes(vector_MatShape netInputShapes, vector_int& layersIds, vector_vector_MatShape& inLayersShapes, vector_vector_MatShape& outLayersShapes)	due to ARG type vector_vector_MatShape/O
SKIP:vector_VideoCaptureAPIs cv::videoio_registry::getBackends()	due to RET type vector_VideoCaptureAPIs
SKIP:vector_VideoCaptureAPIs cv::videoio_registry::getCameraBackends()	due to RET type vector_VideoCaptureAPIs
SKIP:vector_VideoCaptureAPIs cv::videoio_registry::getStreamBackends()	due to RET type vector_VideoCaptureAPIs
SKIP:vector_VideoCaptureAPIs cv::videoio_registry::getWriterBackends()	due to RET type vector_VideoCaptureAPIs
SKIP:cv::BOWImgDescriptorExtractor::BOWImgDescriptorExtractor(Ptr_DescriptorExtractor dextractor, Ptr_DescriptorMatcher dmatcher)	due to ARG type Ptr_DescriptorExtractor/I
SKIP:void cv::Feature2D::read(FileNode arg1)	due to ARG type FileNode/I
SKIP:void cv::Feature2D::write(Ptr_FileStorage fs, String name = String())	due to ARG type Ptr_FileStorage/I
SKIP:void cv::DescriptorMatcher::read(FileNode arg1)	due to ARG type FileNode/I
SKIP:void cv::DescriptorMatcher::write(Ptr_FileStorage fs, String name = String())	due to ARG type Ptr_FileStorage/I
SKIP:uchar Params::blobColor	due to RET type uchar
SKIP:void Params::blobColor	due to ARG type uchar/I
duplicated: CLASS cv.text::OCRBeamSearchDecoder.ClassifierCallback :
SKIP:Ptr_ERFilter cv::text::createERFilterNM1(Ptr_ERFilter_Callback cb, int thresholdDelta = 1, float minArea = (float)0.00025, float maxArea = (float)0.13, float minProbability = (float)0.4, bool nonMaxSuppression = true, float minProbabilityDiff = (float)0.1)	due to ARG type Ptr_ERFilter_Callback/I
SKIP:Ptr_ERFilter cv::text::createERFilterNM2(Ptr_ERFilter_Callback cb, float minProbability = (float)0.3)	due to ARG type Ptr_ERFilter_Callback/I
SKIP:Ptr_ERFilter_Callback cv::text::loadClassifierNM1(String filename)	due to RET type Ptr_ERFilter_Callback
SKIP:Ptr_ERFilter_Callback cv::text::loadClassifierNM2(String filename)	due to RET type Ptr_ERFilter_Callback
SKIP:Ptr_OCRBeamSearchDecoder_ClassifierCallback cv::text::loadOCRBeamSearchClassifierCNN(String filename)	due to RET type Ptr_OCRBeamSearchDecoder_ClassifierCallback
SKIP:Ptr_OCRHMMDecoder_ClassifierCallback cv::text::loadOCRHMMClassifier(String filename, int classifier)	due to RET type Ptr_OCRHMMDecoder_ClassifierCallback
SKIP:Ptr_OCRHMMDecoder_ClassifierCallback cv::text::loadOCRHMMClassifierCNN(String filename)	due to RET type Ptr_OCRHMMDecoder_ClassifierCallback
SKIP:Ptr_OCRHMMDecoder_ClassifierCallback cv::text::loadOCRHMMClassifierNM(String filename)	due to RET type Ptr_OCRHMMDecoder_ClassifierCallback
SKIP:static Ptr_OCRBeamSearchDecoder cv::text::OCRBeamSearchDecoder::create(Ptr_OCRBeamSearchDecoder_ClassifierCallback classifier, String vocabulary, Mat transition_probabilities_table, Mat emission_probabilities_table, int mode = OCR_DECODER_VITERBI, int beam_size = 500)	due to ARG type Ptr_OCRBeamSearchDecoder_ClassifierCallback/I
SKIP:static Ptr_OCRHMMDecoder cv::text::OCRHMMDecoder::create(Ptr_OCRHMMDecoder_ClassifierCallback classifier, String vocabulary, Mat transition_probabilities_table, Mat emission_probabilities_table, int mode = OCR_DECODER_VITERBI)	due to ARG type Ptr_OCRHMMDecoder_ClassifierCallback/I
duplicated: CONST CvLevMarq_DONE=0
duplicated: CONST CvLevMarq_STARTED=1
duplicated: CONST CvLevMarq_CALC_J=2
duplicated: CONST CvLevMarq_CHECK_ERR=3
SKIP:bool cv::findCirclesGrid(Mat image, Size patternSize, Mat& centers, int flags, Ptr_FeatureDetector blobDetector, CirclesGridFinderParameters parameters)	due to ARG type Ptr_FeatureDetector/I
SKIP:string cv::QRCodeDetector::decode(Mat img, Mat points, Mat& straight_qrcode = Mat())	due to RET type string
SKIP:string cv::QRCodeDetector::detectAndDecode(Mat img, Mat& points = Mat(), Mat& straight_qrcode = Mat())	due to RET type string
SKIP:bool cv::CascadeClassifier::read(FileNode node)	due to ARG type FileNode/I
duplicated: CLASS cv.structured_light::SinusoidalPattern.Params :
SKIP:bool cv::structured_light::StructuredLightPattern::decode(vector_vector_Mat patternImages, Mat& disparityMap, vector_Mat blackImages = vector_Mat(), vector_Mat whiteImages = vector_Mat(), int flags = DECODE_3D_UNDERWORLD)	due to ARG type vector_vector_Mat/I
SKIP:Vec4i cv::ximgproc::HoughPoint2Line(Point houghPoint, Mat srcImgInfo, int angleRange = ARO_315_135, int makeSkew = HDO_DESKEW, int rules = RO_IGNORE_BORDERS)	due to RET type Vec4i
[ 41%] Linking CXX shared library ../../lib/libopencv_core.so
SKIP:vector_vector_int CharucoBoard::nearestMarkerIdx	due to RET type vector_vector_int
SKIP:vector_vector_int CharucoBoard::nearestMarkerCorners	due to RET type vector_vector_int
SKIP:vector_pair_int_and_double cv::face::StandardCollector::getResults(bool sorted = false)	due to RET type vector_pair_int_and_double
Generated files: 357 (updated 357)
[ 41%] Built target gen_opencv_java_source
[ 41%] Copy Java(JAR) source files
[ 41%] Copying res/drawable/icon.png
[ 41%] Copying res/drawable/chessboard.jpg
[ 41%] Copying res/drawable/lena.png
[ 41%] Copying res/values/strings.xml
[ 41%] Copying res/raw/lbpcascade_frontalface.xml
[ 41%] Copying res/layout/main.xml
[ 41%] Copying src/org/opencv/test/utils/ConvertersTest.java
COPYFILES: ... 1 entries (JAVA_SRC_COPY)
Error copying file (if different) from "/datadisk/tcx_dev/opencv/opencv/modules/java/test/pure_test/../common_test/res/drawable/lena.png" to "/datadisk/tcx_dev/opencv/opencv/build/java_test/res/drawable/lena.png".
Error copying file (if different) from "/datadisk/tcx_dev/opencv/opencv/modules/java/test/pure_test/../common_test/res/values/strings.xml" to "/datadisk/tcx_dev/opencv/opencv/build/java_test/res/values/strings.xml".
COPYFILES: ... directory '.../gen/java' with 239 files
COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/aruco/Aruco.java' ...
CMake Error at /datadisk/tcx_dev/opencv/opencv/cmake/copy_files.cmake:42 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
/datadisk/tcx_dev/opencv/opencv/cmake/copy_files.cmake:88 (copy_file_)

modules/java/test/pure_test/CMakeFiles/opencv_java_test_source_copy.dir/build.make:87: recipe for target 'java_test/res/drawable/lena.png' failed
make[2]: *** [java_test/res/drawable/lena.png] Error 1
make[2]: *** Waiting for unfinished jobs....
modules/java/test/pure_test/CMakeFiles/opencv_java_test_source_copy.dir/build.make:99: recipe for target 'java_test/res/values/strings.xml' failed
make[2]: *** [java_test/res/values/strings.xml] Error 1
Error copying file (if different) from "/datadisk/tcx_dev/opencv/opencv/modules/java/test/pure_test/../common_test/res/drawable/icon.png" to "/datadisk/tcx_dev/opencv/opencv/build/java_test/res/drawable/icon.png".
modules/java/jar/CMakeFiles/opencv_java_jar_source_copy.dir/build.make:61: recipe for target 'CMakeFiles/dephelper/opencv_java_jar_source_copy' failed
make[2]: *** [CMakeFiles/dephelper/opencv_java_jar_source_copy] Error 1
modules/java/test/pure_test/CMakeFiles/opencv_java_test_source_copy.dir/build.make:83: recipe for target 'java_test/res/drawable/icon.png' failed
make[2]: *** [java_test/res/drawable/icon.png] Error 1
CMakeFiles/Makefile2:25471: recipe for target 'modules/java/jar/CMakeFiles/opencv_java_jar_source_copy.dir/all' failed
make[1]: *** [modules/java/jar/CMakeFiles/opencv_java_jar_source_copy.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Error copying file (if different) from "/datadisk/tcx_dev/opencv/opencv/modules/java/test/pure_test/../common_test/res/drawable/chessboard.jpg" to "/datadisk/tcx_dev/opencv/opencv/build/java_test/res/drawable/chessboard.jpg".
Error copying file (if different) from "Error copying file (if different) from "/datadisk/tcx_dev/opencv/opencv/modules/java/test/pure_test/../common_test/res/raw/lbpcascade_frontalface.xml/datadisk/tcx_dev/opencv/opencv/modules/java/test/pure_test/../common_test/res/layout/main.xml" to "" to "/datadisk/tcx_dev/opencv/opencv/build/java_test/res/raw/lbpcascade_frontalface.xml/datadisk/tcx_dev/opencv/opencv/build/java_test/res/layout/main.xml".
".
modules/java/test/pure_test/CMakeFiles/opencv_java_test_source_copy.dir/build.make:79: recipe for target 'java_test/res/drawable/chessboard.jpg' failed
make[2]: *** [java_test/res/drawable/chessboard.jpg] Error 1
modules/java/test/pure_test/CMakeFiles/opencv_java_test_source_copy.dir/build.make:95: recipe for target 'java_test/res/raw/lbpcascade_frontalface.xml' failed
make[2]: *** [java_test/res/raw/lbpcascade_frontalface.xml] Error 1
modules/java/test/pure_test/CMakeFiles/opencv_java_test_source_copy.dir/build.make:91: recipe for target 'java_test/res/layout/main.xml' failed
make[2]: *** [java_test/res/layout/main.xml] Error 1
Error copying file (if different) from "/datadisk/tcx_dev/opencv/opencv/modules/java/test/pure_test/../common_test/src/org/opencv/test/utils/ConvertersTest.java" to "/datadisk/tcx_dev/opencv/opencv/build/java_test/src/org/opencv/test/utils/ConvertersTest.java".
modules/java/test/pure_test/CMakeFiles/opencv_java_test_source_copy.dir/build.make:103: recipe for target 'java_test/src/org/opencv/test/utils/ConvertersTest.java' failed
make[2]: *** [java_test/src/org/opencv/test/utils/ConvertersTest.java] Error 1
CMakeFiles/Makefile2:25594: recipe for target 'modules/java/test/pure_test/CMakeFiles/opencv_java_test_source_copy.dir/all' failed
make[1]: *** [modules/java/test/pure_test/CMakeFiles/opencv_java_test_source_copy.dir/all] Error 2
[ 41%] Built target opencv_core
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2

what part during the installation procedure did i missed or did wrong?

Steps to reproduce