Reputation: 103
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) 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) 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) 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?
Upvotes: 0
Views: 197
Reputation: 93559
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)No, once you have a .so file that's all you need
3)I'm not sure what you're asking there.
Upvotes: 3