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