android-demo-app
android-demo-app copied to clipboard
Environment var OPENCV_ANDROID_SDK set
I compile the Native example on Mac for android. I have put the opencv_for_android on my mac, and have set the path in .bashrc and source .bashrc. But when I run compile in Android Studio, it shows following:
debug|x86 :-- Detecting CXX compile features - done debug|x86 :CMake Error at CMakeLists.txt:35 (message): debug|x86 : Environment var OPENCV_ANDROID_SDK set debug|x86 :-- Configuring incomplete, errors occurred!
where the 35 line in CMakeLists is following:
OpenCV
if(NOT DEFINED ENV{OPENCV_ANDROID_SDK}) message(FATAL_ERROR "Environment var OPENCV_ANDROID_SDK set") endif()
And I print the path in the terminal of Android Studio with "echo $OPENCV_ANDROID_SDK", it shows correctly: NativeApp: echo $OPENCV_ANDROID_SDK /Users/kom/OpenCV-4.3.0-android-sdk
Please help me, and how can I do next?