OpenCV Face Detection Sample Static Build Issues

asked 2014-02-17 14:14:07 -0500

eko gravatar image

updated 2014-02-17 14:17:21 -0500

berak gravatar image

Hi there

I'm using OpenCV 2.4.8 with Android on OSX 10.9.

I have build all the samples successfully and integrated the sample code into another project which also builds correctly. However I can't get it to build statically for the life of me, I've read pretty much every article I could find and I'm missing something stupid probably but would like a second pair of eyes!

Ive checked my build paths/settings multiple times and open cv is correctly pathed to my project. I'm not sure what i'm missing. The libs also exist in the libs/ folder

Thanks for any help!!!

Stacktrace

02-17 15:06:27.242: W/System.err(9694): java.lang.UnsatisfiedLinkError: Couldn't load opencv_java: findLibrary returned null
02-17 15:06:27.242: W/System.err(9694):     at java.lang.Runtime.loadLibrary(Runtime.java:365)
02-17 15:06:27.242: W/System.err(9694):     at java.lang.System.loadLibrary(System.java:535)
02-17 15:06:27.242: W/System.err(9694):     at org.opencv.android.StaticHelper.loadLibrary(StaticHelper.java:54)
02-17 15:06:27.250: W/System.err(9694):     at org.opencv.android.StaticHelper.initOpenCVLibs(StaticHelper.java:85)
02-17 15:06:27.250: W/System.err(9694):     at org.opencv.android.StaticHelper.initOpenCV(StaticHelper.java:29)
02-17 15:06:27.250: W/System.err(9694):     at org.opencv.android.OpenCVLoader.initDebug(OpenCVLoader.java:51)
02-17 15:06:27.250: W/System.err(9694):     at org.opencv.samples.facedetect.FdActivity.<clinit>(FdActivity.java:58)
02-17 15:06:27.250: W/System.err(9694):     at java.lang.Class.newInstanceImpl(Native Method)
02-17 15:06:27.250: W/System.err(9694):     at java.lang.Class.newInstance(Class.java:1319)
02-17 15:06:27.257: W/System.err(9694):     at android.app.Instrumentation.newActivity(Instrumentation.java:1068)
02-17 15:06:27.257: W/System.err(9694):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2044)
02-17 15:06:27.257: W/System.err(9694):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2154)
02-17 15:06:27.257: W/System.err(9694):     at android.app.ActivityThread.access$700(ActivityThread.java:146)
02-17 15:06:27.257: W/System.err(9694):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1260)
02-17 15:06:27.257: W/System.err(9694):     at android.os.Handler.dispatchMessage(Handler.java:99)
02-17 15:06:27.257: W/System.err(9694):     at android.os.Looper.loop(Looper.java:137)
02-17 15:06:27.257: W/System.err(9694):     at android.app.ActivityThread.main(ActivityThread.java:4949)
02-17 15:06:27.257: W/System.err(9694):     at java.lang.reflect.Method.invokeNative(Native Method)
02-17 15:06:27.257: W/System.err(9694):     at java.lang.reflect.Method.invoke(Method.java:511)
02-17 15:06:27.265: W/System.err(9694):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1043)
02-17 15:06:27.265: W/System.err(9694):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:810 ...
(more)
edit retag flag offensive close merge delete