Android系统。无法加载gpuimage库 [英] Android. Couldn't load gpuimage-library

查看:452
本文介绍了Android系统。无法加载gpuimage库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚下载GPUImageLibrary 1.2.3快照并导入库和示例项目。
在示例应用程序,当我拿起从图像画廊,一切工作正常。但每次我尽量挑选从图像的摄像头,应用程序崩溃。

I just downloaded GPUImageLibrary 1.2.3 snapshot and import the library and the sample project. In the sample app, when i pick image from gallery, everything works fine. But everytime i try to pick image from camera, the app crashes.

package jp.co.cyberagent.android.gpuimage;

public class GPUImageNativeLibrary {
    static {
         //there is the crash happened
        System.loadLibrary("gpuimage-library");
    }

    public static native void YUVtoRBGA(byte[] yuv, int width, int height, int[] out);

    public static native void YUVtoARBG(byte[] yuv, int width, int height, int[] out);
}

下面是堆栈跟踪


01-20 17:11:25.226:E / AndroidRuntime(15839):致命异常:GLThread 3277
01-20 17:11:25.226:E / AndroidRuntime(15839):工艺:jp.co.cyberagent.android.gpuimage.sample,PID:15839
01-20 17:11:25.226:E / AndroidRuntime(15839):java.lang.UnsatisfiedLinkError中:无法加载从装载机dalvik.system.PathClassLoader [DexPathList [zip文件gpuimage库\"/data/app/jp.co.cyberagent.android.gpuimage.sample-1.apk\"],nativeLibraryDirectories=[/data/app-lib/jp.co.cyberagent.android.gpuimage.sample-1, /供应商/ lib中/系统/ lib目录,/系统/ lib目录/ ARM]]]:findLibrary返回null
01-20 17:11:25.226:E / AndroidRuntime(15839):在java.lang.Runtime.loadLibrary(Runtime.java:358)
01-20 17:11:25.226:E / AndroidRuntime(15839):在java.lang.System.loadLibrary(System.java:526)
01-20 17:11:25.226:E / AndroidRuntime(15839):在jp.co.cyberagent.android.gpuimage.GPUImageNativeLibrary(GPUImageNativeLibrary.java:21)
01-20 17:11:25.226:E / AndroidRuntime(15839):在jp.co.cyberagent.android.gpuimage.GPUImageRenderer $ 1.run(GPUImageRenderer.java:141)
01-20 17:11:25.226:E / AndroidRuntime(15839):在jp.co.cyberagent.android.gpuimage.GPUImageRenderer.runAll(GPUImageRenderer.java:126)
01-20 17:11:25.226:E / AndroidRuntime(15839):在jp.co.cyberagent.android.gpuimage.GPUImageRenderer.onDrawFrame(GPUImageRenderer.java:115)
01-20 17:11:25.226:E / AndroidRuntime(15839):在android.opengl.GLSurfaceView $ GLThread.guardedRun(GLSurfaceView.java:1533)
01-20 17:11:25.226:E / AndroidRuntime(15839):在android.opengl.GLSurfaceView $ GLThread.run(GLSurfaceView.java:1247)

我不知道该怎么做这个错误。我认为,这个错误并不code有关。请给我一些指导。

I don't know what to do about this error. I think that this error is not code-related. Please give me some direction.

对不起,我糟糕的英国。

Sorry for my terrible english.

推荐答案

您需要编译位于JNI文件夹本地C文件,用NDK的构建创造libs文件夹libary,具有扩展的.so。

You need to compile native C file located in jni folder, with ndk-build to create libary in libs folder, with extension .so.

这篇关于Android系统。无法加载gpuimage库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆