开发者

How to link static library created using ndk-build in android

开发者 https://www.devze.com 2023-03-10 19:51 出处:网络
How to link static library created using ndk-build in android system.loadLibrary failed to foundmy static library which is in libs/armeadi/libexample.a

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消