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. Simulate key press action.

Hi,
I am new to Android dev.
Just been asked to research if I can simulate the key press action.
Boss wants me to write a program that can press the phone keys instead
of me
pressing them. Is this possible in Android. Please point me to any
clues.
Thanks in advance.

Regards
Beescreen

--~--~---------~--~----~------------~-------~--~----~

2. Hello everybody

I'm Luis, and i just joined to this list.

--~--~---------~--~----~------------~-------~--~----~

3. OAuth, HttpClient, Android 1.0

4. wat is the best way to get started?

5. Does Android have a timeout callback?

6. Browser problem with T-Mobile G1

7. Application for this beginner-group