logo       

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

AndroidDevelopers

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

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
-~----------~----~----~----~------~----~------~--~---

Google Custom Search

News | Mail Home | sitemap | FAQ | advertise