mdyusuf000 / javacv

Automatically exported from code.google.com/p/javacv
GNU General Public License v2.0
0 stars 0 forks source link

javacv on android ( Cannot load library: reloc_library[1286]) #206

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Try to use IplImage.create(width / f, height / f, IPL_DEPTH_8U, 1);
2.
3.

What is the expected output? What do you see instead?
Expected to work. Instead it crashes :
05-23 17:55:13.623: E/AndroidRuntime(2998): FATAL EXCEPTION: main
05-23 17:55:13.623: E/AndroidRuntime(2998): 
java.lang.ExceptionInInitializerError
05-23 17:55:13.623: E/AndroidRuntime(2998):     at 
com.berner_mattner.fasapps.callback.AppSurfaceHolderCallback.processImage(AppSur
faceHolderCallback.java:229)
05-23 17:55:13.623: E/AndroidRuntime(2998):     at 
com.berner_mattner.fasapps.callback.AppSurfaceHolderCallback.onPreviewFrame(AppS
urfaceHolderCallback.java:206)
05-23 17:55:13.623: E/AndroidRuntime(2998):     at 
android.hardware.Camera$EventHandler.handleMessage(Camera.java:753)
05-23 17:55:13.623: E/AndroidRuntime(2998):     at 
android.os.Handler.dispatchMessage(Handler.java:99)
05-23 17:55:13.623: E/AndroidRuntime(2998):     at 
android.os.Looper.loop(Looper.java:137)
05-23 17:55:13.623: E/AndroidRuntime(2998):     at 
android.app.ActivityThread.main(ActivityThread.java:4507)
05-23 17:55:13.623: E/AndroidRuntime(2998):     at 
java.lang.reflect.Method.invokeNative(Native Method)
05-23 17:55:13.623: E/AndroidRuntime(2998):     at 
java.lang.reflect.Method.invoke(Method.java:511)
05-23 17:55:13.623: E/AndroidRuntime(2998):     at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:790)
05-23 17:55:13.623: E/AndroidRuntime(2998):     at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:557)
05-23 17:55:13.623: E/AndroidRuntime(2998):     at 
dalvik.system.NativeStart.main(Native Method)
05-23 17:55:13.623: E/AndroidRuntime(2998): Caused by: 
java.lang.ExceptionInInitializerError
05-23 17:55:13.623: E/AndroidRuntime(2998):     at 
java.lang.Class.classForName(Native Method)
05-23 17:55:13.623: E/AndroidRuntime(2998):     at 
java.lang.Class.forName(Class.java:217)
05-23 17:55:13.623: E/AndroidRuntime(2998):     at 
com.googlecode.javacpp.Loader.load(Loader.java:335)
05-23 17:55:13.623: E/AndroidRuntime(2998):     at 
com.googlecode.javacv.cpp.opencv_highgui.<clinit>(opencv_highgui.java:91)
05-23 17:55:13.623: E/AndroidRuntime(2998):     ... 11 more
05-23 17:55:13.623: E/AndroidRuntime(2998): Caused by: 
java.lang.ExceptionInInitializerError
05-23 17:55:13.623: E/AndroidRuntime(2998):     at 
java.lang.Class.classForName(Native Method)
05-23 17:55:13.623: E/AndroidRuntime(2998):     at 
java.lang.Class.forName(Class.java:217)
05-23 17:55:13.623: E/AndroidRuntime(2998):     at 
com.googlecode.javacpp.Loader.load(Loader.java:335)
05-23 17:55:13.623: E/AndroidRuntime(2998):     at 
com.googlecode.javacv.cpp.opencv_imgproc.<clinit>(opencv_imgproc.java:96)
05-23 17:55:13.623: E/AndroidRuntime(2998):     ... 15 more
05-23 17:55:13.623: E/AndroidRuntime(2998): Caused by: 
java.lang.UnsatisfiedLinkError: Cannot load library: reloc_library[1286]:  1834 
cannot locate '_ZSt20__throw_length_errorPKc'...
05-23 17:55:13.623: E/AndroidRuntime(2998):     at 
java.lang.Runtime.loadLibrary(Runtime.java:370)
05-23 17:55:13.623: E/AndroidRuntime(2998):     at 
java.lang.System.loadLibrary(System.java:535)
05-23 17:55:13.623: E/AndroidRuntime(2998):     at 
com.googlecode.javacpp.Loader.loadLibrary(Loader.java:409)
05-23 17:55:13.623: E/AndroidRuntime(2998):     at 
com.googlecode.javacpp.Loader.load(Loader.java:342)
05-23 17:55:13.623: E/AndroidRuntime(2998):     at 
com.googlecode.javacpp.Loader.load(Loader.java:316)
05-23 17:55:13.623: E/AndroidRuntime(2998):     at 
com.googlecode.javacv.cpp.opencv_core.<clinit>(opencv_core.java:129)
05-23 17:55:13.623: E/AndroidRuntime(2998):     ... 19 more

What version of the product are you using? On what operating system?
Latest libs from google code, set in armeabi and armeabi-v7. Testing on a 
Galaxy S (I9000) with Android 4.0.3

Please provide any additional information below.
The tutrial code "Quick Start for OpenCV and FFmpeg" gives the same exception.

Original issue reported on code.google.com by M.Sc.Chr...@googlemail.com on 23 May 2012 at 4:04

GoogleCodeExporter commented 9 years ago
Can you specify more precisely what you mean by "latest libs from google code"?

Original comment by samuel.a...@gmail.com on 24 May 2012 at 1:02

GoogleCodeExporter commented 9 years ago
I download (http://code.google.com/p/javacv/downloads/list):
- javacv.jar
- javacpp.jar
- javacv-windows-x86.jar
and add this files in my classpath.
Additional i extract files from:
- javacv-android-arm.jar
- OpenCv-2.4.0-android-arm.jar
- javacv-ffmpeg-android-arm.jar
and put the files to the dir (armeabi/armeabi-v7a).

Original comment by M.Sc.Chr...@googlemail.com on 24 May 2012 at 8:44

GoogleCodeExporter commented 9 years ago
Testing on a Galaxy S2 (I9100) with Android 4.0.3, but it doesn't work, too.

Original comment by M.Sc.Chr...@googlemail.com on 24 May 2012 at 10:05

GoogleCodeExporter commented 9 years ago
Ok, but which version of JavaCV have you tried? If you install this application
http://code.google.com/p/javacv/downloads/detail?name=facepreview-20120512.apk
does it start up and work properly or not?

Original comment by samuel.a...@gmail.com on 24 May 2012 at 12:33

GoogleCodeExporter commented 9 years ago
Okay. The facepreview works, but why? In my project i use the jars from 
javacv-bin-20120512.zip. 

Original comment by M.Sc.Chr...@googlemail.com on 24 May 2012 at 1:06

GoogleCodeExporter commented 9 years ago
Well let's see, can you list me the files that you have in your APK?

Original comment by samuel.a...@gmail.com on 25 May 2012 at 8:57

GoogleCodeExporter commented 9 years ago
libs:
- javacv.jar
- javacpp.jar
- javacv-windows-x86.jar
libs/armeabi:
- libjniARToolKitPlus.so
- libjniavcodec.so
- libjniavdevice.so
- libjniavformat.so
- libjniavutil.so
- libjnicvkernels.so
- libjniopencv_calib3d.so
- libjniopencv_contrib.so
- libjniopencv_core.so
- libjniopencv_features2d.so
- libjniopencv_flann.so
- libjniopencv_highgui.so
- libjniopencv_imgproc.so
- libjniopencv_legacy.so
- libjniopencv_ml.so
- libjniopencv_objdetect.so
- libjniopencv_video.so
- libjnipostproc.so
- libjniswscale.so
- libopencv_calib3d.so
- libopencv_contrib.so
- libopencv_core.so
- libopencv_features2d.so
- libopencv_flann.so
- libopencv_highgui.so
- libopencv_imgproc.so
- libopencv_legacy.so
- libopencv_ml.so
- libopencv_nonfree.so
- libopencv_objdetect.so
- libopencv_photo.so
- libopencv_stitching.so
- libopencv_video.so
- libopencv_videostab.so
libs/armeabi-v7a:
- libfastforsmart.so
- libopencv_calib3d.so
- libopencv_contrib.so
- libopencv_core.so
- libopencv_features2d.so
- libopencv_flann.so
- libopencv_highgui.so
- libopencv_imgproc.so
- libopencv_legacy.so
- libopencv_ml.so
- libopencv_nonfree.so
- libopencv_objdetect.so
- libopencv_photo.so
- libopencv_stitching.so
- libopencv_video.so
- libopencv_videostab.so

Original comment by M.Sc.Chr...@googlemail.com on 25 May 2012 at 9:20

GoogleCodeExporter commented 9 years ago
Have you tried putting files only in "libs/armeabi", and not in 
"libs/armeabi-v7a"?

Original comment by samuel.a...@gmail.com on 25 May 2012 at 9:27

GoogleCodeExporter commented 9 years ago
Yes. Get the same exception.

Original comment by M.Sc.Chr...@googlemail.com on 25 May 2012 at 10:21

GoogleCodeExporter commented 9 years ago
Well, try to find the differences between the files in your APK, and the files 
in facepreview-20120512.apk. We can figure out whatever you are doing wrong 
this way, or whatever bug there is in Android.

Original comment by samuel.a...@gmail.com on 25 May 2012 at 10:23

GoogleCodeExporter commented 9 years ago
I try to use the files from facepreview-20120512.apk and get this exception:
05-25 12:34:33.675: I/dalvikvm(16635): java.lang.ClassNotFoundException: 
com.googlecode.javacv.cpp.opencv_core$AlgorithmInfo
05-25 12:34:33.675: I/dalvikvm(16635):  at java.lang.Class.classForName(Native 
Method)
05-25 12:34:33.675: I/dalvikvm(16635):  at 
java.lang.Class.forName(Class.java:217)
05-25 12:34:33.675: I/dalvikvm(16635):  at 
com.googlecode.javacpp.Loader.putMemberOffset(Loader.java:476)
05-25 12:34:33.675: I/dalvikvm(16635):  at java.lang.Runtime.nativeLoad(Native 
Method)
05-25 12:34:33.675: I/dalvikvm(16635):  at java.lang.Runtime.nativeLoad(Native 
Method)
05-25 12:34:33.675: I/dalvikvm(16635):  at 
java.lang.Runtime.loadLibrary(Runtime.java:368)
05-25 12:34:33.675: I/dalvikvm(16635):  at 
java.lang.System.loadLibrary(System.java:535)
05-25 12:34:33.675: I/dalvikvm(16635):  at 
com.googlecode.javacpp.Loader.loadLibrary(Loader.java:409)
05-25 12:34:33.675: I/dalvikvm(16635):  at 
com.googlecode.javacpp.Loader.load(Loader.java:342)
05-25 12:34:33.675: I/dalvikvm(16635):  at 
com.googlecode.javacpp.Loader.load(Loader.java:316)
05-25 12:34:33.675: I/dalvikvm(16635):  at 
com.googlecode.javacv.cpp.opencv_core.<clinit>(opencv_core.java:129)
05-25 12:34:33.675: I/dalvikvm(16635):  at java.lang.Class.classForName(Native 
Method)
05-25 12:34:33.675: I/dalvikvm(16635):  at 
java.lang.Class.forName(Class.java:217)
05-25 12:34:33.675: I/dalvikvm(16635):  at 
com.googlecode.javacpp.Loader.load(Loader.java:335)
05-25 12:34:33.675: I/dalvikvm(16635):  at 
com.googlecode.javacpp.Loader.load(Loader.java:316)
05-25 12:34:33.675: I/dalvikvm(16635):  at 
com.googlecode.javacv.cpp.opencv_core$CvArr.<clinit>(opencv_core.java:156)
05-25 12:34:33.675: I/dalvikvm(16635):  at 
com.berner_mattner.fasapps.callback.AppSurfaceHolderCallback.processImage(AppSur
faceHolderCallback.java:212)
05-25 12:34:33.675: I/dalvikvm(16635):  at 
com.berner_mattner.fasapps.callback.AppSurfaceHolderCallback.onPreviewFrame(AppS
urfaceHolderCallback.java:204)
05-25 12:34:33.675: I/dalvikvm(16635):  at 
android.hardware.Camera$EventHandler.handleMessage(Camera.java:753)
05-25 12:34:33.680: I/dalvikvm(16635):  at 
android.os.Handler.dispatchMessage(Handler.java:99)
05-25 12:34:33.680: I/dalvikvm(16635):  at 
android.os.Looper.loop(Looper.java:137)
05-25 12:34:33.680: I/dalvikvm(16635):  at 
android.app.ActivityThread.main(ActivityThread.java:4507)
05-25 12:34:33.680: I/dalvikvm(16635):  at 
java.lang.reflect.Method.invokeNative(Native Method)
05-25 12:34:33.680: I/dalvikvm(16635):  at 
java.lang.reflect.Method.invoke(Method.java:511)
05-25 12:34:33.680: I/dalvikvm(16635):  at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:790)
05-25 12:34:33.680: I/dalvikvm(16635):  at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:557)
05-25 12:34:33.680: I/dalvikvm(16635):  at 
dalvik.system.NativeStart.main(Native Method)
05-25 12:34:33.680: I/dalvikvm(16635): "main" prio=5 tid=1 NATIVE
05-25 12:34:33.680: I/dalvikvm(16635):   | group="main" sCount=0 dsCount=0 
obj=0x40c42460 self=0x129d0
05-25 12:34:33.680: I/dalvikvm(16635):   | sysTid=16635 nice=0 sched=0/0 
cgrp=default handle=1075053768
05-25 12:34:33.680: I/dalvikvm(16635):   | schedstat=( 371390217 391039703 1672 
) utm=31 stm=6 core=1
05-25 12:34:33.680: I/dalvikvm(16635):   at java.lang.Runtime.nativeLoad(Native 
Method)
05-25 12:34:33.680: I/dalvikvm(16635):   at java.lang.Runtime.nativeLoad(Native 
Method)
05-25 12:34:33.680: I/dalvikvm(16635):   at 
java.lang.Runtime.loadLibrary(Runtime.java:368)
05-25 12:34:33.680: I/dalvikvm(16635):   at 
java.lang.System.loadLibrary(System.java:535)
05-25 12:34:33.680: I/dalvikvm(16635):   at 
com.googlecode.javacpp.Loader.loadLibrary(Loader.java:409)
05-25 12:34:33.680: I/dalvikvm(16635):   at 
com.googlecode.javacpp.Loader.load(Loader.java:342)
05-25 12:34:33.680: I/dalvikvm(16635):   at 
com.googlecode.javacpp.Loader.load(Loader.java:316)
05-25 12:34:33.680: I/dalvikvm(16635):   at 
com.googlecode.javacv.cpp.opencv_core.<clinit>(opencv_core.java:129)
05-25 12:34:33.680: I/dalvikvm(16635):   at java.lang.Class.classForName(Native 
Method)
05-25 12:34:33.680: I/dalvikvm(16635):   at 
java.lang.Class.forName(Class.java:217)
05-25 12:34:33.680: I/dalvikvm(16635):   at 
com.googlecode.javacpp.Loader.load(Loader.java:335)
05-25 12:34:33.680: I/dalvikvm(16635):   at 
com.googlecode.javacpp.Loader.load(Loader.java:316)
05-25 12:34:33.680: I/dalvikvm(16635):   at 
com.googlecode.javacv.cpp.opencv_core$CvArr.<clinit>(opencv_core.java:156)
05-25 12:34:33.680: I/dalvikvm(16635):   at 
com.berner_mattner.fasapps.callback.AppSurfaceHolderCallback.processImage(AppSur
faceHolderCallback.java:-1)
05-25 12:34:33.680: I/dalvikvm(16635):   at 
com.berner_mattner.fasapps.callback.AppSurfaceHolderCallback.onPreviewFrame(AppS
urfaceHolderCallback.java:204)
05-25 12:34:33.680: I/dalvikvm(16635):   at 
android.hardware.Camera$EventHandler.handleMessage(Camera.java:753)
05-25 12:34:33.680: I/dalvikvm(16635):   at 
android.os.Handler.dispatchMessage(Handler.java:99)
05-25 12:34:33.680: I/dalvikvm(16635):   at 
android.os.Looper.loop(Looper.java:137)
05-25 12:34:33.680: I/dalvikvm(16635):   at 
android.app.ActivityThread.main(ActivityThread.java:4507)
05-25 12:34:33.680: I/dalvikvm(16635):   at 
java.lang.reflect.Method.invokeNative(Native Method)
05-25 12:34:33.680: I/dalvikvm(16635):   at 
java.lang.reflect.Method.invoke(Method.java:511)
05-25 12:34:33.680: I/dalvikvm(16635):   at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:790)
05-25 12:34:33.680: I/dalvikvm(16635):   at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:557)
05-25 12:34:33.680: I/dalvikvm(16635):   at 
dalvik.system.NativeStart.main(Native Method)

Original comment by M.Sc.Chr...@googlemail.com on 25 May 2012 at 10:38

GoogleCodeExporter commented 9 years ago
It looks like you have old stuff lying around somewhere. These classes are new 
with OpenCV 2.4.0. Did you try to uninstall everything, recreate your project 
files, etc.? Android itself and the Android plug-in for Eclipse are known not 
to clear their caches properly...

Original comment by samuel.a...@gmail.com on 26 May 2012 at 11:18

GoogleCodeExporter commented 9 years ago
I try to reinstall eclipse the adt plugin and the android sdk, but i still get 
the same error: java.lang.ClassNotFoundException: 
com.googlecode.javacv.cpp.opencv_core$AlgorithmInfo ...

Original comment by M.Sc.Chr...@googlemail.com on 29 May 2012 at 11:21

GoogleCodeExporter commented 9 years ago
FacePreview works, so you are still doing something different. When you figure 
out what breaks it, please let me know. I cannot fix something I cannot 
reproduce here on my machine.

Original comment by samuel.a...@gmail.com on 29 May 2012 at 12:20

GoogleCodeExporter commented 9 years ago
It seams that this issue occurs when you try to load using Loader.load(Class<>) 
a java class that extends Pointer and have public native static method to 
access cpp public static methods.

Any ideas how this could be fixed ?

btw. I'm using javacpp 0.1-7-g3fd6db7

Original comment by Dariusz.Luksza on 11 Jul 2012 at 5:26

GoogleCodeExporter commented 9 years ago
btw. loading java classes without "public native static" methods works just 
fine ...

Original comment by Dariusz.Luksza on 11 Jul 2012 at 5:28

GoogleCodeExporter commented 9 years ago
never mind, it appears to be linking problem on my side

Original comment by Dariusz.Luksza on 12 Jul 2012 at 10:02

GoogleCodeExporter commented 9 years ago
Could you retry with JavaCV 0.2? I've recompiled all the stuff with the same 
recent version of the NDK, so it may have fixed whatever the problem was...

Original comment by samuel.a...@gmail.com on 22 Jul 2012 at 12:49

GoogleCodeExporter commented 9 years ago
I'm getting similar issues with a clean project and javaCV 0.2. Specifically 
the stacktrace reads:

...
07-23 06:44:45.664: WARN/System.err(17762): Caused by: 
java.lang.ExceptionInInitializerError
07-23 06:44:45.664: WARN/System.err(17762): at 
java.lang.Class.classForName(Native Method)
07-23 06:44:45.664: WARN/System.err(17762): at 
java.lang.Class.forName(Class.java:217)
07-23 06:44:45.664: WARN/System.err(17762): at 
com.googlecode.javacpp.Loader.load(Loader.java:334)
07-23 06:44:45.664: WARN/System.err(17762): at 
com.googlecode.javacv.cpp.avcodec.<clinit>(avcodec.java:85)
07-23 06:44:45.664: WARN/System.err(17762): ... 12 more
07-23 06:44:45.664: WARN/System.err(17762): Caused by: 
java.lang.UnsatisfiedLinkError: Cannot load library: reloc_library[1285]:   117 
cannot locate 'av_opt_eval_int64'...
07-23 06:44:45.664: WARN/System.err(17762): [ 07-23 06:44:45.672 17762:0x46ca 
W/System.err ]
        at java.lang.Runtime.loadLibrary(Runtime.java:370)
07-23 06:44:45.672: WARN/System.err(17762): at 
java.lang.System.loadLibrary(System.java:535)
07-23 06:44:45.672: WARN/System.err(17762): at 
com.googlecode.javacpp.Loader.loadLibrary(Loader.java:444)
07-23 06:44:45.672: WARN/System.err(17762): at 
com.googlecode.javacpp.Loader.load(Loader.java:368)
07-23 06:44:45.672: WARN/System.err(17762): at 
com.googlecode.javacpp.Loader.load(Loader.java:315)
07-23 06:44:45.672: WARN/System.err(17762): at 
com.googlecode.javacv.cpp.avutil.<clinit>(avutil.java:75)
07-23 06:44:45.672: WARN/System.err(17762): ... 16 more
...

And the libs/ folder of my project contains the following files 
libs
total 3120
drwxr-xr-x   8 272B Jul 22 22:40 .
drwxr-xr-x  25 850B Jul 22 20:55 ..
-rw-r--r--@  1 6.0K Jul 22 22:40 .DS_Store
-rw-------   1  70K Jun 16 19:32 FlurryAgent.jar
-rw-r--r--   1 330K Jul 21 21:07 android-support-v4.jar
drwxr-xr-x  50 1.7K Jul 23 06:42 armeabi
-rw-r--r--@  1  98K Jul 21 20:01 javacpp.jar
-rw-r--r--@  1 1.0M Jul 21 20:39 javacv.jar

libs/armeabi:
total 58768
drwxr-xr-x  50 1.7K Jul 23 06:42 .
drwxr-xr-x   8 272B Jul 22 22:40 ..
-rwxr-xr-x   1 6.0M Jul 21 21:07 libavcodec.so
-rwxr-xr-x   1  19K Jul 21 21:07 libavdevice.so
-rwxr-xr-x   1 407K Jul 21 21:07 libavfilter.so
-rwxr-xr-x   1 948K Jul 21 21:07 libavformat.so
-rwxr-xr-x   1 113K Jul 21 21:07 libavutil.so
-rwxr-xr-x   1 1.1M Apr 24 02:23 libgnustl_shared.so
-rwxr-xr-x@  1 385K Jul 21 20:07 libjniARToolKitPlus.so
-rwxr-xr-x@  1 408K Jul 21 20:08 libjniavcodec.so
-rwxr-xr-x@  1  94K Jul 21 20:08 libjniavdevice.so
-rwxr-xr-x@  1 214K Jul 21 20:08 libjniavfilter.so
-rwxr-xr-x@  1 221K Jul 21 20:08 libjniavformat.so
-rwxr-xr-x@  1 150K Jul 21 20:08 libjniavutil.so
-rwxr-xr-x@  1 109K Jul 21 20:08 libjnicvkernels.so
-rwxr-xr-x@  1 122K Jul 21 20:08 libjniopencv_calib3d.so
-rwxr-xr-x@  1 599K Jul 21 20:09 libjniopencv_contrib.so
-rwxr-xr-x@  1 532K Jul 21 20:09 libjniopencv_core.so
-rwxr-xr-x@  1 233K Jul 21 20:10 libjniopencv_features2d.so
-rwxr-xr-x@  1  99K Jul 21 20:10 libjniopencv_flann.so
-rwxr-xr-x@  1  57K Jul 21 20:10 libjniopencv_highgui.so
-rwxr-xr-x@  1 243K Jul 21 20:10 libjniopencv_imgproc.so
-rwxr-xr-x@  1 993K Jul 21 20:11 libjniopencv_legacy.so
-rwxr-xr-x@  1 648K Jul 21 20:11 libjniopencv_ml.so
-rwxr-xr-x@  1  85K Jul 21 20:12 libjniopencv_nonfree.so
-rwxr-xr-x@  1 235K Jul 21 20:12 libjniopencv_objdetect.so
-rwxr-xr-x@  1  39K Jul 21 20:12 libjniopencv_photo.so
-rwxr-xr-x@  1 664K Jul 21 20:12 libjniopencv_stitching.so
-rwxr-xr-x@  1 108K Jul 21 20:12 libjniopencv_video.so
-rwxr-xr-x@  1 164K Jul 21 20:13 libjniopencv_videostab.so
-rwxr-xr-x@  1  85K Jul 21 20:13 libjnipostproc.so
-rwxr-xr-x@  1  89K Jul 21 20:13 libjniswresample.so
-rwxr-xr-x@  1 106K Jul 21 20:13 libjniswscale.so
-rw-r--r--   1 939K Jul 21 21:07 libopencv_calib3d.so
-rw-r--r--   1 1.0M Jul 21 21:07 libopencv_contrib.so
-rw-r--r--   1 2.2M Jul 21 21:07 libopencv_core.so
-rw-r--r--   1 843K Jul 21 21:07 libopencv_features2d.so
-rw-r--r--   1 690K Jul 21 21:07 libopencv_flann.so
-rw-r--r--   1 1.1M Jul 21 21:07 libopencv_highgui.so
-rw-r--r--   1 1.9M Jul 21 21:07 libopencv_imgproc.so
-rw-r--r--   1 1.4M Jul 21 21:07 libopencv_legacy.so
-rw-r--r--   1 856K Jul 21 21:07 libopencv_ml.so
-rw-r--r--   1 448K Jul 21 21:07 libopencv_nonfree.so
-rw-r--r--   1 421K Jul 21 21:07 libopencv_objdetect.so
-rw-r--r--   1  59K Jul 21 21:07 libopencv_photo.so
-rw-r--r--   1 751K Jul 21 21:07 libopencv_stitching.so
-rw-r--r--   1 195K Jul 21 21:07 libopencv_video.so
-rw-r--r--   1 548K Jul 21 21:07 libopencv_videostab.so
-rwxr-xr-x   1  87K Jul 21 21:07 libpostproc.so
-rwxr-xr-x   1 159K Jul 21 21:07 libswscale.so

I'm compiling with Intellij with adt 20.0.1, ndk-r8

Original comment by k...@brightleafsoftware.com on 23 Jul 2012 at 11:07

GoogleCodeExporter commented 9 years ago
Also, here's the relevant code to trigger that stacktrace:

    private Bitmap getTempStillIntoMemoryFromFFMPEG(int position, Boolean thumb) throws Exception {

        FFmpegFrameGrabber grabber = new FFmpegFrameGrabber(mFilename);
        grabber.start();
        grabber.setFrameNumber(position);
        IplImage frame = grabber.grab();
        Bitmap bm = Bitmap.createBitmap(frame.width(), frame.height(), Bitmap.Config.ARGB_8888);
        bm.copyPixelsFromBuffer(frame.getByteBuffer());
        grabber.release();
        if (thumb) {
            return Bitmap.createScaledBitmap(bm, ninetyPWidth, ninetyPHeight, true);
        }
        return bm;
    }

Original comment by k...@brightleafsoftware.com on 23 Jul 2012 at 11:08

GoogleCodeExporter commented 9 years ago
@brightleafsoftware.com You need FFmpeg 0.11.x

Original comment by samuel.a...@gmail.com on 23 Jul 2012 at 12:02

GoogleCodeExporter commented 9 years ago
I have the same problem,
the FacePreview works fine but when I try 
the sample code for FaceRecognition it does not work
when there is a call to cvCalcEigenObjects I get 
08-06 18:47:00.583: E/AndroidRuntime(29720): Caused by: 
java.lang.UnsatisfiedLinkError: Cannot load library: reloc_library[1290]:   141 
cannot locate 
'_ZN2cv5FREAK11selectPairsERKSt6vectorINS_3MatESaIS2_EERS1_IS1_INS_8KeyPointESaI
S7_EESaIS9_EEdb'...

Original comment by j...@pdactech.com on 6 Aug 2012 at 3:48

GoogleCodeExporter commented 9 years ago
@juda Do you still get this with JavaCV 0.2 and OpenCV 2.4.2?

Original comment by samuel.a...@gmail.com on 7 Aug 2012 at 1:06

GoogleCodeExporter commented 9 years ago
Yes

Original comment by j...@pdactech.com on 7 Aug 2012 at 6:19

GoogleCodeExporter commented 9 years ago
And you are sure it doesn't have something to do with issue #199?

Original comment by samuel.a...@gmail.com on 7 Aug 2012 at 6:20

GoogleCodeExporter commented 9 years ago
Nevermind,
I just removed all the .so files,
uninstalled the program from the device,
entered the .so files to the program again and run the program,
and I didnt got the error.
thanks anyway.

Original comment by j...@pdactech.com on 7 Aug 2012 at 6:59

GoogleCodeExporter commented 9 years ago
Given the lack of feedback, I'm assuming that whatever the problem was has been 
resolved, but please let me know if this isn't the case.

Original comment by samuel.a...@gmail.com on 5 Nov 2012 at 11:32