今天搞了一下android 的OpenCV的示例程序,已经编译好的example-face-detection 没有问题,可是自己编译的就会出现以下错误:
AndroidRuntime(1574): Caused by: java.lang.UnsatisfiedLinkError: Couldn'tload detection_based_tracker: findLibrary returned null
在google上查了很多资料,有人说经过以下两个步骤就好
1) Right click on project-> property ->c/c++ build in builder setting field give manually full path of your ndk then apply and ok
2) In jni/application.mk do APP_ABI := armeabi
可是我的还是不行,后来我在官方example-face-detection包里的lib文件夹改成libs放到工程文件里就可以正常运行了!