How compile opencv for C66x DSP core?

I am trying to compile opencv for the TI’s AM273x SoC that has a DSP C66x core on it. Where exactly should I start and what files must be modified?

I am getting configuration errors while trying to use Cmake and compile it. It’d be great if someone can give me a starting point on what and where should be followed? Here are some more details about the tool chain.

Compiler- TI Armclang llvm compiler - ti-cgt-armllvm_2.1.1.LTS
SoC - AM273x (Has 2 Cortex-R5 cores, One DSP C66x Core)
RAM - 3.25Mb DSP RAM and 2MB ram for R5 cores

Any help would be appreciated.

Thanks,
G Kowshik

just curious, what exactly do you want to do later with opencv there ?

I am trying to make a simple demo like face detection or image manipulation kind of functions with my DSP core.

i’m definitely no expert on this, but:

afaik, no support from current opencv code for that

i also doubt, that you can squeeze even a most minimal opencv prog + data into 3.5 mb ram …

IF you want to try nonetheless, maybe have a look at similar efforts like this:

Hi,

Thanks for the pointer. If current opencv doesn’t support C66x, I atleast want to compile it for Cortex-R5F.

And also when you say “Current opencv doesn’t support it” what does it mean? Are you referring to the intrinsic instructions opencv uses?

i simply haven’t seen any mentioning of those chips / architectures anywhere

Hi,

No problem. However, I always had this doubt of how to cross compile stuff like opencv to any controllers. I want to atleast make the library out of the source.

I’ve recently seen NXP’s appnote on how to run opencv on RT1170 M7 microcontroller,

How was this actually possible? I have downloaded their source code and tried understanding the process. I was able to figure out the following

  1. Compiler tool chain paths

  2. Compiler parameters like -mcpu, -fpu, etc., Etc.,

However I’m having a hard time getting it compiled. So I wanna understand from community what steps a person should take before starting to compile opencv for a specific microcontroller or microprocessor platform?

Thanks alot for your patience.

1 Like

those iMXRT processors are powerful beasts. I don’t know if they can run linux but they have enough power for some DSP applications.

that PDF you linked suggests the process to be fairly painless. it’s “just” crosscompilation.

the same steps should be possible for your Cortex R controllers. they’re more powerful than Cortex M, afaik.

Since you have a Cortex R with DSP, you’ll have to figure out whether your compiler (toolchain) can compile and optimize code to use that DSP part of the chip, or if you need to use some kind of intrinsics to hand-optimize specific code.

OpenCV does support some ARM targets. There is ARM NEON optimization in some places in OpenCV. if you look around, you might find other people interested in what you’re doing, and potentially helping.

Hi All,

Quick follow up question. What if a user decides not to use the CMAKE tool to compile open-cv, what other alternatives are present for them to compile it from source, basically if I have a compiler, what files from the opencv repo should I take so that my source compiles correctly.

The reason I ask is, when I was going through the CMAKE, I see that there are some template files present which are generated during the configure and generation process of cmake. However, if I wish to not use this method and take the source as such and compile what should I do?

P.S. Compiler I am going to use is arm-none-eabi-gcc given by ARM itself for cross-compiling to Armv7-R architectures.

Thanks,
G Kowshik

https://cmake.org/

CMake does not build anything.

CMake generates build files or your choice (Makefile, Ninja, Visual Studio Solution, …)

those control the build process.

if you refuse to use CMake , you’re on your own. there is no support for doing it differently.

there is no reason to refuse. CMake is supposed to see the cross-compilation toolchain for your target, that you install on your host system, and CMake will generate appropriate build files for that toolchain.

Just look at the instructions in that PDF. they cross-compile too. equivalent steps will work on Linux.

Hi @crackwitz

I took your suggestion of using the CMAKE only for compiling the opencv. I started tweaking around and somehow able to get the configuring part done properly with the below toolchain CMAKE file.

set(CMAKE_SYSTEM_NAME               Generic)
set(CMAKE_SYSTEM_PROCESSOR          arm)
set(BAREMETAL_ARM_TOOLCHAIN_PATH    /home/kowshik/Documents/gcc/gcc-arm-none-eabi-10.3-2021.10/bin/)
# Without that flag CMake is not able to pass test compilation check
set(CMAKE_TRY_COMPILE_TARGET_TYPE   STATIC_LIBRARY)

set(CMAKE_AR                        ${BAREMETAL_ARM_TOOLCHAIN_PATH}arm-none-eabi-ar${CMAKE_EXECUTABLE_SUFFIX})
set(CMAKE_ASM_COMPILER              ${BAREMETAL_ARM_TOOLCHAIN_PATH}arm-none-eabi-gcc${CMAKE_EXECUTABLE_SUFFIX})
set(CMAKE_C_COMPILER                ${BAREMETAL_ARM_TOOLCHAIN_PATH}arm-none-eabi-gcc${CMAKE_EXECUTABLE_SUFFIX})
set(CMAKE_CXX_COMPILER              ${BAREMETAL_ARM_TOOLCHAIN_PATH}arm-none-eabi-g++${CMAKE_EXECUTABLE_SUFFIX})
set(CMAKE_LINKER                    ${BAREMETAL_ARM_TOOLCHAIN_PATH}arm-none-eabi-ld${CMAKE_EXECUTABLE_SUFFIX})
set(CMAKE_OBJCOPY                   ${BAREMETAL_ARM_TOOLCHAIN_PATH}arm-none-eabi-objcopy${CMAKE_EXECUTABLE_SUFFIX} CACHE INTERNAL "")
set(CMAKE_RANLIB                    ${BAREMETAL_ARM_TOOLCHAIN_PATH}arm-none-eabi-ranlib${CMAKE_EXECUTABLE_SUFFIX} CACHE INTERNAL "")
set(CMAKE_SIZE                      ${BAREMETAL_ARM_TOOLCHAIN_PATH}arm-none-eabi-size${CMAKE_EXECUTABLE_SUFFIX} CACHE INTERNAL "")
set(CMAKE_STRIP                     ${BAREMETAL_ARM_TOOLCHAIN_PATH}arm-none-eabi-strip${CMAKE_EXECUTABLE_SUFFIX} CACHE INTERNAL "")

set(CMAKE_C_FLAGS                   "-mcpu=cortex-r5 -mthumb -mfloat-abi=hard -mfpu=vfpv3-d16 -fPIC -Wno-psabi -Wno-dev --specs=nosys.specs -fdata-sections -ffunction-sections -Wl,--gc-sections" CACHE INTERNAL "")
set(CMAKE_CXX_FLAGS                 "${CMAKE_C_FLAGS} -fno-exceptions" CACHE INTERNAL "")

set(CMAKE_C_FLAGS_DEBUG             "-Os -g" CACHE INTERNAL "")
set(CMAKE_C_FLAGS_RELEASE           "-Os -DNDEBUG" CACHE INTERNAL "")
set(CMAKE_CXX_FLAGS_DEBUG           "${CMAKE_C_FLAGS_DEBUG}" CACHE INTERNAL "")
set(CMAKE_CXX_FLAGS_RELEASE         "${CMAKE_C_FLAGS_RELEASE}" CACHE INTERNAL "")

set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)

However, it seems my Generation is not done properly, it complains something about zlib, ittnotify etc., I checked with chatGPT on what these errors are and it says to install few libraries which still didn’t solve the issues and I am getting these errors while generating.
Can you please help what are these errors might be about?

Adding the entire cmake-gui LOG below, please let me know if you need any more info (Added the logs as 2 seperate replies due to character count limit).

Thanks

'Release' build type is used by default. Use CMAKE_BUILD_TYPE to specify build type (Release or Debug)
The CXX compiler identification is GNU 10.3.1
The C compiler identification is GNU 10.3.1
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Check for working CXX compiler: /home/kowshik/Documents/gcc/gcc-arm-none-eabi-10.3-2021.10/bin/arm-none-eabi-g++ - skipped
Detecting CXX compile features
Detecting CXX compile features - done
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working C compiler: /home/kowshik/Documents/gcc/gcc-arm-none-eabi-10.3-2021.10/bin/arm-none-eabi-gcc - skipped
Detecting C compile features
Detecting C compile features - done
OpenCV: system-specific configuration file is not found: 'Generic'
Detected processor: arm
Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.18", minimum required is "2.7")
Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS) (Required is at least version "2.7")
Cannot probe for Python/Numpy support (because we are cross-compiling OpenCV)
If you want to enable Python/Numpy support, set the following variables:
PYTHON2_INCLUDE_PATH
PYTHON2_LIBRARIES (optional on Unix-like systems)
PYTHON2_NUMPY_INCLUDE_DIRS
PYTHON3_INCLUDE_PATH
PYTHON3_LIBRARIES (optional on Unix-like systems)
PYTHON3_NUMPY_INCLUDE_DIRS
Found PythonInterp: /usr/bin/python3 (found suitable version "3.10.7", minimum required is "3.2")
Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS) (Required is at least version "3.10")
Cannot probe for Python/Numpy support (because we are cross-compiling OpenCV)
If you want to enable Python/Numpy support, set the following variables:
PYTHON2_INCLUDE_PATH
PYTHON2_LIBRARIES (optional on Unix-like systems)
PYTHON2_NUMPY_INCLUDE_DIRS
PYTHON3_INCLUDE_PATH
PYTHON3_LIBRARIES (optional on Unix-like systems)
PYTHON3_NUMPY_INCLUDE_DIRS
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
Performing Test HAVE_CXX_W
Performing Test HAVE_CXX_W - Success
Performing Test HAVE_C_W
Performing Test HAVE_C_W - Success
Performing Test HAVE_CXX_WALL
Performing Test HAVE_CXX_WALL - Success
Performing Test HAVE_C_WALL
Performing Test HAVE_C_WALL - Success
Performing Test HAVE_CXX_WRETURN_TYPE
Performing Test HAVE_CXX_WRETURN_TYPE - Success
Performing Test HAVE_C_WRETURN_TYPE
Performing Test HAVE_C_WRETURN_TYPE - Success
Performing Test HAVE_CXX_WNON_VIRTUAL_DTOR
Performing Test HAVE_CXX_WNON_VIRTUAL_DTOR - Success
Performing Test HAVE_C_WNON_VIRTUAL_DTOR
Performing Test HAVE_C_WNON_VIRTUAL_DTOR - Failed
Performing Test HAVE_CXX_WADDRESS
Performing Test HAVE_CXX_WADDRESS - Success
Performing Test HAVE_C_WADDRESS
Performing Test HAVE_C_WADDRESS - Success
Performing Test HAVE_CXX_WSEQUENCE_POINT
Performing Test HAVE_CXX_WSEQUENCE_POINT - Success
Performing Test HAVE_C_WSEQUENCE_POINT
Performing Test HAVE_C_WSEQUENCE_POINT - Success
Performing Test HAVE_CXX_WFORMAT
Performing Test HAVE_CXX_WFORMAT - Success
Performing Test HAVE_C_WFORMAT
Performing Test HAVE_C_WFORMAT - Success
Performing Test HAVE_CXX_WFORMAT_SECURITY
Performing Test HAVE_CXX_WFORMAT_SECURITY - Success
Performing Test HAVE_C_WFORMAT_SECURITY
Performing Test HAVE_C_WFORMAT_SECURITY - Success
Performing Test HAVE_CXX_WMISSING_DECLARATIONS
Performing Test HAVE_CXX_WMISSING_DECLARATIONS - Success
Performing Test HAVE_C_WMISSING_DECLARATIONS
Performing Test HAVE_C_WMISSING_DECLARATIONS - Success
Performing Test HAVE_CXX_WMISSING_PROTOTYPES
Performing Test HAVE_CXX_WMISSING_PROTOTYPES - Failed
Performing Test HAVE_C_WMISSING_PROTOTYPES
Performing Test HAVE_C_WMISSING_PROTOTYPES - Success
Performing Test HAVE_CXX_WSTRICT_PROTOTYPES
Performing Test HAVE_CXX_WSTRICT_PROTOTYPES - Failed
Performing Test HAVE_C_WSTRICT_PROTOTYPES
Performing Test HAVE_C_WSTRICT_PROTOTYPES - Success
Performing Test HAVE_CXX_WUNDEF
Performing Test HAVE_CXX_WUNDEF - Success
Performing Test HAVE_C_WUNDEF
Performing Test HAVE_C_WUNDEF - Success
Performing Test HAVE_CXX_WINIT_SELF
Performing Test HAVE_CXX_WINIT_SELF - Success
Performing Test HAVE_C_WINIT_SELF
Performing Test HAVE_C_WINIT_SELF - Success
Performing Test HAVE_CXX_WPOINTER_ARITH
Performing Test HAVE_CXX_WPOINTER_ARITH - Success
Performing Test HAVE_C_WPOINTER_ARITH
Performing Test HAVE_C_WPOINTER_ARITH - Success
Performing Test HAVE_CXX_WSHADOW
Performing Test HAVE_CXX_WSHADOW - Success
Performing Test HAVE_C_WSHADOW
Performing Test HAVE_C_WSHADOW - Success
Performing Test HAVE_CXX_WSIGN_PROMO
Performing Test HAVE_CXX_WSIGN_PROMO - Success
Performing Test HAVE_C_WSIGN_PROMO
Performing Test HAVE_C_WSIGN_PROMO - Failed
Performing Test HAVE_CXX_WUNINITIALIZED
Performing Test HAVE_CXX_WUNINITIALIZED - Success
Performing Test HAVE_C_WUNINITIALIZED
Performing Test HAVE_C_WUNINITIALIZED - Success
Performing Test HAVE_CXX_WNO_PSABI
Performing Test HAVE_CXX_WNO_PSABI - Success
Performing Test HAVE_C_WNO_PSABI
Performing Test HAVE_C_WNO_PSABI - Success
Performing Test HAVE_CXX_WSUGGEST_OVERRIDE
Performing Test HAVE_CXX_WSUGGEST_OVERRIDE - Success
Performing Test HAVE_C_WSUGGEST_OVERRIDE
Performing Test HAVE_C_WSUGGEST_OVERRIDE - Failed
Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR
Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR - Success
Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR
Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR - Failed
Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS
Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Success
Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS
Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Success
Performing Test HAVE_CXX_WNO_COMMENT
Performing Test HAVE_CXX_WNO_COMMENT - Success
Performing Test HAVE_C_WNO_COMMENT
Performing Test HAVE_C_WNO_COMMENT - Success
Performing Test HAVE_CXX_WIMPLICIT_FALLTHROUGH_3
Performing Test HAVE_CXX_WIMPLICIT_FALLTHROUGH_3 - Success
Performing Test HAVE_C_WIMPLICIT_FALLTHROUGH_3
Performing Test HAVE_C_WIMPLICIT_FALLTHROUGH_3 - Success
Performing Test HAVE_CXX_WNO_STRICT_OVERFLOW
Performing Test HAVE_CXX_WNO_STRICT_OVERFLOW - Success
Performing Test HAVE_C_WNO_STRICT_OVERFLOW
Performing Test HAVE_C_WNO_STRICT_OVERFLOW - Success
Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION
Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION - Success
Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION
Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION - Success
Performing Test HAVE_CXX_FOMIT_FRAME_POINTER
Performing Test HAVE_CXX_FOMIT_FRAME_POINTER - Success
Performing Test HAVE_C_FOMIT_FRAME_POINTER
Performing Test HAVE_C_FOMIT_FRAME_POINTER - Success
Performing Test HAVE_CXX_FFUNCTION_SECTIONS
Performing Test HAVE_CXX_FFUNCTION_SECTIONS - Success
Performing Test HAVE_C_FFUNCTION_SECTIONS
Performing Test HAVE_C_FFUNCTION_SECTIONS - Success
Performing Test HAVE_CXX_FDATA_SECTIONS
Performing Test HAVE_CXX_FDATA_SECTIONS - Success
Performing Test HAVE_C_FDATA_SECTIONS
Performing Test HAVE_C_FDATA_SECTIONS - Success
Performing Test HAVE_CXX_MFPU_VFPV3
Performing Test HAVE_CXX_MFPU_VFPV3 - Success
Performing Test HAVE_CPU_NEON_SUPPORT (check file: cmake/checks/cpu_neon.cpp)
Performing Test HAVE_CPU_NEON_SUPPORT - Failed
Performing Test HAVE_CXX_MFPU_NEON (check file: cmake/checks/cpu_neon.cpp)
Performing Test HAVE_CXX_MFPU_NEON - Success
Performing Test HAVE_CPU_FP16_SUPPORT (check file: cmake/checks/cpu_fp16.cpp)
Performing Test HAVE_CPU_FP16_SUPPORT - Failed
Performing Test HAVE_CXX_MFPU_NEON_FP16_MFP16_FORMAT_IEEE (check file: cmake/checks/cpu_fp16.cpp)
Performing Test HAVE_CXX_MFPU_NEON_FP16_MFP16_FORMAT_IEEE - Success
Performing Test HAVE_CPU_BASELINE_FLAGS
Performing Test HAVE_CPU_BASELINE_FLAGS - Success
Performing Test HAVE_CXX_FVISIBILITY_HIDDEN
Performing Test HAVE_CXX_FVISIBILITY_HIDDEN - Success
Performing Test HAVE_C_FVISIBILITY_HIDDEN
Performing Test HAVE_C_FVISIBILITY_HIDDEN - Success
Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN
Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN - Success
Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN
Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN - Success
Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR) (Required is at least version "1.2.3")
Looking for fseeko
Looking for fseeko - found
Looking for unistd.h
Looking for unistd.h - found
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 off64_t
Check size of off64_t - failed
Performing Test HAVE_C_WNO_SHORTEN_64_TO_32
Performing Test HAVE_C_WNO_SHORTEN_64_TO_32 - Success
Performing Test HAVE_C_WNO_ATTRIBUTES
Performing Test HAVE_C_WNO_ATTRIBUTES - Success
Performing Test HAVE_C_WNO_STRICT_PROTOTYPES
Performing Test HAVE_C_WNO_STRICT_PROTOTYPES - Success
Performing Test HAVE_C_WNO_MISSING_PROTOTYPES
Performing Test HAVE_C_WNO_MISSING_PROTOTYPES - Success
Performing Test HAVE_C_WNO_MISSING_DECLARATIONS
Performing Test HAVE_C_WNO_MISSING_DECLARATIONS - Success
Performing Test HAVE_C_WNO_SHIFT_NEGATIVE_VALUE
Performing Test HAVE_C_WNO_SHIFT_NEGATIVE_VALUE - Success
Performing Test HAVE_C_WNO_UNDEF
Performing Test HAVE_C_WNO_UNDEF - Success
Performing Test HAVE_C_WNO_IMPLICIT_FALLTHROUGH
Performing Test HAVE_C_WNO_IMPLICIT_FALLTHROUGH - Success
Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR)
Performing Test HAVE_C_WNO_UNUSED_PARAMETER
Performing Test HAVE_C_WNO_UNUSED_PARAMETER - Success
Performing Test HAVE_C_WNO_SIGN_COMPARE
Performing Test HAVE_C_WNO_SIGN_COMPARE - Success
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
Could NOT find TIFF (missing: TIFF_LIBRARY TIFF_INCLUDE_DIR)
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 - not found
Looking for limits.h
Looking for limits.h - found
Looking for malloc.h
Looking for malloc.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 - found
Looking for sys/time.h
Looking for sys/time.h - found
Looking for unistd.h
Looking for unistd.h - 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 - found
Looking for getopt
Looking for getopt - found
Looking for memmove
Looking for memmove - found
Looking for setmode
Looking for setmode - found
Looking for strcasecmp
Looking for strcasecmp - 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
Performing Test HAVE_C_WNO_UNUSED_BUT_SET_VARIABLE
Performing Test HAVE_C_WNO_UNUSED_BUT_SET_VARIABLE - Success
Performing Test HAVE_C_WNO_UNUSED
Performing Test HAVE_C_WNO_UNUSED - Success
Performing Test HAVE_C_WNO_CAST_ALIGN
Performing Test HAVE_C_WNO_CAST_ALIGN - Success
Performing Test HAVE_C_WNO_SHADOW
Performing Test HAVE_C_WNO_SHADOW - Success
Performing Test HAVE_C_WNO_MAYBE_UNINITIALIZED
Performing Test HAVE_C_WNO_MAYBE_UNINITIALIZED - Success
Performing Test HAVE_C_WNO_POINTER_TO_INT_CAST
Performing Test HAVE_C_WNO_POINTER_TO_INT_CAST - Success
Performing Test HAVE_C_WNO_INT_TO_POINTER_CAST
Performing Test HAVE_C_WNO_INT_TO_POINTER_CAST - Success
Performing Test HAVE_C_WNO_MISLEADING_INDENTATION
Performing Test HAVE_C_WNO_MISLEADING_INDENTATION - Success
Performing Test HAVE_C_WNO_ARRAY_PARAMETER
Performing Test HAVE_C_WNO_ARRAY_PARAMETER - Success
Performing Test HAVE_CXX_WNO_MISSING_DECLARATIONS
Performing Test HAVE_CXX_WNO_MISSING_DECLARATIONS - Success
Performing Test HAVE_CXX_WNO_UNUSED_PARAMETER
Performing Test HAVE_CXX_WNO_UNUSED_PARAMETER - Success
Performing Test HAVE_CXX_WNO_MISSING_PROTOTYPES
Performing Test HAVE_CXX_WNO_MISSING_PROTOTYPES - Failed
Performing Test HAVE_CXX_WNO_UNDEF
Performing Test HAVE_CXX_WNO_UNDEF - Success
Performing Test HAVE_C_STD_C99
Performing Test HAVE_C_STD_C99 - Failed
Performing Test HAVE_C_WNO_UNUSED_VARIABLE
Performing Test HAVE_C_WNO_UNUSED_VARIABLE - Success
Performing Test HAVE_C_WNO_UNUSED_FUNCTION
Performing Test HAVE_C_WNO_UNUSED_FUNCTION - Success
Could NOT find OpenJPEG (minimal suitable version: 2.0, recommended version >= 2.3.1). OpenJPEG will be built from sources
Performing Test HAVE_C_WNO_IMPLICIT_CONST_INT_FLOAT_CONVERSION
Performing Test HAVE_C_WNO_IMPLICIT_CONST_INT_FLOAT_CONVERSION - Success
OpenJPEG: VERSION = 2.4.0, BUILD = opencv-4.7.0-dev-openjp2-2.4.0
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 - not found
Looking for posix_memalign
Looking for posix_memalign - found
Looking for memalign
Looking for memalign - found
Performing Test HAVE_C_WNO_CAST_FUNCTION_TYPE
Performing Test HAVE_C_WNO_CAST_FUNCTION_TYPE - Success
OpenJPEG libraries will be built from sources: libopenjp2 (version "2.4.0")
Found ZLIB: zlib (found version "1.2.13")
Could NOT find PNG (missing: PNG_LIBRARY PNG_PNG_INCLUDE_DIR)
math lib 'libm' not found; floating point support disabled
Performing Test HAVE_C_WNO_NULL_POINTER_SUBTRACTION
Performing Test HAVE_C_WNO_NULL_POINTER_SUBTRACTION - Success
Could not find OpenBLAS include. Turning OpenBLAS_FOUND off
Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off
Looking for sgemm_
Looking for sgemm_ - found
Found BLAS: implicitly linked
Found Threads: TRUE
Looking for cheev_
Looking for cheev_ - found
Found LAPACK: implicitly linked
Performing Test HAVE_CXX_WNO_DEPRECATED
Performing Test HAVE_CXX_WNO_DEPRECATED - Success
Performing Test HAVE_CXX_WNO_SHADOW
Performing Test HAVE_CXX_WNO_SHADOW - Success
Performing Test HAVE_CXX_WNO_UNUSED_LOCAL_TYPEDEFS
Performing Test HAVE_CXX_WNO_UNUSED_LOCAL_TYPEDEFS - Success
Performing Test HAVE_CXX_WNO_SIGN_COMPARE
Performing Test HAVE_CXX_WNO_SIGN_COMPARE - Success
Performing Test HAVE_CXX_WNO_SIGN_PROMO
Performing Test HAVE_CXX_WNO_SIGN_PROMO - Success
Performing Test HAVE_CXX_WNO_TAUTOLOGICAL_UNDEFINED_COMPARE
Performing Test HAVE_CXX_WNO_TAUTOLOGICAL_UNDEFINED_COMPARE - Success
Performing Test HAVE_CXX_WNO_IGNORED_QUALIFIERS
Performing Test HAVE_CXX_WNO_IGNORED_QUALIFIERS - Success
Performing Test HAVE_CXX_WNO_EXTRA
Performing Test HAVE_CXX_WNO_EXTRA - Success
Performing Test HAVE_CXX_WNO_UNUSED_FUNCTION
Performing Test HAVE_CXX_WNO_UNUSED_FUNCTION - Success
Performing Test HAVE_CXX_WNO_UNUSED_CONST_VARIABLE
Performing Test HAVE_CXX_WNO_UNUSED_CONST_VARIABLE - Success
Performing Test HAVE_CXX_WNO_SHORTEN_64_TO_32
Performing Test HAVE_CXX_WNO_SHORTEN_64_TO_32 - Success
Performing Test HAVE_CXX_WNO_INVALID_OFFSETOF
Performing Test HAVE_CXX_WNO_INVALID_OFFSETOF - Success
Performing Test HAVE_CXX_WNO_ENUM_COMPARE_SWITCH
Performing Test HAVE_CXX_WNO_ENUM_COMPARE_SWITCH - Success
Performing Test HAVE_CXX_WNO_SUGGEST_OVERRIDE
Performing Test HAVE_CXX_WNO_SUGGEST_OVERRIDE - Success
Performing Test HAVE_CXX_WNO_INCONSISTENT_MISSING_OVERRIDE
Performing Test HAVE_CXX_WNO_INCONSISTENT_MISSING_OVERRIDE - Success
Performing Test HAVE_CXX_WNO_IMPLICIT_FALLTHROUGH
Performing Test HAVE_CXX_WNO_IMPLICIT_FALLTHROUGH - Success
Performing Test HAVE_CXX_WNO_ARRAY_BOUNDS
Performing Test HAVE_CXX_WNO_ARRAY_BOUNDS - Success
Performing Test HAVE_CXX_WNO_CLASS_MEMACCESS
Performing Test HAVE_CXX_WNO_CLASS_MEMACCESS - Success
Carotene: NEON is not available, disabling carotene...
Looking for dlerror in dl
Looking for dlerror in dl - found
ADE: Downloading v0.1.2a.zip from https://github.com/opencv/ade/archive/v0.1.2a.zip
Allocator metrics storage type: 'int'
CMake Warning (dev) at cmake/OpenCVUtils.cmake:1560 (add_library):
 ADD_LIBRARY called with SHARED option but the target platform does not
 support dynamic linking. Building a STATIC library instead. This may lead
 to problems.
Call Stack (most recent call first):
 cmake/OpenCVModule.cmake:989 (ocv_add_library)
 cmake/OpenCVModule.cmake:905 (_ocv_create_module)
 modules/core/CMakeLists.txt:144 (ocv_create_module)
This warning is for project developers. Use -Wno-dev to suppress it.
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
CMake Warning (dev) at cmake/OpenCVUtils.cmake:1560 (add_library):
 ADD_LIBRARY called with SHARED option but the target platform does not
 support dynamic linking. Building a STATIC library instead. This may lead
 to problems.
Call Stack (most recent call first):
 cmake/OpenCVModule.cmake:989 (ocv_add_library)
 cmake/OpenCVModule.cmake:905 (_ocv_create_module)
 cmake/OpenCVModule.cmake:1131 (ocv_create_module)
 modules/flann/CMakeLists.txt:2 (ocv_define_module)
This warning is for project developers. Use -Wno-dev to suppress it.
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
CMake Warning (dev) at cmake/OpenCVUtils.cmake:1560 (add_library):
 ADD_LIBRARY called with SHARED option but the target platform does not
 support dynamic linking. Building a STATIC library instead. This may lead
 to problems.
Call Stack (most recent call first):
 cmake/OpenCVModule.cmake:989 (ocv_add_library)
 cmake/OpenCVModule.cmake:905 (_ocv_create_module)
 cmake/OpenCVModule.cmake:1131 (ocv_create_module)
 modules/imgproc/CMakeLists.txt:13 (ocv_define_module)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/OpenCVUtils.cmake:1560 (add_library):
 ADD_LIBRARY called with SHARED option but the target platform does not
 support dynamic linking. Building a STATIC library instead. This may lead
 to problems.
Call Stack (most recent call first):
 cmake/OpenCVModule.cmake:989 (ocv_add_library)
 cmake/OpenCVModule.cmake:905 (_ocv_create_module)
 cmake/OpenCVModule.cmake:1131 (ocv_create_module)
 modules/ml/CMakeLists.txt:2 (ocv_define_module)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/OpenCVUtils.cmake:1560 (add_library):
 ADD_LIBRARY called with SHARED option but the target platform does not
 support dynamic linking. Building a STATIC library instead. This may lead
 to problems.
Call Stack (most recent call first):
 cmake/OpenCVModule.cmake:989 (ocv_add_library)
 cmake/OpenCVModule.cmake:905 (_ocv_create_module)
 cmake/OpenCVModule.cmake:1131 (ocv_create_module)
 modules/photo/CMakeLists.txt:7 (ocv_define_module)
This warning is for project developers. Use -Wno-dev to suppress it.
Registering hook 'INIT_MODULE_SOURCES_opencv_dnn': /home/kowshik/Desktop/opencv_porting/opencv/modules/dnn/cmake/hooks/INIT_MODULE_SOURCES_opencv_dnn.cmake
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
CMake Warning (dev) at cmake/OpenCVUtils.cmake:1560 (add_library):
 ADD_LIBRARY called with SHARED option but the target platform does not
 support dynamic linking. Building a STATIC library instead. This may lead
 to problems.
Call Stack (most recent call first):
 cmake/OpenCVModule.cmake:989 (ocv_add_library)
 cmake/OpenCVModule.cmake:905 (_ocv_create_module)
 modules/dnn/CMakeLists.txt:246 (ocv_create_module)
This warning is for project developers. Use -Wno-dev to suppress it.
Excluding from source files list: modules/features2d/src/fast.avx2.cpp
CMake Warning (dev) at cmake/OpenCVUtils.cmake:1560 (add_library):
 ADD_LIBRARY called with SHARED option but the target platform does not
 support dynamic linking. Building a STATIC library instead. This may lead
 to problems.
Call Stack (most recent call first):
 cmake/OpenCVModule.cmake:989 (ocv_add_library)
 cmake/OpenCVModule.cmake:905 (_ocv_create_module)
 cmake/OpenCVModule.cmake:1131 (ocv_create_module)
 modules/features2d/CMakeLists.txt:9 (ocv_define_module)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/OpenCVUtils.cmake:1560 (add_library):
 ADD_LIBRARY called with SHARED option but the target platform does not
 support dynamic linking. Building a STATIC library instead. This may lead
 to problems.
Call Stack (most recent call first):
 cmake/OpenCVModule.cmake:989 (ocv_add_library)
 cmake/OpenCVModule.cmake:905 (_ocv_create_module)
 modules/imgcodecs/CMakeLists.txt:163 (ocv_create_module)
This warning is for project developers. Use -Wno-dev to suppress it.
Performing Test HAVE_CXX_WNO_DEPRECATED_DECLARATIONS
Performing Test HAVE_CXX_WNO_DEPRECATED_DECLARATIONS - Success
CMake Warning (dev) at cmake/OpenCVUtils.cmake:1560 (add_library):
 ADD_LIBRARY called with SHARED option but the target platform does not
 support dynamic linking. Building a STATIC library instead. This may lead
 to problems.
Call Stack (most recent call first):
 cmake/OpenCVModule.cmake:989 (ocv_add_library)
 cmake/OpenCVModule.cmake:905 (_ocv_create_module)
 modules/videoio/CMakeLists.txt:270 (ocv_create_module)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/OpenCVUtils.cmake:1560 (add_library):
 ADD_LIBRARY called with SHARED option but the target platform does not
 support dynamic linking. Building a STATIC library instead. This may lead
 to problems.
Call Stack (most recent call first):
 cmake/OpenCVModule.cmake:989 (ocv_add_library)
 cmake/OpenCVModule.cmake:905 (_ocv_create_module)
 cmake/OpenCVModule.cmake:1131 (ocv_create_module)
 modules/calib3d/CMakeLists.txt:9 (ocv_define_module)
This warning is for project developers. Use -Wno-dev to suppress it.
highgui: using builtin backend: NONE
CMake Warning (dev) at cmake/OpenCVUtils.cmake:1560 (add_library):
 ADD_LIBRARY called with SHARED option but the target platform does not
 support dynamic linking. Building a STATIC library instead. This may lead
 to problems.
Call Stack (most recent call first):
 cmake/OpenCVModule.cmake:989 (ocv_add_library)
 cmake/OpenCVModule.cmake:905 (_ocv_create_module)
 modules/highgui/CMakeLists.txt:291 (ocv_create_module)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/OpenCVUtils.cmake:1560 (add_library):
 ADD_LIBRARY called with SHARED option but the target platform does not
 support dynamic linking. Building a STATIC library instead. This may lead
 to problems.
Call Stack (most recent call first):
 cmake/OpenCVModule.cmake:989 (ocv_add_library)
 cmake/OpenCVModule.cmake:905 (_ocv_create_module)
 cmake/OpenCVModule.cmake:1131 (ocv_create_module)
 modules/objdetect/CMakeLists.txt:2 (ocv_define_module)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/OpenCVUtils.cmake:1560 (add_library):
 ADD_LIBRARY called with SHARED option but the target platform does not
 support dynamic linking. Building a STATIC library instead. This may lead
 to problems.
Call Stack (most recent call first):
 cmake/OpenCVModule.cmake:989 (ocv_add_library)
 cmake/OpenCVModule.cmake:905 (_ocv_create_module)
 cmake/OpenCVModule.cmake:1131 (ocv_create_module)
 modules/stitching/CMakeLists.txt:11 (ocv_define_module)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/OpenCVUtils.cmake:1560 (add_library):
 ADD_LIBRARY called with SHARED option but the target platform does not
 support dynamic linking. Building a STATIC library instead. This may lead
 to problems.
Call Stack (most recent call first):
 cmake/OpenCVModule.cmake:989 (ocv_add_library)
 cmake/OpenCVModule.cmake:905 (_ocv_create_module)
 cmake/OpenCVModule.cmake:1131 (ocv_create_module)
 modules/video/CMakeLists.txt:2 (ocv_define_module)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/OpenCVUtils.cmake:1560 (add_library):
 ADD_LIBRARY called with SHARED option but the target platform does not
 support dynamic linking. Building a STATIC library instead. This may lead
 to problems.
Call Stack (most recent call first):
 cmake/OpenCVModule.cmake:989 (ocv_add_library)
 cmake/OpenCVModule.cmake:905 (_ocv_create_module)
 modules/gapi/CMakeLists.txt:246 (ocv_create_module)
This warning is for project developers. Use -Wno-dev to suppress it.
Found 'misc' Python modules from /home/kowshik/Desktop/opencv_porting/opencv/modules/python/package/extra_modules
Found 'mat_wrapper;utils' Python modules from /home/kowshik/Desktop/opencv_porting/opencv/modules/core/misc/python/package
Found 'gapi' Python modules from /home/kowshik/Desktop/opencv_porting/opencv/modules/gapi/misc/python/package
General configuration for OpenCV 4.7.0-dev =====================================
Version control: 4.7.0-251-ge3e1f704a4
Platform:
Timestamp: 2023-04-26T19:47:48Z
Host: Linux 5.19.0-21-generic x86_64
Target: Generic arm
CMake: 3.22.1
CMake generator: Unix Makefiles
CMake build tool: /usr/bin/gmake
Configuration: Release
CPU/HW features:
Baseline:
requested: DETECT
disabled: VFPV3 NEON
C/C++:
Built as dynamic libs?: YES
C++ standard: 11
C++ Compiler: /home/kowshik/Documents/gcc/gcc-arm-none-eabi-10.3-2021.10/bin/arm-none-eabi-g++ (ver 10.3.1)
C++ flags (Release): -mcpu=cortex-r5 -mthumb -mfloat-abi=hard -mfpu=vfpv3-d16 -fPIC -w -Wno-psabi -Wno-dev --specs=nosys.specs -fdata-sections -ffunction-sections -Wl,--gc-sections -fno-exceptions -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wno-psabi -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -fomit-frame-pointer -ffunction-sections -fdata-sections -fvisibility=hidden -fvisibility-inlines-hidden -Os -DNDEBUG -DNDEBUG
C++ flags (Debug): -mcpu=cortex-r5 -mthumb -mfloat-abi=hard -mfpu=vfpv3-d16 -fPIC -w -Wno-psabi -Wno-dev --specs=nosys.specs -fdata-sections -ffunction-sections -Wl,--gc-sections -fno-exceptions -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wno-psabi -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -fomit-frame-pointer -ffunction-sections -fdata-sections -fvisibility=hidden -fvisibility-inlines-hidden -Os -g -DDEBUG -D_DEBUG
C Compiler: /home/kowshik/Documents/gcc/gcc-arm-none-eabi-10.3-2021.10/bin/arm-none-eabi-gcc
C flags (Release): -mcpu=cortex-r5 -mthumb -mfloat-abi=hard -mfpu=vfpv3-d16 -fPIC -w -Wno-psabi -Wno-dev --specs=nosys.specs -fdata-sections -ffunction-sections -Wl,--gc-sections -fsigned-char -W -Wall -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Wno-psabi -Wno-unnamed-type-template-args -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -fomit-frame-pointer -ffunction-sections -fdata-sections -fvisibility=hidden -fvisibility-inlines-hidden -Os -DNDEBUG -DNDEBUG
C flags (Debug): -mcpu=cortex-r5 -mthumb -mfloat-abi=hard -mfpu=vfpv3-d16 -fPIC -w -Wno-psabi -Wno-dev --specs=nosys.specs -fdata-sections -ffunction-sections -Wl,--gc-sections -fsigned-char -W -Wall -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Wno-psabi -Wno-unnamed-type-template-args -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -fomit-frame-pointer -ffunction-sections -fdata-sections -fvisibility=hidden -fvisibility-inlines-hidden -Os -g -DDEBUG -D_DEBUG
Linker flags (Release): -Wl,--gc-sections
Linker flags (Debug): -Wl,--gc-sections
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
GUI: NONE
Media I/O:
ZLib: zlib (ver 1.2.13)
JPEG: libjpeg-turbo (ver 2.1.3-62)
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)
HDR: YES
SUNRASTER: YES
PXM: YES
PFM: YES
Video I/O:
DC1394: NO
FFMPEG: NO
avcodec: NO
avformat: NO
avutil: NO
swscale: NO
avresample: NO
GStreamer: NO
Parallel framework: none
Trace: YES (with Intel ITT)
Other third-party libraries:
Lapack: NO
Custom HAL: NO
Protobuf: build (3.19.1)
Flatbuffers: builtin/3rdparty (23.1.21)
OpenCL: YES (no extra features)
Include path: /home/kowshik/Desktop/opencv_porting/opencv/3rdparty/include/opencl/1.2
Link libraries: Dynamic load
Python (for build): /usr/bin/python2.7
Install to: /home/kowshik/Desktop/opencv_porting/opencv/build/install
-----------------------------------------------------------------
Configuring done
CMake Error: install(EXPORT "OpenCVModules" ...) includes target "opencv_core" which requires target "zlib" that is not in any export set.
CMake Error: install(EXPORT "OpenCVModules" ...) includes target "opencv_core" which requires target "ittnotify" that is not in any export set.
CMake Error: install(EXPORT "OpenCVModules" ...) includes target "opencv_dnn" which requires target "ocv.3rdparty.flatbuffers" that is not in any export set.
CMake Error: install(EXPORT "OpenCVModules" ...) includes target "opencv_dnn" which requires target "libprotobuf" that is not in any export set.
CMake Error: install(EXPORT "OpenCVModules" ...) includes target "opencv_imgcodecs" which requires target "libjpeg-turbo" that is not in any export set.
CMake Error: install(EXPORT "OpenCVModules" ...) includes target "opencv_imgcodecs" which requires target "libwebp" that is not in any export set.
CMake Error: install(EXPORT "OpenCVModules" ...) includes target "opencv_imgcodecs" which requires target "libpng" that is not in any export set.
CMake Error: install(EXPORT "OpenCVModules" ...) includes target "opencv_imgcodecs" which requires target "libtiff" that is not in any export set.
CMake Error: install(EXPORT "OpenCVModules" ...) includes target "opencv_imgcodecs" which requires target "libopenjp2" that is not in any export set.
CMake Error: install(EXPORT "OpenCVModules" ...) includes target "opencv_imgcodecs" which requires target "zlib" that is not in any export set.
CMake Error: install(EXPORT "OpenCVModules" ...) includes target "opencv_objdetect" which requires target "quirc" that is not in any export set.
CMake Error: install(EXPORT "OpenCVModules" ...) includes target "opencv_gapi" which requires target "ade" that is not in any export set.
CMake Error: install(EXPORT "OpenCVModules" ...) includes target "opencv_gapi" which requires target "ittnotify" that is not in any export set.
CMake Error in CMakeLists.txt:
 export called with target "opencv_core" which requires target "zlib" that
 is not in any export set.


CMake Error in CMakeLists.txt:
 export called with target "opencv_core" which requires target "ittnotify"
 that is not in any export set.


CMake Error in CMakeLists.txt:
 export called with target "opencv_dnn" which requires target
 "ocv.3rdparty.flatbuffers" that is not in any export set.


CMake Error in CMakeLists.txt:
 export called with target "opencv_dnn" which requires target "libprotobuf"
 that is not in any export set.


CMake Error in CMakeLists.txt:
 export called with target "opencv_imgcodecs" which requires target
 "libjpeg-turbo" that is not in any export set.


CMake Error in CMakeLists.txt:
 export called with target "opencv_imgcodecs" which requires target
 "libwebp" that is not in any export set.


CMake Error in CMakeLists.txt:
 export called with target "opencv_imgcodecs" which requires target "libpng"
 that is not in any export set.


CMake Error in CMakeLists.txt:
 export called with target "opencv_imgcodecs" which requires target
 "libtiff" that is not in any export set.


CMake Error in CMakeLists.txt:
 export called with target "opencv_imgcodecs" which requires target
 "libopenjp2" that is not in any export set.


CMake Error in CMakeLists.txt:
 export called with target "opencv_imgcodecs" which requires target "zlib"
 that is not in any export set.


CMake Error in CMakeLists.txt:
 export called with target "opencv_objdetect" which requires target "quirc"
 that is not in any export set.


CMake Error in CMakeLists.txt:
 export called with target "opencv_gapi" which requires target "ade" that is
 not in any export set.


CMake Error in CMakeLists.txt:
 export called with target "opencv_gapi" which requires target "ittnotify"
 that is not in any export set.


Generating done
  • for a start, do yourself a favour, and reduce this to the bare minimum for now
    (highgui, on an mcu ?) avoid the imgcodecs, videoio modules with huge dependencies

    cmake -DBUILD_LIST=“core,calib3d,flann,imgproc”

  • can we see your cmake cmdline ?
    (i see a lot of setcommands, where do those go ?)

  • i have NO idea, how cmake finds 3rd party libs for cross-compilation
    (guess: a minefield) , look if there is src code in the 3rdparty folder, &when in doubt, try to use that., like:

    cmake -DBUILD_ZLIB=ON

Hi Berak,

Thanks for the reply, I have change the BUILD_LIST to minimal and yes it makes sense because of the low memory and RAM I might be having, thanks for pointing this out. I re-configured my build and now it shows only 4 libs as you suggested

OpenCV modules:
    To be built:                 core flann imgproc photo
    Disabled:                    dnn features2d gapi highgui imgcodecs java_bindings_generator js_bindings_generator ml objc_bindings_generator python_tests stitching ts video videoio world
    Disabled by dependency:      calib3d objdetect
    Unavailable:                 java python2 python3
    Applications:                apps
    Documentation:               NO
    Non-free algorithms:         NO

Can I know how to get the command run? I am using cmake-gui version and I am not able to see any command being printed, any variable or file I should refer to get the entire command please?

Yes, once I click Generate the step fails but it creates some make files in the 3rdparty folder as shown

image

Thanks

it’s all saved into build/CmakeCache.txt (if you need to look something up)

we probably need to see your current output

I think I found the compiler flags and commands, see if this is correct?

C++ Compiler: /home/kowshik/Documents/gcc/gcc-arm-none-eabi-10.3-2021.10/bin/arm-none-eabi-g++ (ver 10.3.1)
C++ flags (Release): -mcpu=cortex-r5 -mthumb -mfloat-abi=hard -mfpu=vfpv3-d16 -fPIC -Wno-psabi -Wno-dev --specs=nosys.specs -fdata-sections -ffunction-sections -Wl,--gc-sections -fno-exceptions -fsigned-char -W -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wno-psabi -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -fomit-frame-pointer -ffunction-sections -fdata-sections -fvisibility=hidden -fvisibility-inlines-hidden -Os -DNDEBUG -DNDEBUG
C++ flags (Debug): -mcpu=cortex-r5 -mthumb -mfloat-abi=hard -mfpu=vfpv3-d16 -fPIC -Wno-psabi -Wno-dev --specs=nosys.specs -fdata-sections -ffunction-sections -Wl,--gc-sections -fno-exceptions -fsigned-char -W -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wno-psabi -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -fomit-frame-pointer -ffunction-sections -fdata-sections -fvisibility=hidden -fvisibility-inlines-hidden -Os -g -DDEBUG -D_DEBUG
C Compiler: /home/kowshik/Documents/gcc/gcc-arm-none-eabi-10.3-2021.10/bin/arm-none-eabi-gcc
C flags (Release): -mcpu=cortex-r5 -mthumb -mfloat-abi=hard -mfpu=vfpv3-d16 -fPIC -Wno-psabi -Wno-dev --specs=nosys.specs -fdata-sections -ffunction-sections -Wl,--gc-sections -fsigned-char -W -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Wno-psabi -Wno-unnamed-type-template-args -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -fomit-frame-pointer -ffunction-sections -fdata-sections -fvisibility=hidden -Os -DNDEBUG -DNDEBUG
C flags (Debug): -mcpu=cortex-r5 -mthumb -mfloat-abi=hard -mfpu=vfpv3-d16 -fPIC -Wno-psabi -Wno-dev --specs=nosys.specs -fdata-sections -ffunction-sections -Wl,--gc-sections -fsigned-char -W -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Wno-psabi -Wno-unnamed-type-template-args -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -fomit-frame-pointer -ffunction-sections -fdata-sections -fvisibility=hidden -Os -g -DDEBUG -D_DEBUG
Linker flags (Release): -Wl,--gc-sections
Linker flags (Debug): -Wl,--gc-sections

Sure, here it is (After the configuration part is done)

-----------------------------------------------------------------
Configuring done
CMake Error: install(EXPORT "OpenCVModules" ...) includes target "opencv_core" which requires target "zlib" that is not in any export set.
CMake Error: install(EXPORT "OpenCVModules" ...) includes target "opencv_core" which requires target "ittnotify" that is not in any export set.
CMake Error in CMakeLists.txt:
 export called with target "opencv_core" which requires target "zlib" that
 is not in any export set.


CMake Error in CMakeLists.txt:
 export called with target "opencv_core" which requires target "ittnotify"
 that is not in any export set.


Generating done


Hi,

Any update on this? Did I miss any info? I guess it says Zlib is not found but I ensured zlib is correctly installed. I majorly concerned about these errors

CMake Error: install(EXPORT "OpenCVModules" ...) includes target "opencv_core" which requires target "zlib" that is not in any export set.
CMake Error: install(EXPORT "OpenCVModules" ...) includes target "opencv_core" which requires target "ittnotify" that is not in any export set.

not exactly. it states, that zlib is not in the export set

do you try to build static libs ?
(your program would need to be linked to zlib ad ittnotify later, and my guess now is, that those libs wont get installed along with the opencv libs, for reasons unknown)

Yes I left the BUILD_SHARED_LIBS option as checked. Should I uncheck it and try again?