MiaoRong / javacv

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

Android arm7 libavutil.so "not found" #237

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Andoid doesn´t want to load the arm7 version of libavutil.so :-(

What steps will reproduce the problem?
1. Copy the ffmpeg and opencv libs into /libs
2. Use FFMpegFrameGrabber
3. "Couldn't load jniavutil: findLibrary returned null"

What is the expected output? What do you see instead?
It should load the EXISTING file libavutil.so.
If I remove the armeabi-v7a folder, it works completely.

What version of the product are you using? On what operating system?
android 3.2 (Dell Streak 7)

Please provide any additional information below.

armeabi:
CVS                         libjniopencv_flann.so      libopencv_features2d.so
libavcodec.so               libjniopencv_highgui.so    libopencv_flann.so
libavdevice.so              libjniopencv_imgproc.so    libopencv_highgui.so
libavfilter.so              libjniopencv_legacy.so     libopencv_imgproc.so
libavformat.so              libjniopencv_ml.so         libopencv_legacy.so
libavutil.so                libjniopencv_nonfree.so    libopencv_ml.so
libjniARToolKitPlus.so      libjniopencv_objdetect.so  libopencv_nonfree.so
libjniavcodec.so            libjniopencv_photo.so      libopencv_objdetect.so
libjniavdevice.so           libjniopencv_stitching.so  libopencv_photo.so
libjniavfilter.so           libjniopencv_video.so      libopencv_stitching.so
libjniavformat.so           libjniopencv_videostab.so  libopencv_ts.so
libjniavutil.so             libjnipostproc.so          libopencv_video.so
libjnicvkernels.so          libjniswresample.so        libopencv_videostab.so
libjniopencv_calib3d.so     libjniswscale.so           libpostproc.so
libjniopencv_contrib.so     libopencv_calib3d.so       libswresample.so
libjniopencv_core.so        libopencv_contrib.so       libswscale.so
libjniopencv_features2d.so  libopencv_core.so

armeabi-v7a:
libavcodec.so         libopencv_features2d.so  libopencv_photo.so
libavdevice.so        libopencv_flann.so       libopencv_stitching.so
libavfilter.so        libopencv_highgui.so     libopencv_ts.so
libavformat.so        libopencv_imgproc.so     libopencv_video.so
LIBAVUTIL.SO          libopencv_legacy.so      libopencv_videostab.so
libopencv_calib3d.so  libopencv_ml.so          libpostproc.so
libopencv_contrib.so  libopencv_nonfree.so     libswresample.so
libopencv_core.so     libopencv_objdetect.so   libswscale.so

Original issue reported on code.google.com by ffab...@googlemail.com on 25 Aug 2012 at 9:44

GoogleCodeExporter commented 9 years ago
Oh, I´m blind..
Of course it´s "libjniavutil.so" that couldn´t be found.
But where can I get that from?
The armeabi-version doesn´t work as armeabi-v7a.

Original comment by ffab...@googlemail.com on 26 Aug 2012 at 11:13

GoogleCodeExporter commented 9 years ago
Are you saying that this app does not run on your device?
http://code.google.com/p/javacv/downloads/detail?name=facepreview-20120512.apk

Original comment by samuel.a...@gmail.com on 28 Aug 2012 at 2:16

GoogleCodeExporter commented 9 years ago
This .apk doesn`t use native ffmpeg.
I`ll test it later

Original comment by ffab...@googlemail.com on 28 Aug 2012 at 3:13

GoogleCodeExporter commented 9 years ago
It does work.
But I/Android have/has problems finding libjniavutil.so for arm7 :-(

Original comment by ffab...@googlemail.com on 28 Aug 2012 at 3:28

GoogleCodeExporter commented 9 years ago
Then it works. You don't need a different libjniavutil.so. If you follow the 
instructions in the README.txt file, and basically you did, because as you said 
"If I remove the armeabi-v7a folder, it works completely." so, there is no 
problem.

Original comment by samuel.a...@gmail.com on 29 Aug 2012 at 1:08

GoogleCodeExporter commented 9 years ago
But I want to use the arm7-libs, because they should be much faster in decoding 
videos!

Original comment by ffab...@googlemail.com on 29 Aug 2012 at 6:32

GoogleCodeExporter commented 9 years ago
Yes, you can use those. Just follow the instructions in the README.txt file and 
put them in "libs/armeabi".

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

GoogleCodeExporter commented 9 years ago
But then a non-arm7-device won´t work.

Original comment by ffab...@googlemail.com on 30 Aug 2012 at 9:39

GoogleCodeExporter commented 9 years ago
http://groups.google.com/group/android-ndk/browse_thread/thread/a1ecad7f90b4036f
/196dc9192c6661a5

Original comment by samuel.a...@gmail.com on 30 Aug 2012 at 12:46