1

我已经下载了 openCV 库。现在,当我尝试运行示例 faceDetection 应用程序时,它显示以下错误:

08-11 15:59:55.071: E/AndroidRuntime(13837): FATAL EXCEPTION: main
08-11 15:59:55.071: E/AndroidRuntime(13837): java.lang.UnsatisfiedLinkError: Couldn't load detection_based_tracer: findLibrary returned null

 08-11 15:59:55.071: E/AndroidRuntime(13837):   at java.lang.Runtime.loadLibrary(Runtime.java:429)
08-11 15:59:55.071: E/AndroidRuntime(13837):    at java.lang.System.loadLibrary(System.java:554)
08-11 15:59:55.071: E/AndroidRuntime(13837):    at com.kratin.opencvfacedetection.FdActivity$1.onManagerConnected(FdActivity.java:36)
08-11 15:59:55.071: E/AndroidRuntime(13837):    at org.opencv.android.AsyncServiceHelper$1.onServiceConnected(AsyncServiceHelper.java:206)
08-11 15:59:55.071: E/AndroidRuntime(13837):    at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:1064)
 08-11 15:59:55.071: E/AndroidRuntime(13837):   at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:1081)
08-11 15:59:55.071: E/AndroidRuntime(13837):    at android.os.Handler.handleCallback(Handler.java:587)
08-11 15:59:55.071: E/AndroidRuntime(13837):    at android.os.Handler.dispatchMessage(Handler.java:92)
08-11 15:59:55.071: E/AndroidRuntime(13837):    at android.os.Looper.loop(Looper.java:130)
  08-11 15:59:55.071: E/AndroidRuntime(13837):  at android.app.ActivityThread.main(ActivityThread.java:3701)
 08-11 15:59:55.071: E/AndroidRuntime(13837):   at java.lang.reflect.Method.invokeNative(Native Method)
 08-11 15:59:55.071: E/AndroidRuntime(13837):   at java.lang.reflect.Method.invoke(Method.java:507)
 08-11 15:59:55.071: E/AndroidRuntime(13837):   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
 08-11 15:59:55.071: E/AndroidRuntime(13837):   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:624)
 08-11 15:59:55.071: E/AndroidRuntime(13837):   at dalvik.system.NativeStart.main(Native Method)

但是预编译的 facedetection.apk 运行没有任何问题。那么当我从示例应用程序运行它时出了什么问题?请帮帮我..我正在使用 ubuntu 操作系统。

4

2 回答 2

0

如果你使用 ubuntu,

项目右键->属性->c/c++构建->构建命令

如果这是 ndk-build.cmd ,则必须修复“ your ndk path/ndk-build ”

于 2014-11-24T05:28:38.720 回答
0

已解决..我已将环境变量路径设置为ndk..并使用ln命令建立链接,重建后问题解决..

于 2012-08-22T12:23:59.120 回答