Using Android ADT am, I am trying to statically initialize openCV, so it is included in the application assembly, and users do not need to download OpenCV Manager from the Android game store.
Am uses openCV v3 ( http://opencv.org/downloads.html )
At the stage, it simply tries to add static initialization to one of the samples in OpenCV-android-sdk \ samples \ face-detection.
I followed the example ( http://docs.opencv.org/2.4/doc/tutorials/introduction/android_binary_package/dev_with_OCV_on_Android.html )
I looked at many examples, but have not yet found a solution for its work. I really hope that someone can help.
I thought maybe because libopencv_java3.so is not located in the libs/armeabi-v7a/ When I copy and paste it from OpenCV-android-sdk\sdk\native\libs\armeabi-v7a , it disappears. I believe this may be due to the way ndk is configured. Of course, the problem may be something completely different.
LogCat gives the following:
11-26 16:36:33.647: D/OpenCV/StaticHelper(13993): Trying to load library opencv_java3 11-26 16:36:33.647: D/OpenCV/StaticHelper(13993): Cannot load library "opencv_java3" 11-26 16:36:33.647: W/System.err(13993): java.lang.UnsatisfiedLinkError: Couldn't load opencv_java3 from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/org.opencv.samples.facedetect-1.apk"],nativeLibraryDirectories=[/data/app-lib/org.opencv.samples.facedetect-1, /vendor/lib, /system/lib, /vendor/lib]]]: findLibrary returned null 11-26 16:36:33.767: D/OpenCV/StaticHelper(13993): Trying to load library opencv_java3 11-26 16:36:33.767: D/OpenCV/StaticHelper(13993): Cannot load library "opencv_java3" 11-26 16:36:33.767: W/System.err(13993): java.lang.UnsatisfiedLinkError: Couldn't load opencv_java3 from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/org.opencv.samples.facedetect-1.apk"],nativeLibraryDirectories=[/data/app-lib/org.opencv.samples.facedetect-1, /vendor/lib, /system/lib, /vendor/lib]]]: findLibrary returned null
java android opencv android-ndk
Garry dunicazzz
source share