jloyd / javacv

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

Android Virtual Device test #60

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Compile Android example of javacv
2. Run on VD Android 2.2 or 2.3.3 with camera support and 512+ MB ram
(On real device Nexsus One or Samsung Galaxy S this example works fine!)

What is the expected output? What do you see instead?
Application stops at command:
Loader.load(opencv_objdetect.class);

What version of the product are you using? On what operating system?
Last version from downloads! 

Please provide any additional information below.
If somebody was successful with running javacv on Android VD please inform as! 
Thx!    

Original issue reported on code.google.com by matej.cr...@gmail.com on 21 Apr 2011 at 1:55

GoogleCodeExporter commented 9 years ago
Yes, this is normal. The emulator doesn't support ARMv7. Refer to this thread 
for more details:
http://groups.google.com/group/android-ndk/browse_thread/thread/a19fc6df3d661d79

Original comment by samuel.a...@gmail.com on 21 Apr 2011 at 2:18

GoogleCodeExporter commented 9 years ago
Thx for quick and valid information!
I have another related question! Is it possible to re-compile .so files for 
emulator ARM version. 
I like this port and I need it for teaching purpose (all students don't have 
android phone) and we are using just basic function of openCV.

I found something that it looks that is possible on: 
http://opencv.willowgarage.com/wiki/AndroidExperimental
...
"In android.toolchain.cmake change the ARM_TARGETS variable to "armeabi" 
(default is "armeabi-v7a"), then recompile everything." 

Thx!

Original comment by matej.cr...@gmail.com on 22 Apr 2011 at 10:59

GoogleCodeExporter commented 9 years ago
Sure, please refer to the README.txt file in this package:
http://javacv.googlecode.com/files/OpenCV-2.2.0-android.zip

Original comment by samuel.a...@gmail.com on 22 Apr 2011 at 2:59

GoogleCodeExporter commented 9 years ago
BTW, let me know if you're having issues recompiling OpenCV. I can easily do it 
on my end, and send you the compiled files.

Original comment by samuel.a...@gmail.com on 3 May 2011 at 7:24

GoogleCodeExporter commented 9 years ago
Samuel, i've got same problem, could u please send me recompiled files?

Original comment by buh...@gmail.com on 4 May 2011 at 9:15

GoogleCodeExporter commented 9 years ago
Ok, I compiled OpenCV 2.2 for ARMv5 and it works in the emulator:

Original comment by samuel.a...@gmail.com on 5 May 2011 at 4:43

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks a lot, works fine for me.

Original comment by buh...@gmail.com on 5 May 2011 at 8:12

GoogleCodeExporter commented 9 years ago
Samuel can you kindly recompile this for armv6 as well, as it is not working on 
the phone like Samsung Galaxy mini and similar phones with armv6.

Also how can we force the application to load the shared libraries as per 
architecture because the name of the shared libraries are same. Do I have to 
keep them in some specific folder as I use to put the lib files in armeabi 
folder directly for armv7.

Looking forward for your reply and comments

Original comment by jibran.a...@gmail.com on 18 Jan 2012 at 11:55

GoogleCodeExporter commented 9 years ago
The latest version contains binaries for ARMv5, and you can use those on your 
ARMv6 devices. And yes we can pack an APK with both flavors of binaries and 
have Android copy the right ones on installation. As per Android's 
documentation, simply copy the ARMv5 ones under /libs/armeabi/ and the ARMv7 
ones in /libs/armeabi-v7a/.

Original comment by samuel.a...@gmail.com on 18 Jan 2012 at 12:03