Hi, ladies and gentlemen!!!
I try to use native(C++) lib on Android Studio, but configuring CMakeList.txt file got next error
C:\Users\draft\AndroidStudioProjects\OCV_Ntv_2\app\src\main\cpp\CMakeLists.txt : C/C++ debug|armeabi-v7a : CMake Error at C:\Users\draft\AndroidStudioProjects\OCV_Ntv_2\app\src\main\cpp\CMakeLists.txt:14 (find_package):
Found package configuration file:
C:/opencv-4.2.0-android-sdk/OpenCV-android-sdk/sdk/native/jni/OpenCVConfig.cmake
but it set OpenCV_FOUND to FALSE so package “OpenCV” is considered to be
NOT FOUND.
My code from CMakeList.txt file is next
#opencv install stuff
set(OpenCV_STATIC on)
#set(OpenCV_DIR $ENV{OPENCV_ANDROID}/sdk/native/jni)
set(OpenCV_DIR C:/opencv-4.2.0-android-sdk/OpenCV-android-sdk/sdk/native/jni)
find_package(OpenCV REQUIRED)
Pls help with info what is wrong OR I need smth to add ?