Closed GoogleCodeExporter closed 8 years ago
The Samsung Galaxy Y S5360 seems to come with an ARMv6 processor, which isn't
compatible with ARMv7. You'll need to recompile the binaries for ARMv6 (or
ARMv5) as instructed in the README.txt file of the "cppjars" package.
Please post your questions on the mailing next time if possible, thank you!
Original comment by samuel.a...@gmail.com
on 5 Jul 2013 at 3:56
Thanks for your quick and valid reply.
I read the README.txt file of the "cppjars" package but i could not recompile
the binaries for ARMv6. I also reffered the thread
https://code.google.com/p/javacv/issues/detail?id=60 (issue no. 60)
and downloaded the "OpenCV-2.2.0-android-armv5.zip" file as you provided the
link to download precompiled OpenCV 2.2 for ARMv5. I replaced all the .so files
of opencv-2.4.5-android-arm with the new one, you provided for ARMv5.
But when i execute the facepreview sample with these changes at my Samsung
Galaxy Y(with armv6), it crashes and i got the following logs this time.
07-08 15:27:10.632: D/dalvikvm(32368): GC_CONCURRENT freed 324K, 48% free
2941K/5639K, external 408K/517K, paused 4ms+24ms
07-08 15:27:10.984: D/dalvikvm(32368): Trying to load lib
/data/data/com.appzcloud.javacvtest/lib/libopencv_core.so 0x40518e38
07-08 15:27:11.140: D/dalvikvm(32368): Added shared lib
/data/data/com.appzcloud.javacvtest/lib/libopencv_core.so 0x40518e38
07-08 15:27:11.140: D/dalvikvm(32368): No JNI_OnLoad found in
/data/data/com.appzcloud.javacvtest/lib/libopencv_core.so 0x40518e38, skipping
init
07-08 15:27:11.148: D/dalvikvm(32368): Trying to load lib
/data/data/com.appzcloud.javacvtest/lib/libjniopencv_core.so 0x40518e38
07-08 15:27:11.187: W/dalvikvm(32368): Exception
Ljava/lang/UnsatisfiedLinkError; thrown while initializing
Lcom/googlecode/javacv/cpp/opencv_core;
07-08 15:27:11.187: W/dalvikvm(32368): Exception
Ljava/lang/ExceptionInInitializerError; thrown while initializing
Lcom/googlecode/javacv/cpp/opencv_imgproc;
07-08 15:27:11.187: W/dalvikvm(32368): Exception
Ljava/lang/ExceptionInInitializerError; thrown while initializing
Lcom/googlecode/javacv/cpp/opencv_objdetect;
07-08 15:27:11.234: D/AndroidRuntime(32368): Shutting down VM
07-08 15:27:11.234: W/dalvikvm(32368): threadid=1: thread exiting with uncaught
exception (group=0x40018578)
07-08 15:27:11.328: E/AndroidRuntime(32368): FATAL EXCEPTION: main
07-08 15:27:11.328: E/AndroidRuntime(32368):
java.lang.ExceptionInInitializerError
07-08 15:27:11.328: E/AndroidRuntime(32368): at
java.lang.Class.classForName(Native Method)
07-08 15:27:11.328: E/AndroidRuntime(32368): at
java.lang.Class.forName(Class.java:234)
07-08 15:27:11.328: E/AndroidRuntime(32368): at
com.googlecode.javacpp.Loader.load(Loader.java:453)
07-08 15:27:11.328: E/AndroidRuntime(32368): at
com.appzcloud.javacvtest.FaceView.<init>(FaceView.java:51)
07-08 15:27:11.328: E/AndroidRuntime(32368): at
com.appzcloud.javacvtest.FacePreview.onCreate(FacePreview.java:32)
07-08 15:27:11.328: E/AndroidRuntime(32368): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
07-08 15:27:11.328: E/AndroidRuntime(32368): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1615)
07-08 15:27:11.328: E/AndroidRuntime(32368): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667)
07-08 15:27:11.328: E/AndroidRuntime(32368): at
android.app.ActivityThread.access$1500(ActivityThread.java:117)
07-08 15:27:11.328: E/AndroidRuntime(32368): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:935)
07-08 15:27:11.328: E/AndroidRuntime(32368): at
android.os.Handler.dispatchMessage(Handler.java:99)
07-08 15:27:11.328: E/AndroidRuntime(32368): at
android.os.Looper.loop(Looper.java:130)
07-08 15:27:11.328: E/AndroidRuntime(32368): at
android.app.ActivityThread.main(ActivityThread.java:3687)
07-08 15:27:11.328: E/AndroidRuntime(32368): at
java.lang.reflect.Method.invokeNative(Native Method)
07-08 15:27:11.328: E/AndroidRuntime(32368): at
java.lang.reflect.Method.invoke(Method.java:507)
07-08 15:27:11.328: E/AndroidRuntime(32368): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
07-08 15:27:11.328: E/AndroidRuntime(32368): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)
07-08 15:27:11.328: E/AndroidRuntime(32368): at
dalvik.system.NativeStart.main(Native Method)
07-08 15:27:11.328: E/AndroidRuntime(32368): Caused by:
java.lang.ExceptionInInitializerError
07-08 15:27:11.328: E/AndroidRuntime(32368): at
java.lang.Class.classForName(Native Method)
07-08 15:27:11.328: E/AndroidRuntime(32368): at
java.lang.Class.forName(Class.java:234)
07-08 15:27:11.328: E/AndroidRuntime(32368): at
com.googlecode.javacpp.Loader.load(Loader.java:453)
07-08 15:27:11.328: E/AndroidRuntime(32368): at
com.googlecode.javacv.cpp.opencv_objdetect.<clinit>(opencv_objdetect.java:97)
07-08 15:27:11.328: E/AndroidRuntime(32368): ... 18 more
07-08 15:27:11.328: E/AndroidRuntime(32368): Caused by:
java.lang.ExceptionInInitializerError
07-08 15:27:11.328: E/AndroidRuntime(32368): at
java.lang.Class.classForName(Native Method)
07-08 15:27:11.328: E/AndroidRuntime(32368): at
java.lang.Class.forName(Class.java:234)
07-08 15:27:11.328: E/AndroidRuntime(32368): at
com.googlecode.javacpp.Loader.load(Loader.java:453)
07-08 15:27:11.328: E/AndroidRuntime(32368): at
com.googlecode.javacv.cpp.opencv_imgproc.<clinit>(opencv_imgproc.java:97)
07-08 15:27:11.328: E/AndroidRuntime(32368): ... 22 more
07-08 15:27:11.328: E/AndroidRuntime(32368): Caused by:
java.lang.UnsatisfiedLinkError: Cannot load library: reloc_library[1312]: 1311
cannot locate '_ZN2cv13AlgorithmInfoD1Ev'...
07-08 15:27:11.328: E/AndroidRuntime(32368): at
java.lang.Runtime.loadLibrary(Runtime.java:434)
07-08 15:27:11.328: E/AndroidRuntime(32368): at
java.lang.System.loadLibrary(System.java:554)
07-08 15:27:11.328: E/AndroidRuntime(32368): at
com.googlecode.javacpp.Loader.loadLibrary(Loader.java:593)
07-08 15:27:11.328: E/AndroidRuntime(32368): at
com.googlecode.javacpp.Loader.load(Loader.java:489)
07-08 15:27:11.328: E/AndroidRuntime(32368): at
com.googlecode.javacpp.Loader.load(Loader.java:431)
07-08 15:27:11.328: E/AndroidRuntime(32368): at
com.googlecode.javacv.cpp.opencv_core.<clinit>(opencv_core.java:136)
07-08 15:27:11.328: E/AndroidRuntime(32368): ... 26 more
07-08 15:27:11.328: E/AndroidRuntime(32368): Caused by:
java.lang.UnsatisfiedLinkError: Couldn't load tbb: findLibrary returned null
07-08 15:27:11.328: E/AndroidRuntime(32368): at
java.lang.Runtime.loadLibrary(Runtime.java:429)
07-08 15:27:11.328: E/AndroidRuntime(32368): at
java.lang.System.loadLibrary(System.java:554)
07-08 15:27:11.328: E/AndroidRuntime(32368): at
com.googlecode.javacpp.Loader.loadLibrary(Loader.java:593)
07-08 15:27:11.328: E/AndroidRuntime(32368): at
com.googlecode.javacpp.Loader.load(Loader.java:481)
07-08 15:27:11.328: E/AndroidRuntime(32368): ... 28 more
07-08 15:27:11.734: D/dalvikvm(32368): GC_CONCURRENT freed 447K, 50% free
3005K/5895K, external 408K/517K, paused 3ms+10ms
Can you provide me precompiled binaries for armv6.
Original comment by shiva.ag...@appzcloud.com
on 8 Jul 2013 at 10:12
There's two problems here:
1. Android does not support ARMv6, only ARMv5 or ARMv7.
2. Although ARMv5 is compatible with both ARMv6 and ARMv7, since it doesn't
have an FPU, the performance is something like 100 times worse.
Is it OK for your application to be 100 times slower?
Original comment by samuel.a...@gmail.com
on 8 Jul 2013 at 11:07
Thanks for your quick reply
i agree with your point but still i want to execute it at my Samsung galaxy Y
just for curiousity, want to see it working at this device.
So, i need appropriate precompiled binaries for this device.
Original comment by shiva.ag...@appzcloud.com
on 8 Jul 2013 at 11:40
Hi Samuel.
As i am using javac. Great work done by you. I am facing one problem. i want to
rotate an IplImage at 90 degree angle. cvFlip(IplImage, IplImage,int param) is
also there to flip the image but it is not rotating my IplImage at 90 degree
angle. Please help me out.
Thanks
Original comment by shivaagr...@gmail.com
on 11 Jul 2013 at 10:33
Original issue reported on code.google.com by
shiva.ag...@appzcloud.com
on 4 Jul 2013 at 12:59