关于Android NDK的一般问题 [英] General questions about Android ndk
问题描述
我已经工作了与Android NDK一个月,所以我相当新手。目前,我想一些code整合成一个大的项目,并同时拥有与NDK和GStreamer的多个问题。问题是愚蠢的,但如果有人帮助我,我将非常感激:
I've been working for a month with android ndk, so I am quite a newbie. Currently I am trying to integrate some code into a big project and have multiple problems both with NDK and gstreamer. Questions are stupid but I would be very grateful if someone helped me:
1)我构建并编译项目之后,我还需要所有的Android.mk的文件?或者,我可以只使用添加的.so
库的System.loadLibrary(库)
?
1) After I build and compile a project, do I still need all of those Android.mk files? Or can I just add .so
libraries using System.loadlibrary("library")
?
2)后,我建立我的的.so
文件,我还需要公布所有的 .A
文件,建立共享库,并将其链接到的.so
这需要他们?
2) After I build my .so
files, do I still need to declare all .a
files as build-shared libraries and link them to the .so
which needs them?
3)当我添加原生Android的支持,我需要创建单独的 libsomename.so
或者选择现有的?
3) When I add native android support, do I need to create separate libsomename.so
or choose the existing?
也许有人也可以联系我的好文章关于建立?
Maybe someone could also link me to the good article about building?
推荐答案
1)没有,如果已经编译所有你需要的是这样和LoadLibrary调用。但是,如果你想与您的应用程序它可能以更新库中的好主意,让他们
1)No, if its already compiled all you need is the so and loadLibrary call. However, if you want to update the library with your app its probably a good idea to keep them
2)没有,一旦你有一个.so文件这就是你需要
2)No, once you have a .so file that's all you need
3)我不知道你问那里。
3)I'm not sure what you're asking there.
这篇关于关于Android NDK的一般问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!