How to create executable file with linking static library?

by bluestar » Thu, 04 Feb 2010 18:10:07 GMT


Sponsored Links
 Dear Sir:

     I have a static library: libhello.a and I want to create a
executable file that link with this
     static library: libhello.a

     I put this static library under
     /out/target/product/generic/obj/STATIC_LIBRARIES/
libhello_intermediates/
     and make my executable file, but failed

     It shows error message:
     "make: *** No rule to make target `NOTICE-TARGET-STATIC_LIBRARIES-
libhello'.  Stop."

     How to fix this issue? (Below is Android.mk of executable file)
     Thanks!!!

//-----------------------------------------------------//
LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)
LOCAL_MODULE_PATH := $(TARGET_OUT)/bin
LOCAL_SRC_FILES:= MyMain.c
LOCAL_SHARED_LIBRARIES := libcutils libc
LOCAL_STATIC_LIBRARIES := libhello
LOCAL_MODULE := myhello
include $(BUILD_EXECUTABLE)
//-----------------------------------------------------//


BR,
Alan

--



How to create executable file with linking static library?

by Sachin Dole » Fri, 05 Feb 2010 01:05:33 GMT


 


Dear Sir:

    I have a static library: libhello.a and I want to create a
executable file that link with this
    static library: libhello.a

    I put this static library under
    /out/target/product/generic/obj/STATIC_LIBRARIES/
libhello_intermediates/
    and make my executable file, but failed

    It shows error message:
    "make: *** No rule to make target `NOTICE-TARGET-STATIC_LIBRARIES-
libhello'.  Stop."

    How to fix this issue? (Below is Android.mk of executable file)
    Thanks!!!

//-----------------------------------------------------//
LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)
LOCAL_MODULE_PATH := $(TARGET_OUT)/bin
LOCAL_SRC_FILES:= MyMain.c
LOCAL_SHARED_LIBRARIES := libcutils libc
LOCAL_STATIC_LIBRARIES := libhello
LOCAL_MODULE := myhello
include $(BUILD_EXECUTABLE)
//-----------------------------------------------------//


BR,
Alan

--


Sponsored Links


How to create executable file with linking static library?

by bluestar » Mon, 08 Feb 2010 09:42:02 GMT


 Dear Dole:

       Do you tell me your suggestion or solution?
       Thanks!!!


BR,
Alan





>



Other Threads

1. AndroidDevCamp Paris

For those who speak French and live not too far from Paris, there will
be an AndroidDevCamp in Paris on Saturday 28th March.

Subscriptions can be made there : http://barcamp.org/AndroidDevCampParis1

SFR (French Vodafone) is official sponsor of the event.
--~--~---------~--~----~------------~-------~--~----~

2. new soft keyboard

Hi.  Is it possible to replace the soft keyboard by writing just an
Activity, or is it hardwired into the framework?

I probably think the latter from looking at various stuff, but I
thought Id double check.

thanks
--~--~---------~--~----~------------~-------~--~----~

3. contacting commenters?

4. Developing absolute layout - no drag drop click drag in eclipse ??

5. Hide a progressbar?

6. XMF file format support

7. Singleton in different service which share same process