How to link static library created using ndk-build in android
How to link static library created using ndk-build in android
system.loadLibrary failed to found my static library which is in libs/armeadi/libexample.a i am using ndk r4.What i shouild put in android make file related to static libra开发者_高级运维ry to get it linked with my android application.Where i should upgrade to ndk r5?
What does your loadLibrary call look like? Based on the information you've provided, it should be System.loadLibrary("example");
.
NDK 4 should not cause any problems.
Try to build a .so (dynamic library) with the static library.
see the two-libs example provided by android-ndk.
This http://groups.google.com/group/android-ndk/browse_thread/thread/c2c4fbbdaabfeaa9/62e5ec07686e5157?lnk=gst&q=loading++static+library#62e5ec07686e5157 shall help.
精彩评论