Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot compile libndklibrarysample.so #8

Open
cruke opened this issue Nov 10, 2017 · 0 comments
Open

Cannot compile libndklibrarysample.so #8

cruke opened this issue Nov 10, 2017 · 0 comments

Comments

@cruke
Copy link

cruke commented Nov 10, 2017

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..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant