flyhighyjw / javacv

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

Failed to load libraries #459

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1.Copied these .so libs in /lib/armeabi-v7a
2.I put .properties files correctly in source directory
3.Tried to init FFMmpegFrameRecorder

Init:  

public static FFmpegFrameRecorder newAudioRecorder(String filename) {
        synchronized (FFmpegFrameRecorder.LOCK) {
            FFmpegFrameRecorder vineffmpegframerecorder = new FFmpegFrameRecorder(filename, 1);
            vineffmpegframerecorder.setVideoCodec(28);
            vineffmpegframerecorder.setAudioCodec(0x15002);
            vineffmpegframerecorder.setFormat("mp4");
            vineffmpegframerecorder.setSampleRate(44100);
            return vineffmpegframerecorder;
        }
    }

But it's produce an error:

Caused by: java.lang.UnsatisfiedLinkError: Cannot load library: 
soinfo_link_image(linker.cpp:1636): could not load library "libavformat.so" 
needed by "libjniavformat.so"; caused by find_library(linker.cpp:890): 
"libavformat.so" failed to load previously
            at java.lang.Runtime.loadLibrary(Runtime.java:383)
            at java.lang.System.loadLibrary(System.java:535)
            at com.googlecode.javacpp.Loader.loadLibrary(Loader.java:598)
            at com.googlecode.javacpp.Loader.load(Loader.java:494)
            at com.googlecode.javacpp.Loader.load(Loader.java:438)
            at com.googlecode.javacv.cpp.avformat.<clinit>(avformat.java:73)
            at 
com.googlecode.javacv.FFmpegFrameRecorder.<init>(FFmpegFrameRecorder.java:122)
            at 
com.googlecode.javacv.FFmpegFrameRecorder.<init>(FFmpegFrameRecorder.java:107)
            at 
com.btzsoft.vineclone.recorder.RecordController.newAudioRecorder(RecordControlle
r.java:113)
            at 
com.btzsoft.vineclone.recorder.RecordController.start(RecordController.java:347)
            at 
com.btzsoft.vineclone.recorder.VineRecorder.startRecording(VineRecorder.java:342
)
            at 
com.btzsoft.vineclone.recorder.VineRecorder.access$200(VineRecorder.java:20)
            at 
com.btzsoft.vineclone.recorder.VineRecorder$2.run(VineRecorder.java:63)
            at 
com.btzsoft.vineclone.recorder.VineRecorder.start(VineRecorder.java:631)
            at 
com.btzsoft.vineclone.recorder.VineRecorder.onCameraReady(VineRecorder.java:406)
            at 
com.btzsoft.vineclone.recorder.RecordController.openDefaultCamera(RecordControll
er.java:301)
            at 
com.btzsoft.vineclone.recorder.VineRecorder$OnResumeTask.doInBackground(VineReco
rder.java:119)
            at 
com.btzsoft.vineclone.recorder.VineRecorder$OnResumeTask.doInBackground(VineReco
rder.java:93)
            at android.os.AsyncTask$2.call(AsyncTask.java:287)
            at 
java.util.concurrent.FutureTask.run(FutureTask.java:234)
            at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
            at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
            at java.lang.Thread.run(Thread.java:856)
     Caused by: java.lang.UnsatisfiedLinkError: Cannot load library: soinfo_link_image(linker.cpp:1636): could not load library "libavutil.so" needed by "libavcodec.so"; caused by load_library(linker.cpp:746): library "libavutil.so" not found
            at java.lang.Runtime.loadLibrary(Runtime.java:383)
            at java.lang.System.loadLibrary(System.java:535)
            at com.googlecode.javacpp.Loader.loadLibrary(Loader.java:598)
            at com.googlecode.javacpp.Loader.load(Loader.java:487)
            at com.googlecode.javacpp.Loader.load(Loader.java:438)
            at 
com.googlecode.javacv.cpp.avformat.<clinit>(avformat.java:73)
            at 
com.googlecode.javacv.FFmpegFrameRecorder.<init>(FFmpegFrameRecorder.java:122)
            at 
com.googlecode.javacv.FFmpegFrameRecorder.<init>(FFmpegFrameRecorder.java:107)

What I`am doing not correctly?

Original issue reported on code.google.com by bitSoft....@gmail.com on 12 Apr 2014 at 6:42

GoogleCodeExporter commented 8 years ago
.so libs: https://copy.com/r8mrOn67hw71aoif
JavaCV and JavaCPP libs: https://copy.com/X2A2AZe4D1aCXRkD

Original comment by bitSoft....@gmail.com on 12 Apr 2014 at 6:43

GoogleCodeExporter commented 8 years ago
04-12 23:50:29.819  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ Trying to 
load lib /data/app-lib/com.btzsoft.videoapp-1/libavutil.so 0x42a24e90
04-12 23:50:29.819  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ Added shared 
lib /data/app-lib/com.btzsoft.videoapp-1/libavutil.so 0x42a24e90
04-12 23:50:29.819  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ No 
JNI_OnLoad found in /data/app-lib/com.btzsoft.videoapp-1/libavutil.so 
0x42a24e90, skipping init
04-12 23:50:29.819  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ Trying to 
load lib /data/app-lib/com.btzsoft.videoapp-1/libjniavutil.so 0x42a24e90
04-12 23:50:29.829  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ Added shared 
lib /data/app-lib/com.btzsoft.videoapp-1/libjniavutil.so 0x42a24e90
04-12 23:50:29.869  28649-28653/com.btzsoft.videoapp D/dalvikvm﹕ 
GC_CONCURRENT freed 528K, 11% free 18987K/21136K, paused 3ms+3ms, total 31ms
04-12 23:50:29.919  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ Trying to 
load lib /data/app-lib/com.btzsoft.videoapp-1/libavcodec.so 0x42a24e90
04-12 23:50:29.929  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ Added shared 
lib /data/app-lib/com.btzsoft.videoapp-1/libavcodec.so 0x42a24e90
04-12 23:50:29.929  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ No 
JNI_OnLoad found in /data/app-lib/com.btzsoft.videoapp-1/libavcodec.so 
0x42a24e90, skipping init
04-12 23:50:29.939  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ Trying to 
load lib /data/app-lib/com.btzsoft.videoapp-1/libjniavcodec.so 0x42a24e90
04-12 23:50:29.939  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ Added shared 
lib /data/app-lib/com.btzsoft.videoapp-1/libjniavcodec.so 0x42a24e90
04-12 23:50:30.009  28649-28653/com.btzsoft.videoapp D/dalvikvm﹕ 
GC_CONCURRENT freed 549K, 10% free 19067K/21136K, paused 1ms+3ms, total 33ms
04-12 23:50:30.049  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ Trying to 
load lib /data/app-lib/com.btzsoft.videoapp-1/libavformat.so 0x42a24e90
04-12 23:50:30.049  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ Added shared 
lib /data/app-lib/com.btzsoft.videoapp-1/libavformat.so 0x42a24e90
04-12 23:50:30.049  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ No 
JNI_OnLoad found in /data/app-lib/com.btzsoft.videoapp-1/libavformat.so 
0x42a24e90, skipping init
04-12 23:50:30.049  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ Trying to 
load lib /data/app-lib/com.btzsoft.videoapp-1/libjniavformat.so 0x42a24e90
04-12 23:50:30.049  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ Added shared 
lib /data/app-lib/com.btzsoft.videoapp-1/libjniavformat.so 0x42a24e90
04-12 23:50:30.079  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ Trying to 
load lib /data/app-lib/com.btzsoft.videoapp-1/libswscale.so 0x42a24e90
04-12 23:50:30.079  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ Added shared 
lib /data/app-lib/com.btzsoft.videoapp-1/libswscale.so 0x42a24e90
04-12 23:50:30.079  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ No 
JNI_OnLoad found in /data/app-lib/com.btzsoft.videoapp-1/libswscale.so 
0x42a24e90, skipping init
04-12 23:50:30.079  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ Trying to 
load lib /data/app-lib/com.btzsoft.videoapp-1/libjniswscale.so 0x42a24e90
04-12 23:50:30.079  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ Added shared 
lib /data/app-lib/com.btzsoft.videoapp-1/libjniswscale.so 0x42a24e90
04-12 23:50:30.219  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to find class referenced in signature (Ljava/awt/image/BufferedImage;)
04-12 23:50:30.219  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to find class referenced in signature (Ljava/awt/image/BufferedImage;)
04-12 23:50:30.219  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to find class referenced in signature (Ljava/awt/image/BufferedImage;)
04-12 23:50:30.229  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to find class referenced in signature (Ljava/awt/image/BufferedImage;)
04-12 23:50:30.229  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to find class referenced in signature (Ljava/awt/image/BufferedImage;)
04-12 23:50:30.229  28649-28663/com.btzsoft.videoapp I/dalvikvm﹕ Could not 
find method java.awt.image.BufferedImage.getSampleModel, referenced from method 
com.googlecode.javacv.cpp.opencv_core$IplImage.createFrom
04-12 23:50:30.229  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to resolve virtual method 20408: Ljava/awt/image/BufferedImage;.getSampleModel 
()Ljava/awt/image/SampleModel;
04-12 23:50:30.229  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ VFY: 
replacing opcode 0x6e at 0x0004
04-12 23:50:30.229  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to find class referenced in signature (Ljava/awt/image/BufferedImage;)
04-12 23:50:30.239  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to find class referenced in signature (Ljava/awt/image/BufferedImage;)
04-12 23:50:30.239  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to find class referenced in signature (Ljava/awt/image/BufferedImage;)
04-12 23:50:30.239  28649-28663/com.btzsoft.videoapp E/dalvikvm﹕ Could not 
find class 'java.awt.image.BufferedImage', referenced from method 
com.googlecode.javacv.cpp.opencv_core$IplImage.cloneBufferedImage
04-12 23:50:30.239  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to resolve check-cast 1837 (Ljava/awt/image/BufferedImage;) in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;
04-12 23:50:30.239  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ VFY: 
replacing opcode 0x1f at 0x0008
04-12 23:50:30.239  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to find class referenced in signature (Ljava/awt/image/BufferedImage;)
04-12 23:50:30.239  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to find class referenced in signature (Ljava/awt/image/BufferedImage;)
04-12 23:50:30.239  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to find class referenced in signature (Ljava/awt/image/BufferedImage;)
04-12 23:50:30.249  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to find class referenced in signature (Ljava/awt/image/BufferedImage;)
04-12 23:50:30.249  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to find class referenced in signature (Ljava/awt/image/BufferedImage;)
04-12 23:50:30.259  28649-28663/com.btzsoft.videoapp E/dalvikvm﹕ Could not 
find class 'java.awt.Rectangle', referenced from method 
com.googlecode.javacv.cpp.opencv_core$IplImage.copyFrom
04-12 23:50:30.259  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to resolve new-instance 1825 (Ljava/awt/Rectangle;) in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;
04-12 23:50:30.259  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ VFY: 
replacing opcode 0x22 at 0x0007
04-12 23:50:30.259  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to find class referenced in signature (Ljava/awt/image/BufferedImage;)
04-12 23:50:30.259  28649-28653/com.btzsoft.videoapp D/dalvikvm﹕ 
GC_CONCURRENT freed 1962K, 14% free 19108K/22156K, paused 2ms+3ms, total 52ms
04-12 23:50:30.259  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to find class referenced in signature (Ljava/awt/Rectangle;)
04-12 23:50:30.259  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to find class referenced in signature (Ljava/awt/image/BufferedImage;)
04-12 23:50:30.259  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to find class referenced in signature (Ljava/awt/Rectangle;)
04-12 23:50:30.259  28649-28663/com.btzsoft.videoapp I/dalvikvm﹕ Could not 
find method java.awt.image.BufferedImage.getSampleModel, referenced from method 
com.googlecode.javacv.cpp.opencv_core$IplImage.copyFrom
04-12 23:50:30.259  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to resolve virtual method 20408: Ljava/awt/image/BufferedImage;.getSampleModel 
()Ljava/awt/image/SampleModel;
04-12 23:50:30.259  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ VFY: 
replacing opcode 0x74 at 0x000f
04-12 23:50:30.259  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to resolve instance field 7115
04-12 23:50:30.259  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ VFY: 
replacing opcode 0x52 at 0x0099
04-12 23:50:30.259  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to find class referenced in signature (Ljava/awt/image/BufferedImage;)
04-12 23:50:30.259  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to find class referenced in signature (Ljava/awt/image/BufferedImage;)
04-12 23:50:30.259  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to find class referenced in signature (Ljava/awt/image/BufferedImage;)
04-12 23:50:30.259  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to find class referenced in signature (Ljava/awt/image/BufferedImage;)
04-12 23:50:30.259  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to find class referenced in signature (Ljava/awt/image/BufferedImage;)
04-12 23:50:30.259  28649-28663/com.btzsoft.videoapp E/dalvikvm﹕ Could not 
find class 'java.awt.Rectangle', referenced from method 
com.googlecode.javacv.cpp.opencv_core$IplImage.copyTo
04-12 23:50:30.259  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to resolve new-instance 1825 (Ljava/awt/Rectangle;) in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;
04-12 23:50:30.259  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ VFY: 
replacing opcode 0x22 at 0x0007
04-12 23:50:30.259  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to find class referenced in signature (Ljava/awt/image/BufferedImage;)
04-12 23:50:30.259  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to find class referenced in signature (Ljava/awt/Rectangle;)
04-12 23:50:30.259  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to find class referenced in signature (Ljava/awt/image/BufferedImage;)
04-12 23:50:30.259  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to find class referenced in signature (Ljava/awt/Rectangle;)
04-12 23:50:30.259  28649-28663/com.btzsoft.videoapp I/dalvikvm﹕ Could not 
find method java.awt.image.BufferedImage.getSampleModel, referenced from method 
com.googlecode.javacv.cpp.opencv_core$IplImage.copyTo
04-12 23:50:30.259  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to resolve virtual method 20408: Ljava/awt/image/BufferedImage;.getSampleModel 
()Ljava/awt/image/SampleModel;
04-12 23:50:30.259  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ VFY: 
replacing opcode 0x74 at 0x0011
04-12 23:50:30.259  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to resolve instance field 7115
04-12 23:50:30.259  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ VFY: 
replacing opcode 0x52 at 0x007f
04-12 23:50:30.259  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to find class referenced in signature (Ljava/awt/image/BufferedImage;)
04-12 23:50:30.259  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to find class referenced in signature (Ljava/awt/image/BufferedImage;)
04-12 23:50:30.269  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to find class referenced in signature (Ljava/awt/image/BufferedImage;)
04-12 23:50:30.269  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to find class referenced in signature (Ljava/awt/image/BufferedImage;)
04-12 23:50:30.269  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to find class referenced in signature (Ljava/awt/color/ColorSpace;)
04-12 23:50:30.269  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to find class referenced in signature (Ljava/awt/image/BufferedImage;)
04-12 23:50:30.269  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to find class referenced in signature (Ljava/awt/image/BufferedImage;)
04-12 23:50:30.269  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to find class referenced in signature (Ljava/awt/color/ColorSpace;)
04-12 23:50:30.269  28649-28663/com.btzsoft.videoapp E/dalvikvm﹕ Could not 
find class 'java.awt.image.BufferedImage', referenced from method 
com.googlecode.javacv.cpp.opencv_core$IplImage.getBufferedImage
04-12 23:50:30.269  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to resolve new-instance 1837 (Ljava/awt/image/BufferedImage;) in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;
04-12 23:50:30.269  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ VFY: 
replacing opcode 0x22 at 0x000e
04-12 23:50:30.269  28649-28663/com.btzsoft.videoapp I/dalvikvm﹕ Could not 
find method java.awt.color.ColorSpace.getInstance, referenced from method 
com.googlecode.javacv.cpp.opencv_core$IplImage.getBufferedImage
04-12 23:50:30.269  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to resolve static method 20389: Ljava/awt/color/ColorSpace;.getInstance 
(I)Ljava/awt/color/ColorSpace;
04-12 23:50:30.269  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ VFY: 
replacing opcode 0x71 at 0x0033
04-12 23:50:30.269  28649-28663/com.btzsoft.videoapp E/dalvikvm﹕ Could not 
find class 'java.awt.image.ComponentColorModel', referenced from method 
com.googlecode.javacv.cpp.opencv_core$IplImage.getBufferedImage
04-12 23:50:30.269  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to resolve new-instance 1839 (Ljava/awt/image/ComponentColorModel;) in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;
04-12 23:50:30.269  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ VFY: 
replacing opcode 0x22 at 0x0052
04-12 23:50:30.269  28649-28663/com.btzsoft.videoapp E/dalvikvm﹕ Could not 
find class 'java.awt.image.BufferedImage', referenced from method 
com.googlecode.javacv.cpp.opencv_core$IplImage.getBufferedImage
04-12 23:50:30.269  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to resolve check-cast 1837 (Ljava/awt/image/BufferedImage;) in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;
04-12 23:50:30.269  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ VFY: 
replacing opcode 0x1f at 0x0094
04-12 23:50:30.269  28649-28663/com.btzsoft.videoapp E/dalvikvm﹕ Could not 
find class 'java.awt.image.BufferedImage', referenced from method 
com.googlecode.javacv.cpp.opencv_core$IplImage.getBufferedImage
04-12 23:50:30.269  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to resolve check-cast 1837 (Ljava/awt/image/BufferedImage;) in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;
04-12 23:50:30.269  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ VFY: 
replacing opcode 0x1f at 0x00b7
04-12 23:50:30.269  28649-28663/com.btzsoft.videoapp I/dalvikvm﹕ Could not 
find method java.awt.color.ColorSpace.getInstance, referenced from method 
com.googlecode.javacv.cpp.opencv_core$IplImage.getBufferedImage
04-12 23:50:30.269  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to resolve static method 20389: Ljava/awt/color/ColorSpace;.getInstance 
(I)Ljava/awt/color/ColorSpace;
04-12 23:50:30.269  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ VFY: 
replacing opcode 0x71 at 0x00c6
04-12 23:50:30.269  28649-28663/com.btzsoft.videoapp I/dalvikvm﹕ Could not 
find method java.awt.color.ColorSpace.getInstance, referenced from method 
com.googlecode.javacv.cpp.opencv_core$IplImage.getBufferedImage
04-12 23:50:30.269  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to resolve static method 20389: Ljava/awt/color/ColorSpace;.getInstance 
(I)Ljava/awt/color/ColorSpace;
04-12 23:50:30.269  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ VFY: 
replacing opcode 0x71 at 0x00de
04-12 23:50:30.269  28649-28663/com.btzsoft.videoapp E/dalvikvm﹕ Could not 
find class 'java.awt.image.ComponentColorModel', referenced from method 
com.googlecode.javacv.cpp.opencv_core$IplImage.getBufferedImage
04-12 23:50:30.269  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to resolve new-instance 1839 (Ljava/awt/image/ComponentColorModel;) in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;
04-12 23:50:30.269  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ VFY: 
replacing opcode 0x22 at 0x00fc
04-12 23:50:30.269  28649-28663/com.btzsoft.videoapp E/dalvikvm﹕ Could not 
find class 'java.awt.image.ComponentColorModel', referenced from method 
com.googlecode.javacv.cpp.opencv_core$IplImage.getBufferedImage
04-12 23:50:30.269  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to resolve new-instance 1839 (Ljava/awt/image/ComponentColorModel;) in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;
04-12 23:50:30.269  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ VFY: 
replacing opcode 0x22 at 0x012e
04-12 23:50:30.269  28649-28663/com.btzsoft.videoapp E/dalvikvm﹕ Could not 
find class 'java.awt.image.ComponentColorModel', referenced from method 
com.googlecode.javacv.cpp.opencv_core$IplImage.getBufferedImage
04-12 23:50:30.269  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to resolve new-instance 1839 (Ljava/awt/image/ComponentColorModel;) in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;
04-12 23:50:30.269  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ VFY: 
replacing opcode 0x22 at 0x0160
04-12 23:50:30.269  28649-28663/com.btzsoft.videoapp E/dalvikvm﹕ Could not 
find class 'java.awt.image.ComponentColorModel', referenced from method 
com.googlecode.javacv.cpp.opencv_core$IplImage.getBufferedImage
04-12 23:50:30.269  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to resolve new-instance 1839 (Ljava/awt/image/ComponentColorModel;) in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;
04-12 23:50:30.269  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ VFY: 
replacing opcode 0x22 at 0x0191
04-12 23:50:30.269  28649-28663/com.btzsoft.videoapp E/dalvikvm﹕ Could not 
find class 'java.awt.image.ComponentColorModel', referenced from method 
com.googlecode.javacv.cpp.opencv_core$IplImage.getBufferedImage
04-12 23:50:30.269  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to resolve new-instance 1839 (Ljava/awt/image/ComponentColorModel;) in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;
04-12 23:50:30.269  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ VFY: 
replacing opcode 0x22 at 0x01c2
04-12 23:50:30.269  28649-28663/com.btzsoft.videoapp E/dalvikvm﹕ Could not 
find class 'java.awt.image.BufferedImage', referenced from method 
com.googlecode.javacv.cpp.opencv_core$IplImage.getBufferedImage
04-12 23:50:30.269  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to resolve check-cast 1837 (Ljava/awt/image/BufferedImage;) in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;
04-12 23:50:30.279  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ VFY: 
replacing opcode 0x1f at 0x01f9
04-12 23:50:30.279  28649-28663/com.btzsoft.videoapp E/dalvikvm﹕ Could not 
find class 'java.awt.image.BufferedImage', referenced from method 
com.googlecode.javacv.cpp.opencv_core$IplImage.getBufferedImage
04-12 23:50:30.279  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ VFY: unable 
to resolve new-instance 1837 (Ljava/awt/image/BufferedImage;) in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;
04-12 23:50:30.279  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ VFY: 
replacing opcode 0x22 at 0x0077
04-12 23:50:30.279  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ DexOpt: 
unable to opt direct call 0x4fb1 at 0x1e in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;.cloneBufferedImage
04-12 23:50:30.279  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ DexOpt: 
unable to opt direct call 0x4fb0 at 0x2d in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;.cloneBufferedImage
04-12 23:50:30.279  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ DexOpt: 
unable to opt direct call 0x4fa4 at 0x19 in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;.copyFrom
04-12 23:50:30.279  28649-28663/com.btzsoft.videoapp I/dalvikvm﹕ DexOpt: 
unable to optimize instance field ref 0x1bca at 0xa2 in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;.copyFrom
04-12 23:50:30.279  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ DexOpt: 
unable to opt direct call 0x4fa4 at 0x19 in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;.copyTo
04-12 23:50:30.279  28649-28663/com.btzsoft.videoapp I/dalvikvm﹕ DexOpt: 
unable to optimize instance field ref 0x1bca at 0x88 in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;.copyTo
04-12 23:50:30.279  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ DexOpt: 
unable to opt direct call 0x4fb0 at 0x18 in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;.getBufferedImage
04-12 23:50:30.279  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ DexOpt: 
unable to opt direct call 0x4fbe at 0x59 in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;.getBufferedImage
04-12 23:50:30.279  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ DexOpt: 
unable to opt direct call 0x4fbf at 0x6f in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;.getBufferedImage
04-12 23:50:30.279  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ DexOpt: 
unable to opt direct call 0x4fb1 at 0x7d in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;.getBufferedImage
04-12 23:50:30.279  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ DexOpt: 
unable to opt direct call 0x4fbe at 0x103 in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;.getBufferedImage
04-12 23:50:30.279  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ DexOpt: 
unable to opt direct call 0x4fbf at 0x11b in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;.getBufferedImage
04-12 23:50:30.279  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ DexOpt: 
unable to opt direct call 0x4fbe at 0x135 in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;.getBufferedImage
04-12 23:50:30.279  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ DexOpt: 
unable to opt direct call 0x4fbf at 0x14d in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;.getBufferedImage
04-12 23:50:30.279  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ DexOpt: 
unable to opt direct call 0x4fbe at 0x167 in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;.getBufferedImage
04-12 23:50:30.279  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ DexOpt: 
unable to opt direct call 0x4fbf at 0x17f in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;.getBufferedImage
04-12 23:50:30.289  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ DexOpt: 
unable to opt direct call 0x4fbe at 0x198 in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;.getBufferedImage
04-12 23:50:30.289  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ DexOpt: 
unable to opt direct call 0x4fbf at 0x1b0 in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;.getBufferedImage
04-12 23:50:30.289  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ DexOpt: 
unable to opt direct call 0x4fbe at 0x1c9 in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;.getBufferedImage
04-12 23:50:30.289  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ DexOpt: 
unable to opt direct call 0x4fbf at 0x1e1 in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;.getBufferedImage
04-12 23:50:30.299  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ Trying to 
load lib /data/app-lib/com.btzsoft.videoapp-1/libopencv_core.so 0x42a24e90
04-12 23:50:30.299  28649-28663/com.btzsoft.videoapp E/dalvikvm﹕ 
dlopen("/data/app-lib/com.btzsoft.videoapp-1/libopencv_core.so") failed: Cannot 
load library: soinfo_link_image(linker.cpp:1636): could not load library 
"../../lib/libtbb.so" needed by "libopencv_core.so"; caused by 
load_library(linker.cpp:746): library "../../lib/libtbb.so" not found
04-12 23:50:30.309  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ Trying to 
load lib /data/app-lib/com.btzsoft.videoapp-1/libtbb.so 0x42a24e90
04-12 23:50:30.309  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ Added shared 
lib /data/app-lib/com.btzsoft.videoapp-1/libtbb.so 0x42a24e90
04-12 23:50:30.309  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ No 
JNI_OnLoad found in /data/app-lib/com.btzsoft.videoapp-1/libtbb.so 0x42a24e90, 
skipping init
04-12 23:50:30.309  28649-28663/com.btzsoft.videoapp D/dalvikvm﹕ Trying to 
load lib /data/app-lib/com.btzsoft.videoapp-1/libjniopencv_core.so 0x42a24e90
04-12 23:50:30.309  28649-28663/com.btzsoft.videoapp E/dalvikvm﹕ 
dlopen("/data/app-lib/com.btzsoft.videoapp-1/libjniopencv_core.so") failed: 
Cannot load library: soinfo_link_image(linker.cpp:1636): could not load library 
"libopencv_core.so" needed by "libjniopencv_core.so"; caused by 
find_library(linker.cpp:890): "libopencv_core.so" failed to load previously
04-12 23:50:30.309  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ Exception 
Ljava/lang/UnsatisfiedLinkError; thrown while initializing 
Lcom/googlecode/javacv/cpp/opencv_core;
04-12 23:50:30.309  28649-28663/com.btzsoft.videoapp W/dalvikvm﹕ Exception 
Ljava/lang/ExceptionInInitializerError; thrown while initializing 
Lcom/googlecode/javacv/cpp/opencv_core$CvArr;

Original comment by bitSoft....@gmail.com on 12 Apr 2014 at 8:53

GoogleCodeExporter commented 8 years ago
With the Android SDK, I'm pretty sure we need to put the files in "/libs" and 
not in any other subdirectories. Could you please try to put the libraries in 
"/libs/armeabi" and see what that gives? Thanks

Original comment by samuel.a...@gmail.com on 13 Apr 2014 at 12:17

GoogleCodeExporter commented 8 years ago
Yes, these files are located in lib/armeabi-v7a

But I solved the problem, with try to load libraries with System.loadLibrary() 
in opencv_core.java from /javacv/cpp

//        if (load() != null) {
//            String platformName = getPlatformName();
//            if (platformName.equals("windows-x86")) {
//                SetLibraryPath("C:/opencv/build/x86/vc10/bin/");
//            } else if (platformName.equals("windows-x86_64")) {
//                SetLibraryPath("C:/opencv/build/x64/vc10/bin/");
//            }
//        }
        System.loadLibrary("tbb");
        System.loadLibrary("opencv_core");
        System.loadLibrary("jniopencv_core");

I don't know why not load's correctly libraries with load() function.

Thanks Samuel!

Original comment by bitSoft....@gmail.com on 13 Apr 2014 at 12:28

GoogleCodeExporter commented 8 years ago
Yes, that's strange. It seems to try to load the "preload" libraries after the 
"link" libraries. You're using an old version of JavaCPP though. Could you 
please try to upgrade to 0.7 and try again? Thank you!

Original comment by samuel.a...@gmail.com on 13 Apr 2014 at 12:57

GoogleCodeExporter commented 8 years ago
Due to the lack of feedback, I'm assuming that this does not occur with newer 
versions of JavaCV, but let me know if you still have problems, thanks.

Original comment by samuel.a...@gmail.com on 30 Jul 2014 at 11:17

GoogleCodeExporter commented 8 years ago
Hi,Samuel,
    I have same problem, and I used the lastst version javacv 0.9, please help, thanks. 
Error Message:

12-19 13:19:35.028: D/dalvikvm(31135): No JNI_OnLoad found in 
/system/lib/libc.so 0x41bd4478, skipping init
12-19 13:19:35.028: D/dalvikvm(31135): No JNI_OnLoad found in 
/system/lib/libm.so 0x41bd4478, skipping init
12-19 13:19:35.038: D/dalvikvm(31135): No JNI_OnLoad found in 
/system/lib/libz.so 0x41bd4478, skipping init
12-19 13:19:35.038: D/dalvikvm(31135): No JNI_OnLoad found in 
/system/lib/libdl.so 0x41bd4478, skipping init
12-19 13:19:35.038: D/dalvikvm(31135): No JNI_OnLoad found in 
/system/lib/liblog.so 0x41bd4478, skipping init
12-19 13:19:35.038: D/dalvikvm(31135): Trying to load lib 
/data/app-lib/ccx.qin.javacvencodingtest-2/libavutil.so 0x41bd4478
12-19 13:19:35.038: D/dalvikvm(31135): Added shared lib 
/data/app-lib/ccx.qin.javacvencodingtest-2/libavutil.so 0x41bd4478
12-19 13:19:35.038: D/dalvikvm(31135): No JNI_OnLoad found in 
/data/app-lib/ccx.qin.javacvencodingtest-2/libavutil.so 0x41bd4478, skipping 
init
12-19 13:19:35.038: D/dalvikvm(31135): Trying to load lib 
/data/app-lib/ccx.qin.javacvencodingtest-2/libjniavutil.so 0x41bd4478
12-19 13:19:35.048: D/dalvikvm(31135): Added shared lib 
/data/app-lib/ccx.qin.javacvencodingtest-2/libjniavutil.so 0x41bd4478
12-19 13:19:35.068: D/dalvikvm(31135): GC_CONCURRENT freed 403K, 20% free 
4379K/5456K, paused 2ms+3ms, total 21ms
12-19 13:19:35.088: D/dalvikvm(31135): Trying to load lib 
/data/app-lib/ccx.qin.javacvencodingtest-2/libavcodec.so 0x41bd4478
12-19 13:19:35.088: E/dalvikvm(31135): 
dlopen("/data/app-lib/ccx.qin.javacvencodingtest-2/libavcodec.so") failed: 
Cannot load library: soinfo_link_image(linker.cpp:1635): could not load library 
"libswresample.so" needed by "libavcodec.so"; caused by 
load_library(linker.cpp:745): library "libswresample.so" not found
12-19 13:19:35.088: D/dalvikvm(31135): Trying to load lib 
/data/app-lib/ccx.qin.javacvencodingtest-2/libjniavcodec.so 0x41bd4478
12-19 13:19:35.088: E/dalvikvm(31135): 
dlopen("/data/app-lib/ccx.qin.javacvencodingtest-2/libjniavcodec.so") failed: 
Cannot load library: soinfo_link_image(linker.cpp:1635): could not load library 
"libavcodec.so" needed by "libjniavcodec.so"; caused by 
find_library(linker.cpp:889): "libavcodec.so" failed to load previously
12-19 13:19:35.088: W/dalvikvm(31135): Exception 
Ljava/lang/UnsatisfiedLinkError; thrown while initializing 
Lorg/bytedeco/javacpp/avcodec;
12-19 13:19:35.088: D/AndroidRuntime(31135): Shutting down VM
12-19 13:19:35.088: W/dalvikvm(31135): threadid=1: thread exiting with uncaught 
exception (group=0x4172b930)
12-19 13:19:35.098: E/AndroidRuntime(31135): FATAL EXCEPTION: main
12-19 13:19:35.098: E/AndroidRuntime(31135): 
java.lang.ExceptionInInitializerError
12-19 13:19:35.098: E/AndroidRuntime(31135):    at 
ccx.qin.javacvencodingtest.TestVideoBase.<init>(TestVideoBase.java:75)
12-19 13:19:35.098: E/AndroidRuntime(31135):    at 
java.lang.Class.newInstanceImpl(Native Method)
12-19 13:19:35.098: E/AndroidRuntime(31135):    at 
java.lang.Class.newInstance(Class.java:1319)
12-19 13:19:35.098: E/AndroidRuntime(31135):    at 
android.app.Instrumentation.newActivity(Instrumentation.java:1054)
12-19 13:19:35.098: E/AndroidRuntime(31135):    at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2097)
12-19 13:19:35.098: E/AndroidRuntime(31135):    at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
12-19 13:19:35.098: E/AndroidRuntime(31135):    at 
android.app.ActivityThread.access$600(ActivityThread.java:141)
12-19 13:19:35.098: E/AndroidRuntime(31135):    at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
12-19 13:19:35.098: E/AndroidRuntime(31135):    at 
android.os.Handler.dispatchMessage(Handler.java:99)
12-19 13:19:35.098: E/AndroidRuntime(31135):    at 
android.os.Looper.loop(Looper.java:137)
12-19 13:19:35.098: E/AndroidRuntime(31135):    at 
android.app.ActivityThread.main(ActivityThread.java:5041)
12-19 13:19:35.098: E/AndroidRuntime(31135):    at 
java.lang.reflect.Method.invokeNative(Native Method)
12-19 13:19:35.098: E/AndroidRuntime(31135):    at 
java.lang.reflect.Method.invoke(Method.java:511)
12-19 13:19:35.098: E/AndroidRuntime(31135):    at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:817)
12-19 13:19:35.098: E/AndroidRuntime(31135):    at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:584)
12-19 13:19:35.098: E/AndroidRuntime(31135):    at 
dalvik.system.NativeStart.main(Native Method)
12-19 13:19:35.098: E/AndroidRuntime(31135): Caused by: 
java.lang.UnsatisfiedLinkError: Cannot load library: 
soinfo_link_image(linker.cpp:1635): could not load library "libavcodec.so" 
needed by "libjniavcodec.so"; caused by find_library(linker.cpp:889): 
"libavcodec.so" failed to load previously
12-19 13:19:35.098: E/AndroidRuntime(31135):    at 
java.lang.Runtime.loadLibrary(Runtime.java:371)
12-19 13:19:35.098: E/AndroidRuntime(31135):    at 
java.lang.System.loadLibrary(System.java:535)
12-19 13:19:35.098: E/AndroidRuntime(31135):    at 
org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:535)
12-19 13:19:35.098: E/AndroidRuntime(31135):    at 
org.bytedeco.javacpp.Loader.load(Loader.java:410)
12-19 13:19:35.098: E/AndroidRuntime(31135):    at 
org.bytedeco.javacpp.Loader.load(Loader.java:353)
12-19 13:19:35.098: E/AndroidRuntime(31135):    at 
org.bytedeco.javacpp.avcodec.<clinit>(avcodec.java:12)
12-19 13:19:35.098: E/AndroidRuntime(31135):    ... 16 more
12-19 13:19:35.098: E/AndroidRuntime(31135): Caused by: 
java.lang.UnsatisfiedLinkError: Cannot load library: 
soinfo_link_image(linker.cpp:1635): could not load library "libswresample.so" 
needed by "libavcodec.so"; caused by load_library(linker.cpp:745): library 
"libswresample.so" not found
12-19 13:19:35.098: E/AndroidRuntime(31135):    at 
java.lang.Runtime.loadLibrary(Runtime.java:371)
12-19 13:19:35.098: E/AndroidRuntime(31135):    at 
java.lang.System.loadLibrary(System.java:535)
12-19 13:19:35.098: E/AndroidRuntime(31135):    at 
org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:535)
12-19 13:19:35.098: E/AndroidRuntime(31135):    at 
org.bytedeco.javacpp.Loader.load(Loader.java:401)
12-19 13:19:35.098: E/AndroidRuntime(31135):    ... 18 more
12-19 13:53:58.628: D/dalvikvm(1164): Trying to load lib 
/data/app-lib/ccx.qin.javacvencodingtest-1/libtbb.so 0x41bd9b48
12-19 13:53:58.628: D/dalvikvm(1164): Added shared lib 
/data/app-lib/ccx.qin.javacvencodingtest-1/libtbb.so 0x41bd9b48
12-19 13:53:58.628: D/dalvikvm(1164): No JNI_OnLoad found in 
/data/app-lib/ccx.qin.javacvencodingtest-1/libtbb.so 0x41bd9b48, skipping init
12-19 13:53:58.628: D/dalvikvm(1164): Trying to load lib 
/data/app-lib/ccx.qin.javacvencodingtest-1/libopencv_core.so 0x41bd9b48
12-19 13:53:58.638: D/dalvikvm(1164): Added shared lib 
/data/app-lib/ccx.qin.javacvencodingtest-1/libopencv_core.so 0x41bd9b48
12-19 13:53:58.638: D/dalvikvm(1164): No JNI_OnLoad found in 
/data/app-lib/ccx.qin.javacvencodingtest-1/libopencv_core.so 0x41bd9b48, 
skipping init
12-19 13:53:58.638: D/dalvikvm(1164): Trying to load lib 
/data/app-lib/ccx.qin.javacvencodingtest-1/libjniopencv_core.so 0x41bd9b48
12-19 13:53:58.638: D/dalvikvm(1164): Added shared lib 
/data/app-lib/ccx.qin.javacvencodingtest-1/libjniopencv_core.so 0x41bd9b48
12-19 13:53:58.728: D/dalvikvm(1164): GC_CONCURRENT freed 300K, 19% free 
4272K/5248K, paused 2ms+2ms, total 25ms
12-19 13:53:58.798: D/dalvikvm(1164): GC_CONCURRENT freed 343K, 19% free 
4441K/5456K, paused 2ms+2ms, total 19ms
12-19 13:53:58.798: D/dalvikvm(1164): WAIT_FOR_CONCURRENT_GC blocked 7ms
12-19 13:53:59.068: D/dalvikvm(1164): No JNI_OnLoad found in 
/system/lib/libc.so 0x41bd9b48, skipping init
12-19 13:53:59.068: D/dalvikvm(1164): No JNI_OnLoad found in 
/system/lib/libm.so 0x41bd9b48, skipping init
12-19 13:53:59.068: D/dalvikvm(1164): No JNI_OnLoad found in 
/system/lib/libz.so 0x41bd9b48, skipping init
12-19 13:53:59.068: D/dalvikvm(1164): No JNI_OnLoad found in 
/system/lib/libdl.so 0x41bd9b48, skipping init
12-19 13:53:59.068: D/dalvikvm(1164): No JNI_OnLoad found in 
/system/lib/liblog.so 0x41bd9b48, skipping init
12-19 13:53:59.068: D/dalvikvm(1164): Trying to load lib 
/data/app-lib/ccx.qin.javacvencodingtest-1/libavutil.so 0x41bd9b48
12-19 13:53:59.068: D/dalvikvm(1164): Added shared lib 
/data/app-lib/ccx.qin.javacvencodingtest-1/libavutil.so 0x41bd9b48
12-19 13:53:59.068: D/dalvikvm(1164): No JNI_OnLoad found in 
/data/app-lib/ccx.qin.javacvencodingtest-1/libavutil.so 0x41bd9b48, skipping 
init
12-19 13:53:59.068: D/dalvikvm(1164): Trying to load lib 
/data/app-lib/ccx.qin.javacvencodingtest-1/libjniavutil.so 0x41bd9b48
12-19 13:53:59.078: D/dalvikvm(1164): Added shared lib 
/data/app-lib/ccx.qin.javacvencodingtest-1/libjniavutil.so 0x41bd9b48
12-19 13:53:59.098: D/dalvikvm(1164): Trying to load lib 
/data/app-lib/ccx.qin.javacvencodingtest-1/libavcodec.so 0x41bd9b48
12-19 13:53:59.098: E/dalvikvm(1164): 
dlopen("/data/app-lib/ccx.qin.javacvencodingtest-1/libavcodec.so") failed: 
Cannot load library: soinfo_link_image(linker.cpp:1635): could not load library 
"libswresample.so" needed by "libavcodec.so"; caused by 
load_library(linker.cpp:745): library "libswresample.so" not found
12-19 13:53:59.098: D/dalvikvm(1164): Trying to load lib 
/data/app-lib/ccx.qin.javacvencodingtest-1/libjniavcodec.so 0x41bd9b48
12-19 13:53:59.108: E/dalvikvm(1164): 
dlopen("/data/app-lib/ccx.qin.javacvencodingtest-1/libjniavcodec.so") failed: 
Cannot load library: soinfo_link_image(linker.cpp:1635): could not load library 
"libavcodec.so" needed by "libjniavcodec.so"; caused by 
find_library(linker.cpp:889): "libavcodec.so" failed to load previously
12-19 13:53:59.108: W/dalvikvm(1164): Exception 
Ljava/lang/UnsatisfiedLinkError; thrown while initializing 
Lorg/bytedeco/javacpp/avcodec;
12-19 13:53:59.108: D/AndroidRuntime(1164): Shutting down VM
12-19 13:53:59.108: W/dalvikvm(1164): threadid=1: thread exiting with uncaught 
exception (group=0x4172b930)
12-19 13:53:59.108: E/AndroidRuntime(1164): FATAL EXCEPTION: main
12-19 13:53:59.108: E/AndroidRuntime(1164): 
java.lang.ExceptionInInitializerError
12-19 13:53:59.108: E/AndroidRuntime(1164):     at 
ccx.qin.javacvencodingtest.TestVideoBase.<init>(TestVideoBase.java:79)
12-19 13:53:59.108: E/AndroidRuntime(1164):     at 
java.lang.Class.newInstanceImpl(Native Method)
12-19 13:53:59.108: E/AndroidRuntime(1164):     at 
java.lang.Class.newInstance(Class.java:1319)
12-19 13:53:59.108: E/AndroidRuntime(1164):     at 
android.app.Instrumentation.newActivity(Instrumentation.java:1054)
12-19 13:53:59.108: E/AndroidRuntime(1164):     at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2097)
12-19 13:53:59.108: E/AndroidRuntime(1164):     at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
12-19 13:53:59.108: E/AndroidRuntime(1164):     at 
android.app.ActivityThread.access$600(ActivityThread.java:141)
12-19 13:53:59.108: E/AndroidRuntime(1164):     at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
12-19 13:53:59.108: E/AndroidRuntime(1164):     at 
android.os.Handler.dispatchMessage(Handler.java:99)
12-19 13:53:59.108: E/AndroidRuntime(1164):     at 
android.os.Looper.loop(Looper.java:137)
12-19 13:53:59.108: E/AndroidRuntime(1164):     at 
android.app.ActivityThread.main(ActivityThread.java:5041)
12-19 13:53:59.108: E/AndroidRuntime(1164):     at 
java.lang.reflect.Method.invokeNative(Native Method)
12-19 13:53:59.108: E/AndroidRuntime(1164):     at 
java.lang.reflect.Method.invoke(Method.java:511)
12-19 13:53:59.108: E/AndroidRuntime(1164):     at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:817)
12-19 13:53:59.108: E/AndroidRuntime(1164):     at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:584)
12-19 13:53:59.108: E/AndroidRuntime(1164):     at 
dalvik.system.NativeStart.main(Native Method)
12-19 13:53:59.108: E/AndroidRuntime(1164): Caused by: 
java.lang.UnsatisfiedLinkError: Cannot load library: 
soinfo_link_image(linker.cpp:1635): could not load library "libavcodec.so" 
needed by "libjniavcodec.so"; caused by find_library(linker.cpp:889): 
"libavcodec.so" failed to load previously
12-19 13:53:59.108: E/AndroidRuntime(1164):     at 
java.lang.Runtime.loadLibrary(Runtime.java:371)
12-19 13:53:59.108: E/AndroidRuntime(1164):     at 
java.lang.System.loadLibrary(System.java:535)
12-19 13:53:59.108: E/AndroidRuntime(1164):     at 
org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:535)
12-19 13:53:59.108: E/AndroidRuntime(1164):     at 
org.bytedeco.javacpp.Loader.load(Loader.java:410)
12-19 13:53:59.108: E/AndroidRuntime(1164):     at 
org.bytedeco.javacpp.Loader.load(Loader.java:353)
12-19 13:53:59.108: E/AndroidRuntime(1164):     at 
org.bytedeco.javacpp.avcodec.<clinit>(avcodec.java:12)
12-19 13:53:59.108: E/AndroidRuntime(1164):     ... 16 more
12-19 13:53:59.108: E/AndroidRuntime(1164): Caused by: 
java.lang.UnsatisfiedLinkError: Cannot load library: 
soinfo_link_image(linker.cpp:1635): could not load library "libswresample.so" 
needed by "libavcodec.so"; caused by load_library(linker.cpp:745): library 
"libswresample.so" not found
12-19 13:53:59.108: E/AndroidRuntime(1164):     at 
java.lang.Runtime.loadLibrary(Runtime.java:371)
12-19 13:53:59.108: E/AndroidRuntime(1164):     at 
java.lang.System.loadLibrary(System.java:535)
12-19 13:53:59.108: E/AndroidRuntime(1164):     at 
org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:535)
12-19 13:53:59.108: E/AndroidRuntime(1164):     at 
org.bytedeco.javacpp.Loader.load(Loader.java:401)
12-19 13:53:59.108: E/AndroidRuntime(1164):     ... 18 more

Original comment by Dewin.Y...@gmail.com on 19 Dec 2014 at 5:53

GoogleCodeExporter commented 8 years ago
@Dewin This is a known issue and the workaround is documented here:
https://github.com/bytedeco/javacpp-presets/issues/13

Original comment by samuel.a...@gmail.com on 21 Dec 2014 at 6:26