CMake error trying to add opencv to embarcadero C++ builder 10.3

I want to add the library opencv in the C++ builder 10.3 of embarcadero using CMake and ninja. When I use the cmake command from the site: Using CMake with C++ Builder - RAD Studio
After using that command in the RAD command prompt and the CMakeLists.txt from opencv, I get the following CMake:

C:\opencv-4.x\build>cmake -DCMAKE_C_COMPILER=bcc32x.exe -DCMAKE_CXX_COMPILER=bcc32x.exe -G Ninja C:\opencv-4.x
-- 'Release' build type is used by default. Use CMAKE_BUILD_TYPE to specify build type (Release or Debug)
-- The CXX compiler identification is Embarcadero 7.40.36556
-- The C compiler identification is Embarcadero 7.40.36556
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Embarcadero/Studio/20.0/bin/bcc32x.exe - skipped
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Embarcadero/Studio/20.0/bin/bcc32x.exe - skipped
-- ocv_init_download: OpenCV source tree is not fetched as git repository. 3rdparty resources will be downloaded from github.com by default.
-- Detected processor: AMD64
-- sizeof(void) = 4 on 64 bit processor. Assume 32-bit compilation mode
-- Performing Test HAVE_CXX11 (check file: cmake/checks/cxx11.cpp)
-- Performing Test HAVE_CXX11 - Success
-- Can't detect runtime and/or arch
-- Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) (Required is at least version "2.7")
-- Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) (Required is at least version "3.2")
-- Performing Test HAVE_CXX_FSIGNED_CHAR
-- Performing Test HAVE_CXX_FSIGNED_CHAR - Success
-- Performing Test HAVE_C_FSIGNED_CHAR
-- Performing Test HAVE_C_FSIGNED_CHAR - Success
CMake Warning at cmake/OpenCVCompilerOptimizations.cmake:309 (message):
  TODO: Unsupported compiler
Call Stack (most recent call first):
  cmake/OpenCVCompilerOptions.cmake:324 (include)
  CMakeLists.txt:650 (include)


-- Performing Test HAVE_CPU_SSE_SUPPORT (check file: cmake/checks/cpu_sse.cpp)
-- Performing Test HAVE_CPU_SSE_SUPPORT - Failed
-- SSE is not supported by C++ compiler
-- Performing Test HAVE_CPU_SSE2_SUPPORT (check file: cmake/checks/cpu_sse2.cpp)
-- Performing Test HAVE_CPU_SSE2_SUPPORT - Failed
-- SSE2 is not supported by C++ compiler
-- Performing Test HAVE_CPU_SSE3_SUPPORT (check file: cmake/checks/cpu_sse3.cpp)
-- Performing Test HAVE_CPU_SSE3_SUPPORT - Failed
-- SSE3 is not supported by C++ compiler
-- Performing Test HAVE_CPU_SSSE3_SUPPORT (check file: cmake/checks/cpu_ssse3.cpp)
-- Performing Test HAVE_CPU_SSSE3_SUPPORT - Failed
-- SSSE3 is not supported by C++ compiler
-- Performing Test HAVE_CPU_SSE4_1_SUPPORT (check file: cmake/checks/cpu_sse41.cpp)
-- Performing Test HAVE_CPU_SSE4_1_SUPPORT - Failed
-- SSE4_1 is not supported by C++ compiler
-- Performing Test HAVE_CPU_POPCNT_SUPPORT (check file: cmake/checks/cpu_popcnt.cpp)
-- Performing Test HAVE_CPU_POPCNT_SUPPORT - Failed
-- POPCNT is not supported by C++ compiler
-- Performing Test HAVE_CPU_SSE4_2_SUPPORT (check file: cmake/checks/cpu_sse42.cpp)
-- Performing Test HAVE_CPU_SSE4_2_SUPPORT - Failed
-- SSE4_2 is not supported by C++ compiler
-- Performing Test HAVE_CPU_FP16_SUPPORT (check file: cmake/checks/cpu_fp16.cpp)
-- Performing Test HAVE_CPU_FP16_SUPPORT - Failed
-- FP16 is not supported by C++ compiler
-- Performing Test HAVE_CPU_AVX_SUPPORT (check file: cmake/checks/cpu_avx.cpp)
-- Performing Test HAVE_CPU_AVX_SUPPORT - Failed
-- AVX is not supported by C++ compiler
-- Optimization SSE2 is not available, skipped
-- Dispatch optimization SSE4_1 is not available, skipped
-- Dispatch optimization SSE4_2 is not available, skipped
-- Dispatch optimization AVX is not available, skipped
-- Dispatch optimization FP16 is not available, skipped
-- Performing Test HAVE_CPU_BASELINE_FLAGS
-- Performing Test HAVE_CPU_BASELINE_FLAGS - Success
-- Looking for malloc.h
-- Looking for malloc.h - found
-- Looking for _aligned_malloc
-- Looking for _aligned_malloc - found
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Searching 16 bit integer - Using unsigned short
-- Check if the system is big endian - little endian
-- Looking for fseeko
-- Looking for fseeko - found
-- Looking for unistd.h
-- Looking for unistd.h - not found
-- Check size of off64_t
-- Check size of off64_t - failed
-- libjpeg-turbo: VERSION = 2.1.3, BUILD = opencv-4.7.0-dev-libjpeg-turbo
-- Check size of size_t
-- Check size of size_t - done
-- Check size of unsigned long
-- Check size of unsigned long - done
-- Performing Test HAVE_BUILTIN_CTZL
-- Performing Test HAVE_BUILTIN_CTZL - Success
-- Looking for a ASM_NASM compiler
-- Looking for a ASM_NASM compiler - NOTFOUND
-- libjpeg-turbo(SIMD): SIMD extensions disabled: could not find NASM compiler.  Performance will suffer.
-- Looking for assert.h
-- Looking for assert.h - found
-- Looking for dlfcn.h
-- Looking for dlfcn.h - not found
-- Looking for fcntl.h
-- Looking for fcntl.h - found
-- Looking for inttypes.h
-- Looking for inttypes.h - found
-- Looking for io.h
-- Looking for io.h - found
-- Looking for limits.h
-- Looking for limits.h - found
-- Looking for memory.h
-- Looking for memory.h - found
-- Looking for search.h
-- Looking for search.h - found
-- Looking for string.h
-- Looking for string.h - found
-- Looking for strings.h
-- Looking for strings.h - not found
-- Looking for sys/time.h
-- Looking for sys/time.h - not found
-- Looking for unistd.h
-- Looking for unistd.h - not found
-- Performing Test C_HAS_inline
-- Performing Test C_HAS_inline - Success
-- Check size of signed short
-- Check size of signed short - done
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Check size of signed int
-- Check size of signed int - done
-- Check size of unsigned int
-- Check size of unsigned int - done
-- Check size of signed long
-- Check size of signed long - done
-- Check size of signed long long
-- Check size of signed long long - done
-- Check size of unsigned long long
-- Check size of unsigned long long - done
-- Check size of unsigned char *
-- Check size of unsigned char * - done
-- Check size of ptrdiff_t
-- Check size of ptrdiff_t - done
-- Check size of INT8
-- Check size of INT8 - failed
-- Check size of INT16
-- Check size of INT16 - failed
-- Check size of INT32
-- Check size of INT32 - failed
-- Looking for floor
-- Looking for floor - found
-- Looking for pow
-- Looking for pow - found
-- Looking for sqrt
-- Looking for sqrt - found
-- Looking for isascii
-- Looking for isascii - found
-- Looking for memset
-- Looking for memset - found
-- Looking for mmap
-- Looking for mmap - not found
-- Looking for getopt
-- Looking for getopt - not found
-- Looking for memmove
-- Looking for memmove - found
-- Looking for setmode
-- Looking for setmode - found
-- Looking for strcasecmp
-- Looking for strcasecmp - not found
-- Looking for strchr
-- Looking for strchr - found
-- Looking for strrchr
-- Looking for strrchr - found
-- Looking for strstr
-- Looking for strstr - found
-- Looking for strtol
-- Looking for strtol - found
-- Looking for strtol
-- Looking for strtol - found
-- Looking for strtoull
-- Looking for strtoull - found
-- Looking for lfind
-- Looking for lfind - found
-- Performing Test HAVE_SNPRINTF
-- Performing Test HAVE_SNPRINTF - Success
-- Check if the system is big endian
-- Searching 16 bit integer
-- Searching 16 bit integer - Using unsigned short
-- Check if the system is big endian - little endian
-- Performing Test HAVE_C_STD_C99
-- Performing Test HAVE_C_STD_C99 - Success
-- Could NOT find OpenJPEG (minimal suitable version: 2.0, recommended version >= 2.3.1). OpenJPEG will be built from sources
-- OpenJPEG: VERSION = 2.4.0, BUILD = opencv-4.7.0-dev-openjp2-2.4.0
-- Check if the system is big endian
-- Searching 16 bit integer
-- Searching 16 bit integer - Using unsigned short
-- Check if the system is big endian - little endian
-- Looking for stdlib.h
-- Looking for stdlib.h - found
-- Looking for stdio.h
-- Looking for stdio.h - found
-- Looking for math.h
-- Looking for math.h - found
-- Looking for float.h
-- Looking for float.h - found
-- Looking for time.h
-- Looking for time.h - found
-- Looking for stdarg.h
-- Looking for stdarg.h - found
-- Looking for ctype.h
-- Looking for ctype.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for inttypes.h
-- Looking for inttypes.h - found
-- Looking for sys/stat.h
-- Looking for sys/stat.h - found
-- Looking for include file malloc.h
-- Looking for include file malloc.h - found
-- Looking for _aligned_malloc
-- Looking for _aligned_malloc - found
-- Looking for posix_memalign
-- Looking for posix_memalign - not found
-- Looking for memalign
-- Looking for memalign - not found
-- OpenJPEG libraries will be built from sources: libopenjp2 (version "2.4.0")
-- IPPICV: Downloading ippicv_2021.8_win_ia32_20230330_general.zip from https://raw.githubusercontent.com/opencv/opencv_3rdparty/1224f78da6684df04397ac0f40c961ed37f79ccb/ippicv/ippicv_2021.8_win_ia32_20230330_general.zip
-- found Intel IPP (ICV version): 2021.8.0 [2021.8]
-- at: C:/opencv-4.x/build/3rdparty/ippicv/ippicv_win/icv
-- found Intel IPP Integration Wrappers sources: 2021.8.0
-- at: C:/opencv-4.x/build/3rdparty/ippicv/ippicv_win/iw
-- Could not find OpenBLAS include. Turning OpenBLAS_FOUND off
-- Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off
-- Looking for sgemm_
-- Looking for sgemm_ - not found
-- Found Threads: TRUE
-- Could NOT find BLAS (missing: BLAS_LIBRARIES)
-- Could NOT find LAPACK (missing: LAPACK_LIBRARIES)
    Reason given by package: LAPACK could not be found because dependency BLAS could not be found.

-- Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH)
CMake Warning at cmake/OpenCVDetectOpenCL.cmake:29 (message):
  Can't use OpenCL
Call Stack (most recent call first):
  CMakeLists.txt:815 (include)


-- VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file
-- ADE: Downloading v0.1.2a.zip from https://github.com/opencv/ade/archive/v0.1.2a.zip
-- FFMPEG: Downloading opencv_videoio_ffmpeg.dll from https://raw.githubusercontent.com/opencv/opencv_3rdparty/7dd0d4f1d6fe75f05f3d3b5e38cbc96c1a2d2809/ffmpeg/opencv_videoio_ffmpeg.dll
-- FFMPEG: Downloading opencv_videoio_ffmpeg_64.dll from https://raw.githubusercontent.com/opencv/opencv_3rdparty/7dd0d4f1d6fe75f05f3d3b5e38cbc96c1a2d2809/ffmpeg/opencv_videoio_ffmpeg_64.dll
-- FFMPEG: Downloading ffmpeg_version.cmake from https://raw.githubusercontent.com/opencv/opencv_3rdparty/7dd0d4f1d6fe75f05f3d3b5e38cbc96c1a2d2809/ffmpeg/ffmpeg_version.cmake
-- Looking for mfapi.h
-- Looking for mfapi.h - not found
-- Looking for vidcap.h
-- Looking for vidcap.h - found
-- Could not find mfapi.h. Turning HAVE_OBSENSOR OFF
-- Looking for dshow.h
-- Looking for dshow.h - found
-- Allocator metrics storage type: 'long long'
-- Excluding from source files list: <BUILD>/modules/core/test/test_intrin128.sse2.cpp
-- Excluding from source files list: <BUILD>/modules/core/test/test_intrin128.sse3.cpp
-- Excluding from source files list: <BUILD>/modules/core/test/test_intrin128.ssse3.cpp
-- Excluding from source files list: <BUILD>/modules/core/test/test_intrin128.sse4_1.cpp
-- Excluding from source files list: <BUILD>/modules/core/test/test_intrin128.sse4_2.cpp
-- Excluding from source files list: <BUILD>/modules/core/test/test_intrin128.avx.cpp
-- Excluding from source files list: <BUILD>/modules/core/test/test_intrin128.fp16.cpp
-- Excluding from source files list: <BUILD>/modules/core/test/test_intrin128.avx2.cpp
-- Excluding from source files list: <BUILD>/modules/core/test/test_intrin128.avx512_skx.cpp
-- Excluding from source files list: <BUILD>/modules/core/test/test_intrin256.avx2.cpp
-- Excluding from source files list: <BUILD>/modules/core/test/test_intrin256.avx512_skx.cpp
-- Excluding from source files list: <BUILD>/modules/core/test/test_intrin512.avx512_skx.cpp
-- Excluding from source files list: modules/imgproc/src/corner.avx.cpp
-- Excluding from source files list: modules/imgproc/src/imgwarp.avx2.cpp
-- Excluding from source files list: modules/imgproc/src/imgwarp.lasx.cpp
-- Excluding from source files list: modules/imgproc/src/imgwarp.sse4_1.cpp
-- Excluding from source files list: modules/imgproc/src/resize.avx2.cpp
-- Excluding from source files list: modules/imgproc/src/resize.lasx.cpp
-- Excluding from source files list: modules/imgproc/src/resize.sse4_1.cpp
-- Registering hook 'INIT_MODULE_SOURCES_opencv_dnn': C:/opencv-4.x/modules/dnn/cmake/hooks/INIT_MODULE_SOURCES_opencv_dnn.cmake
-- opencv_dnn: filter out ocl4dnn source code
-- opencv_dnn: filter out cuda4dnn source code
-- Excluding from source files list: <BUILD>/modules/dnn/layers/layers_common.avx.cpp
-- Excluding from source files list: <BUILD>/modules/dnn/layers/layers_common.avx2.cpp
-- Excluding from source files list: <BUILD>/modules/dnn/layers/layers_common.avx512_skx.cpp
-- Excluding from source files list: <BUILD>/modules/dnn/layers/layers_common.rvv.cpp
-- Excluding from source files list: <BUILD>/modules/dnn/layers/layers_common.lasx.cpp
-- Excluding from source files list: <BUILD>/modules/dnn/int8layers/layers_common.avx2.cpp
-- Excluding from source files list: <BUILD>/modules/dnn/int8layers/layers_common.avx512_skx.cpp
-- Excluding from source files list: <BUILD>/modules/dnn/int8layers/layers_common.lasx.cpp
-- Excluding from source files list: <BUILD>/modules/dnn/layers/cpu_kernels/conv_block.avx.cpp
-- Excluding from source files list: <BUILD>/modules/dnn/layers/cpu_kernels/conv_block.avx2.cpp
-- Excluding from source files list: <BUILD>/modules/dnn/layers/cpu_kernels/conv_depthwise.avx.cpp
-- Excluding from source files list: <BUILD>/modules/dnn/layers/cpu_kernels/conv_depthwise.avx2.cpp
-- Excluding from source files list: <BUILD>/modules/dnn/layers/cpu_kernels/conv_depthwise.rvv.cpp
-- Excluding from source files list: <BUILD>/modules/dnn/layers/cpu_kernels/conv_depthwise.lasx.cpp
-- Excluding from source files list: <BUILD>/modules/dnn/layers/cpu_kernels/conv_winograd_f63.avx.cpp
-- Excluding from source files list: <BUILD>/modules/dnn/layers/cpu_kernels/conv_winograd_f63.avx2.cpp
-- Excluding from source files list: modules/features2d/src/fast.avx2.cpp
-- imgcodecs: OpenEXR codec is disabled in runtime. Details: https://github.com/opencv/opencv/issues/21326
-- highgui: using builtin backend: WIN32UI
-- Found 'misc' Python modules from C:/opencv-4.x/modules/python/package/extra_modules
-- Found 'mat_wrapper;utils' Python modules from C:/opencv-4.x/modules/core/misc/python/package
-- Found 'gapi' Python modules from C:/opencv-4.x/modules/gapi/misc/python/package
--
-- General configuration for OpenCV 4.7.0-dev =====================================
--   Version control:               unknown
--
--   Platform:
--     Timestamp:                   2023-05-12T08:32:19Z
--     Host:                        Windows 10.0.19045 AMD64
--     CMake:                       3.19.4
--     CMake generator:             Ninja
--     CMake build tool:            C:/ninja-win/ninja.exe
--     Configuration:               Release
--
--   CPU/HW features:
--     Baseline:
--       requested:                 SSE2
--     Dispatched code generation:
--       requested:                 SSE4_1 SSE4_2 AVX FP16
--
--   C/C++:
--     Built as dynamic libs?:      YES
--     C++ standard:                11
--     C++ Compiler:                C:/Program Files (x86)/Embarcadero/Studio/20.0/bin/bcc32x.exe  (ver 7.40.36556)
--     C++ flags (Release):         -tM   -fsigned-char  -O2 -DNDEBUG
--     C++ flags (Debug):           -tM   -fsigned-char  -O0 -g
--     C Compiler:                  C:/Program Files (x86)/Embarcadero/Studio/20.0/bin/bcc32x.exe
--     C flags (Release):           -tM   -fsigned-char  -O2 -DNDEBUG
--     C flags (Debug):             -tM   -fsigned-char  -O0 -g
--     Linker flags (Release):      -L "C:/Program Files (x86)/Embarcadero/Studio/20.0/lib/win32c/release" -L "C:/Program Files (x86)/Embarcadero/Studio/20.0/lib/win32/release" -L "C:/Program Files (x86)/Embarcadero/Studio/20.0/lib/win32/release/psdk"
--     Linker flags (Debug):        -L "C:/Program Files (x86)/Embarcadero/Studio/20.0/lib/win32c/release" -L "C:/Program Files (x86)/Embarcadero/Studio/20.0/lib/win32/release" -L "C:/Program Files (x86)/Embarcadero/Studio/20.0/lib/win32/release/psdk"  -v
--     ccache:                      NO
--     Precompiled headers:         NO
--     Extra dependencies:
--     3rdparty dependencies:
--
--   OpenCV modules:
--     To be built:                 calib3d core dnn features2d flann gapi highgui imgcodecs imgproc ml objdetect photo stitching ts video videoio
--     Disabled:                    world
--     Disabled by dependency:      -
--     Unavailable:                 java python2 python3
--     Applications:                tests perf_tests apps
--     Documentation:               NO
--     Non-free algorithms:         NO
--
--   Windows RT support:            NO
--
--   GUI:                           WIN32UI
--     Win32 UI:                    YES
--     VTK support:                 NO
--
--   Media I/O:
--     ZLib:                        build (ver 1.2.13)
--     JPEG:                        build-libjpeg-turbo (ver 2.1.3-62)
--       SIMD Support Request:      YES
--       SIMD Support:              NO
--     WEBP:                        build (ver encoder: 0x020f)
--     PNG:                         build (ver 1.6.37)
--     TIFF:                        build (ver 42 - 4.2.0)
--     JPEG 2000:                   build (ver 2.4.0)
--     OpenEXR:                     build (ver 2.3.0)
--     HDR:                         YES
--     SUNRASTER:                   YES
--     PXM:                         YES
--     PFM:                         YES
--
--   Video I/O:
--     DC1394:                      NO
--     FFMPEG:                      YES (prebuilt binaries)
--       avcodec:                   YES (58.134.100)
--       avformat:                  YES (58.76.100)
--       avutil:                    YES (56.70.100)
--       swscale:                   YES (5.9.100)
--       avresample:                YES (4.0.0)
--     GStreamer:                   NO
--     DirectShow:                  YES
--     Media Foundation:            NO
--       DXVA:                      NO
--
--   Parallel framework:            none
--
--   Trace:                         YES (with Intel ITT)
--
--   Other third-party libraries:
--     Intel IPP:                   2021.8 [2021.8.0]
--            at:                   C:/opencv-4.x/build/3rdparty/ippicv/ippicv_win/icv
--     Intel IPP IW:                sources (2021.8.0)
--               at:                C:/opencv-4.x/build/3rdparty/ippicv/ippicv_win/iw
--     Lapack:                      NO
--     Eigen:                       NO
--     Custom HAL:                  NO
--     Protobuf:                    build (3.19.1)
--     Flatbuffers:                 builtin/3rdparty (23.5.9)
--
--   OpenCL:                        NO
--
--   Python (for build):            NO
--
--   Java:
--     ant:                         NO
--     JNI:                         NO
--     Java wrappers:               NO
--     Java tests:                  NO
--
--   Install to:                    C:/opencv-4.x/build/install
-- -----------------------------------------------------------------
--
-- Configuring done
-- Generating done
-- Build files have been written to: C:/opencv-4.x/build

After that I use the command ninja to finish the CMake but I get the following error:

C:\opencv-4.x\build>ninja
[1/1648] Building CXX object CMakeFiles\ade.dir\3rdparty\ade\ade-0.1.2a\sources\ade\source\alloc.cpp.obj
Embarcadero C++ 7.40 for Win32 Copyright (c) 2012-2018 Embarcadero Technologies, Inc.
3rdparty\ade\ade-0.1.2a\sources\ade\source\alloc.cpp:
[2/1648] Building CXX object CMakeFiles\ade.dir\3rdparty\ade\ade-0.1.2a\sources\ade\source\assert.cpp.obj
Embarcadero C++ 7.40 for Win32 Copyright (c) 2012-2018 Embarcadero Technologies, Inc.
3rdparty\ade\ade-0.1.2a\sources\ade\source\assert.cpp:
[3/1648] Building CXX object CMakeFiles\ade.dir\3rdparty\ade\ade-0.1.2a\sources\ade\source\memory_descriptor.cpp.obj
Embarcadero C++ 7.40 for Win32 Copyright (c) 2012-2018 Embarcadero Technologies, Inc.
3rdparty\ade\ade-0.1.2a\sources\ade\source\memory_descriptor.cpp:
[4/1648] Building CXX object CMakeFiles\ade.dir\3rdparty\ade\ade-0.1.2a\sources\ade\source\edge.cpp.obj
Embarcadero C++ 7.40 for Win32 Copyright (c) 2012-2018 Embarcadero Technologies, Inc.
3rdparty\ade\ade-0.1.2a\sources\ade\source\edge.cpp:
[5/1648] Building CXX object CMakeFiles\ade.dir\3rdparty\ade\ade-0.1.2a\sources\ade\source\graph.cpp.obj
FAILED: CMakeFiles/ade.dir/3rdparty/ade/ade-0.1.2a/sources/ade/source/graph.cpp.obj
C:\PROGRA~2\EMBARC~1\Studio\20.0\bin\bcc32x.exe -D_WIN32_WINNT=0x0601 -I3rdparty\ippicv\ippicv_win\icv\include -I3rdparty\ippicv\ippicv_win\iw\include -I. -I3rdparty\ade\ade-0.1.2a\sources\ade\include -isystem "C:\Program Files (x86)\Embarcadero\Studio\20.0\include\windows\crtl" -isystem "C:\Program Files (x86)\Embarcadero\Studio\20.0\include\windows\sdk" -isystem "C:\Program Files (x86)\Embarcadero\Studio\20.0\include\windows\rtl" -isystem "C:\Program Files (x86)\Embarcadero\Studio\20.0\include\dinkumware64" -tM   -fsigned-char  -O2 -DNDEBUG -oCMakeFiles\ade.dir\3rdparty\ade\ade-0.1.2a\sources\ade\source\graph.cpp.obj -P -c 3rdparty\ade\ade-0.1.2a\sources\ade\source\graph.cpp
Embarcadero C++ 7.40 for Win32 Copyright (c) 2012-2018 Embarcadero Technologies, Inc.
3rdparty\ade\ade-0.1.2a\sources\ade\source\graph.cpp:
In file included from 3rdparty\ade\ade-0.1.2a\sources\ade\source\graph.cpp:7:
In file included from 3rdparty\ade\ade-0.1.2a\sources\ade\include\ade/graph.hpp:12:
In file included from C:\Program Files (x86)\Embarcadero\Studio\20.0\include\dinkumware64\memory:4:
In file included from C:\Program Files (x86)\Embarcadero\Studio\20.0\include\dinkumware64\xmemory:4:
In file included from C:\Program Files (x86)\Embarcadero\Studio\20.0\include\dinkumware64\xmemory0:8:
In file included from C:\Program Files (x86)\Embarcadero\Studio\20.0\include\dinkumware64\xutility:7:
C:\Program Files (x86)\Embarcadero\Studio\20.0\include\dinkumware64\xiter:327:13: error: base 'ElemDeleter' is marked 'final'
                : private _Ty1
                          ^
C:\Program Files (x86)\Embarcadero\Studio\20.0\include\dinkumware64\memory:232:31: note: in instantiation of template class 'std::_Compressed_pair<ade::Graph::ElemDeleter, ade::Node *, true>' requested here
        _Compressed_pair<_Dx, _Ty *> _Mypair;
                                     ^
C:\Program Files (x86)\Embarcadero\Studio\20.0\include\dinkumware64\memory:702:21: note: in instantiation of template class 'std::_Ref_count_del<ade::Node, ade::Graph::ElemDeleter>' requested here
                _Resetp0(_Px, new _Ref_count_del<_Ux, _Dx>(_Px, _Dt));
                                  ^
C:\Program Files (x86)\Embarcadero\Studio\20.0\include\dinkumware64\memory:498:3: note: in instantiation of function template specialization 'std::shared_ptr<ade::Node>::_Resetp<ade::Node, ade::Graph::ElemDeleter>' requested here
                _Resetp(_Px, _Dt);
                ^
3rdparty\ade\ade-0.1.2a\sources\ade\source\graph.cpp:35:13: note: in instantiation of function template specialization 'std::shared_ptr<ade::Node>::shared_ptr<ade::Node, ade::Graph::ElemDeleter>' requested here
    NodePtr node(new Node(this), ElemDeleter{});
            ^
3rdparty\ade\ade-0.1.2a\sources\ade\include\ade/graph.hpp:123:12: note: 'ElemDeleter' declared here
    struct ElemDeleter final
           ^           ~~~~~
In file included from 3rdparty\ade\ade-0.1.2a\sources\ade\source\graph.cpp:7:
In file included from 3rdparty\ade\ade-0.1.2a\sources\ade\include\ade/graph.hpp:12:
In file included from C:\Program Files (x86)\Embarcadero\Studio\20.0\include\dinkumware64\memory:4:
In file included from C:\Program Files (x86)\Embarcadero\Studio\20.0\include\dinkumware64\xmemory:4:
In file included from C:\Program Files (x86)\Embarcadero\Studio\20.0\include\dinkumware64\xmemory0:8:
In file included from C:\Program Files (x86)\Embarcadero\Studio\20.0\include\dinkumware64\xutility:7:
C:\Program Files (x86)\Embarcadero\Studio\20.0\include\dinkumware64\xiter:327:13: error: base 'ElemDeleter' is marked 'final'
                : private _Ty1
                          ^
C:\Program Files (x86)\Embarcadero\Studio\20.0\include\dinkumware64\memory:232:31: note: in instantiation of template class 'std::_Compressed_pair<ade::Graph::ElemDeleter, ade::Edge *, true>' requested here
        _Compressed_pair<_Dx, _Ty *> _Mypair;
                                     ^
C:\Program Files (x86)\Embarcadero\Studio\20.0\include\dinkumware64\memory:702:21: note: in instantiation of template class 'std::_Ref_count_del<ade::Edge, ade::Graph::ElemDeleter>' requested here
                _Resetp0(_Px, new _Ref_count_del<_Ux, _Dx>(_Px, _Dt));
                                  ^
C:\Program Files (x86)\Embarcadero\Studio\20.0\include\dinkumware64\memory:498:3: note: in instantiation of function template specialization 'std::shared_ptr<ade::Edge>::_Resetp<ade::Edge, ade::Graph::ElemDeleter>' requested here
                _Resetp(_Px, _Dt);
                ^
3rdparty\ade\ade-0.1.2a\sources\ade\source\graph.cpp:174:13: note: in instantiation of function template specialization 'std::shared_ptr<ade::Edge>::shared_ptr<ade::Edge, ade::Graph::ElemDeleter>' requested here
    EdgePtr edge(new Edge(src_node, dst_node), ElemDeleter{});
            ^
3rdparty\ade\ade-0.1.2a\sources\ade\include\ade/graph.hpp:123:12: note: 'ElemDeleter' declared here
    struct ElemDeleter final
           ^           ~~~~~
2 errors generated.
[6/1648] Building CXX object CMakeFiles\ade.dir\3rdparty\ade\ade-0.1.2a\sources\ade\source\memory_accessor.cpp.obj
Embarcadero C++ 7.40 for Win32 Copyright (c) 2012-2018 Embarcadero Technologies, Inc.
3rdparty\ade\ade-0.1.2a\sources\ade\source\memory_accessor.cpp:
[7/1648] Building CXX object CMakeFiles\ade.dir\3rdparty\ade\ade-0.1.2a\sources\ade\source\check_cycles.cpp.obj
Embarcadero C++ 7.40 for Win32 Copyright (c) 2012-2018 Embarcadero Technologies, Inc.
3rdparty\ade\ade-0.1.2a\sources\ade\source\check_cycles.cpp:
[8/1648] Building CXX object CMakeFiles\ade.dir\3rdparty\ade\ade-0.1.2a\sources\ade\source\memory_descriptor_view.cpp.obj
Embarcadero C++ 7.40 for Win32 Copyright (c) 2012-2018 Embarcadero Technologies, Inc.
3rdparty\ade\ade-0.1.2a\sources\ade\source\memory_descriptor_view.cpp:
[9/1648] Building CXX object CMakeFiles\ade.dir\3rdparty\ade\ade-0.1.2a\sources\ade\source\memory_descriptor_ref.cpp.obj
Embarcadero C++ 7.40 for Win32 Copyright (c) 2012-2018 Embarcadero Technologies, Inc.
3rdparty\ade\ade-0.1.2a\sources\ade\source\memory_descriptor_ref.cpp:
[10/1648] Building CXX object CMakeFiles\ade.dir\3rdparty\ade\ade-0.1.2a\sources\ade\source\metadata.cpp.obj
Embarcadero C++ 7.40 for Win32 Copyright (c) 2012-2018 Embarcadero Technologies, Inc.
3rdparty\ade\ade-0.1.2a\sources\ade\source\metadata.cpp:
[11/1648] Building CXX object CMakeFiles\ade.dir\3rdparty\ade\ade-0.1.2a\sources\ade\source\execution_engine.cpp.obj
Embarcadero C++ 7.40 for Win32 Copyright (c) 2012-2018 Embarcadero Technologies, Inc.
3rdparty\ade\ade-0.1.2a\sources\ade\source\execution_engine.cpp:
[12/1648] Building CXX object CMakeFiles\ade.dir\3rdparty\ade\ade-0.1.2a\sources\ade\source\metatypes.cpp.obj
Embarcadero C++ 7.40 for Win32 Copyright (c) 2012-2018 Embarcadero Technologies, Inc.
3rdparty\ade\ade-0.1.2a\sources\ade\source\metatypes.cpp:
ninja: build stopped: subcommand failed.

I have not added anything except for the opencv that I downloaded from this site. Does anyone know how to fix this?

the build results tell me that there will be no multithreading, no OpenCL, extremely basic support for vector instructions (SSE2… baseline is usually higher than that).

those things are available practically always with Visual Studio/MSVC.

and it detected only C++11. lots of projects move on from C++11 and require newer versions. it seems to be enough for OpenCV. for now.

the first build issue involves “ADE”. you can disable that by unchecking WITH_ADE in the cmake build flags.

image

then regenerate and rebuild.

related:

I changed the opencv version from 4.x to 3.4.16 and continued with that but when I run the CMake command and ninja like I did and then open it in the CMake GUI I don’t see the option WITH_ADE. What should I do to make that appear or an alternative to make it so it doesn’t go into error?

there is no gapi module in 3.4 so no ade

rather don’t. 3.4 is a dead end, and will be discontinued soon