问题描述
我试图开发Android应用,在使用姜饼的OpenMAX-AL。
I'm trying to develop android app, in gingerbread using OpenMAX-AL.
基本上的OpenMAX-AL库不GingerBread.So IM使用来自集成电路的OpenMAX的-AL libray(通过建立源)supporatable在姜饼其示值误差为安装后没有错误.I能够使用该库编译我的示例应用程序below..And还我试图把我的应用程序lib文件夹还是同样的错误里面的库。
Basically openMAX-AL library not supporatable in GingerBread.So im using the openmax-al libray from ics (by building source).I able to compile my sample application using that library without error after installing in Ginger bread its showing error as below..And also i tried to push the library inside my application lib folder still same error.
我应该做的姜饼使用的OpenMAX-AL库。 ü可以任何一个建议我的想法,即时通讯挣扎了最后一个星期?先谢谢了。
What should i do to use openmax-al library in gingerbread. Can u any one suggest me idea ,im struggling for last one week? Thanks in advance.
used in Android.mk file to compile:
LOCAL_LDLIBS := $(LIB)/libOpenMAXAL.so
05-21 16:31:37.270: E/AndroidRuntime(28217): java.lang.ExceptionInInitializerError
05-21 16:31:37.270: E/AndroidRuntime(28217): at java.lang.Class.newInstanceImpl(Native Method)
05-21 16:31:37.270: E/AndroidRuntime(28217): at java.lang.Class.newInstance(Class.java:1409)
05-21 16:31:37.270: E/AndroidRuntime(28217): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
05-21 16:31:37.270: E/AndroidRuntime(28217): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1610)
05-21 16:31:37.270: E/AndroidRuntime(28217): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1716)
05-21 16:31:37.270: E/AndroidRuntime(28217): at android.app.ActivityThread.access$1500(ActivityThread.java:124)
05-21 16:31:37.270: E/AndroidRuntime(28217): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:968)
05-21 16:31:37.270: E/AndroidRuntime(28217): at android.os.Handler.dispatchMessage(Handler.java:99)
05-21 16:31:37.270: E/AndroidRuntime(28217): at android.os.Looper.loop(Looper.java:123)
05-21 16:31:37.270: E/AndroidRuntime(28217): at android.app.ActivityThread.main(ActivityThread.java:3806)
05-21 16:31:37.270: E/AndroidRuntime(28217): at java.lang.reflect.Method.invokeNative(Native Method)
05-21 16:31:37.270: E/AndroidRuntime(28217): at java.lang.reflect.Method.invoke(Method.java:507)
05-21 16:31:37.270: E/AndroidRuntime(28217): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
05-21 16:31:37.270: E/AndroidRuntime(28217): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
05-21 16:31:37.270: E/AndroidRuntime(28217): at dalvik.system.NativeStart.main(Native Method)
05-21 16:31:37.270: E/AndroidRuntime(28217): Caused by: java.lang.UnsatisfiedLinkError: Cannot load library: link_image[1964]: 1240 could not load needed library 'libOpenMAXAL.so' for 'libnative-media-jni.so' (load_library[1106]: Library 'libOpenMAXAL.so' not found)
05-21 16:31:37.270: E/AndroidRuntime(28217): at java.lang.Runtime.loadLibrary(Runtime.java:434)
05-21 16:31:37.270: E/AndroidRuntime(28217): at java.lang.System.loadLibrary(System.java:554)
05-21 16:31:37.270: E/AndroidRuntime(28217): at com.example.nativemedia.NativeMedia.<clinit>(NativeMedia.java:338)
05-21 16:31:37.270: E/AndroidRuntime(28217): ... 15 more
问候
VS
regardsVS
推荐答案
在链接加载只会看在动态链接库中的符号引用。
During linking loader will only look for symbol references in dynamically linked libraries.
什么你试过是可以复制 OPENMAXAL.so
到的android-8 / usr / lib目录
然后编译,,但应用程序运行时,任何库链接如下
What you tried is may be copied OPENMAXAL.so
to the android-8/usr/lib
then compiled,, but when app runs, any library linked as below
LOCAL_LDLIBS + = -lOpenMAXAL
应该是Android的 /系统/库/
。
至于GB,这会不会是这样的!您是否尝试过推这么 /系统/ lib中/
?
should be in android's /system/libs/
.As for GB, this will not be the case! Have you tried pushing the so to /system/lib/
?
这篇关于在GB使用的OpenMAX库创建Android应用程序,但显示没有发现?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!