jloyd / javacv

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

Library jniopencv_core not found #66

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. FacePreview.java
2. When trying execute any instruction javacv.

What is the expected output? What do you see instead?
When trying to run any instuction javacv throw this exception:

AndroidRuntime(408): Caused by: java.lang.UnsatisfiedLinkError: Library 
jniopencv_core not found
at java.lang.Runtime.loadLibrary(Runtime.java:461)
at java.lang.System.loadLibrary(System.java:557)
at com.googlecode.javacpp.Loader.load(Loader.java:338)
at com.googlecode.javacpp.Loader.load(Loader.java:266)
at com.googlecode.javacv.cpp.opencv_core.<clinit>(opencv_core.java:120)
05-09 22:48:45.268: ERROR/AndroidRuntime(408):     ... 34 more

What version of the product are you using? On what operating system?
I use javacv-bin-20110407.zip.
Under eclipse ganymedes on mac OSX
And try to run the application in the emulator.

Please provide any additional information below.
I have put javacpp.jar and javacv.jar in libs directory.
I have put in libs/armeabi (extract to javacv-android-arm.jar):
libjniARToolKitPlus.so
libjniavcodec.so
libjniavdevice.so
libjniavfilter.so
libjniavformat.so
libjniavutil.so
libjnicvkernels.so
libjniopencv_calib3d.so
libjniopencv_core.so
libjniopencv_features2d.so
libjniopencv_highgui.so
libjniopencv_imgproc.so
libjniopencv_legacy.so
libjniopencv_objdetect.so
libjniopencv_video.so
libjnipostproc.so
libjniswscale.so

Thanks!

Original issue reported on code.google.com by redrum...@gmail.com on 9 May 2011 at 9:20

GoogleCodeExporter commented 9 years ago
You forgot to copy the library files of OpenCV. Please read the README.txt 
file. If you are having problems /using/ JavaCV, please post on the mailing 
list.

Original comment by samuel.a...@gmail.com on 9 May 2011 at 9:52

GoogleCodeExporter commented 9 years ago
I follow the instructions "Quick Start for OpenCV" for Eclipse (Android 2.2).
I download OpenCV-2.2.0-android.zip and I have put it libs/armeabi. Thats is 
correct?

Thanks!

Original comment by redrum...@gmail.com on 9 May 2011 at 10:10

GoogleCodeExporter commented 9 years ago
In the readme.txt says:
·OpenCV 2.2 http://sourceforge.net/projects/opencvlibrary/files/
     *Precompiled for Android http://code.google.com/p/javacv/downloads/list
I need install OpenCV 2.2 or just install the library precompiled for Android 
(OpenCV-2.2.0-android.zip)?

Original comment by redrum...@gmail.com on 9 May 2011 at 10:53

GoogleCodeExporter commented 9 years ago
Where does it say in the README.txt file that you need to install OpenCV 2.2 
for Mac OS X to use it under Android?

Original comment by samuel.a...@gmail.com on 10 May 2011 at 5:28

GoogleCodeExporter commented 9 years ago
Hi,
I'm, so confused.
I have folloewd de instructions:
Eclipse (Android 2.2 on ARMv7 or newer versions):

Follow the instructions on this page: 
http://developer.android.com/guide/tutorials/hello-world.html
Go to File > New > Folder, select your project as parent folder, type 
"libs/armeabi" as Folder name, and click Finish.
Copy javacpp.jar and javacv.jar in the newly created "libs" folder.
Extract the *.so files from javacv-android-arm.jar as well as the *.so files of 
OpenCV in the newly created "libs/armeabi" folder.
Navigate to Project > Properties > Java Build Path > Libraries and click "Add 
JARs..."
Select both javacpp.jar and javacv.jar from the newly created "libs" folder.

I need to install or do anything else?

Original comment by redrum...@gmail.com on 10 May 2011 at 6:09

GoogleCodeExporter commented 9 years ago
That should work if you have an ARMv7 CPU, but the emulator does not do ARMv7, 
only ARMv5. Please refer to issue #60

Original comment by samuel.a...@gmail.com on 10 May 2011 at 6:48