Try this to see if it helps.
Put Android.mk in your directory with something like 

include $(CLEAR_VARS)
LOCAL_MODULE := <you module name>
LOCAL_SRC_FILES := <Your source code list>
LOCAL_LDLIBS := <The LDFLAGS>
LOCAL_SHARED_LIBRARIES := <The other shared libraries you depends on>
include $(BUILD_SHARED_LIBRARY)

On Wed, 2009-04-08 at 14:33 +0530, MMF wrote:
> Hi All,
> 
> Sorry for the half message.
> Here is the full story.
> I have one test.c and test.h file.
> I have three functions declared in test.h and same functions are
> implemented in test.c
> These functions are calling some external functions.
> These external functions I have declared as extern "C" in my test.h
> With this I want to generate a test.so lib.
> 
> Can someone please let me know how to do this? What should be the
> contents of my Android.mk file?
> 
> Thanks
> APT
> 
> 
> On Wed, Apr 8, 2009 at 1:09 PM, rktb <yend...@pv.com> wrote:
>         
>         There are several threads in this group that discuss how to
>         create and
>         add new shared libraries. Please go through them first.
>         
>         Btw, I did not find a question in your post, and you need to
>         provided
>         more details.
>         
>         -Ravi
>         
>         
>         On Apr 8, 12:09 am, MMF <android...@gmail.com> wrote:
>         > Hi All,
>         >
>         > I want to build a .so lib in Android.
>         > But not very sure how should I do it.
>         > When I am calling some external function it always gives me
>         linker error,
>         > even though I have declared these function as extern.
>         >
>         > Thanks
>         > APT
>         
>         
> 
> 
> > 


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

Reply via email to