Problems building OpenCV for Qt + Android

Hello, encountered a problem when assembling opencv in qt + android, here is the build output, here are the errors:

  • Undefined reference to TIFFClose (in file libopencv_imgcodecs.a)

  • Undefined reference to ‘AMediaExtractor_delete’(in libopencv_videoio.a)

  • Undefined reference to ‘AMediaFormat_delete’

  • Undefined reference to ‘cv:Algorithm::~Algorithm()’(in libopencv_objdetect.a)

I also attach a list of connected libraries:

OPENCV_ANDROID = $${PWD}/OpenCVFiles/sdk/
INCLUDEPATH += “$$OPENCV_ANDROID/sdk/native/jni/include/opencv2”
android {

LIBS += \
        -L"$$OPENCV_ANDROID/native/libs/armeabi-v7a/" \
        -L"$$OPENCV_ANDROID/native/staticlibs/armeabi-v7a/" \
        -L"$$OPENCV_ANDROID/native/3rdparty/libs/armeabi-v7a/" \
        -lcpufeatures \
        -llibjpeg-turbo \
        -llibtiff \
        -llibwebp \
        -llibopenjp2\
        -llibpng \
        -lIlmImf \
        -ltbb \
        -llibprotobuf \
        -lquirc \
        -ltegra_hal \
        -littnotify \
        -lade \
        -lopencv_core \
        -lopencv_flann \
        -lopencv_imgproc \
        -lopencv_ml \
        -lopencv_photo \
        -lopencv_dnn \
        -lopencv_features2d \
        -lopencv_imgcodecs \
        -lopencv_videoio\
        -lopencv_calib3d \
        -lopencv_highgui \
        -lopencv_objdetect \
        -lopencv_stitching \
        -lopencv_video \
        -lopencv_gapi \

message(“hello $$ANDROID_TARGET_ARCH”)
ANDROID_PACKAGE_SOURCE_DIR=$${PWD}/android
}

the sequence of libraries was selected based on the cmake modules file in the jni folder (foreach(_expectedTarget libcpufeatures libjpeg-turbo libtiff libwebp libopenjp2 libpng IlmImf tbb libprotobuf quirc tegra_hal ittnotify ade ocv.3rdparty.android_mediandk opencv_core opencv_flann opencv_imgproc opencv_ml opencv_photo opencv_dnn opencv_features2d opencv_imgcodecs opencv_videoio opencv_calib3d opencv_highgui opencv_objdetect opencv_stitching opencv_video opencv_gapi opencv_java))

but the correct sequence did not lead to anything.

I also think that AmediaFormat errors arise because I am not connected, ocv.3rdparty.android_mediandk, but I do not know where to find him, I will be grateful for the tip.

if anyone has experience with qt, help please for me the first experience with openCV and I don’t know what to do yet

please replace error-screenshot with TEXT, thank you.