OpenCV-AndroidSamples icon indicating copy to clipboard operation
OpenCV-AndroidSamples copied to clipboard

Cannot compile libndklibrarysample.so

Open cruke opened this issue 8 years ago • 0 comments

Why I can't compile the module "ndklibrarysample" into the APK? I extracted the APK and could not find the required libndklibrarysample.so, making that Face Detection and Tutorial 2 failed to work. Is any parameter or setting that I'm missing here?

OK, managed to solve the problem by using these settings:

  1. Use Android Studio 2.1 (I use AS 2.1.1)
  2. Use JDK 7 (I use jdk1.7.0_71)
  3. Use android-ndk-r10e
  4. Use OpenCV 4 Android SDK version 3.0.0

Download zip file of this repository, unzip it somewhere. Then Open AS 2.1, Open Project by locating the directory which contains 'app' folder. Modify the jni include directory in the 'build.gradle (Module: app)' file to our OpenCV SDK folder, then Run this app into Android device/emulator. That's all. Phew! Took me many days to get this..

cruke avatar Nov 10 '17 04:11 cruke