logo       

[android-developers] Re: [android-developers]how to incude include static : msg#04206

AndroidDevelopers

Subject: [android-developers] Re: [android-developers]how to incude include static files(.a) in android jni application?

Thanks David.
I have this done by add my static library files to the the android's library path.Thanks for help.
BTW. I have no NDK to use,and the static library is from other company.

2009/7/31 David Turner <digit@xxxxxxxxxxx>
You need to generate a shared library, not a static one, to be able to use native code with JNI.

May I recommend you to download and use the Android NDK to do that?


On Fri, Jul 31, 2009 at 10:00 AM, frog <bluewater0121@xxxxxxxxx> wrote:
HI,all
I am recently developing a application use android jni.but,it cannot works.The application is base on a static library,
and ofcourse with some *.h files.I have include the .h files in my .cpp file,but it seems ,
the comile cann't find the vars definded in them.
my Android.mk is like this:
........................
.............
LOCAL_STATIC_LIBRARIES += \
   libfoo
LOCAL_C_INCLUDE += \
 $(JNI_H_INCLUDES)
 ./
........
.............
I build the application by the mmm foo at ${android_source}.
Anyone have done this before?Please help.thanks in advance.







--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to
android-developers-unsubscribe@xxxxxxxxxxxxxxxx
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | Mail Home | sitemap | FAQ | advertise