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. Import existing project into workspace - Can't see Android Library in Java Build Path

Hi,
In Eclipse, when I "Import an existing into workspace" (from a
Mercurial repository, if it matters), I don't have the "Android
Library" in the Java Build Path. Instead, I get "Unable to get system
library for the project."

The .classpath file does have:

        <classpathentry kind="con"
path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>

and the other projects in the same workspace are OK.

I tried a combination of: refresh, clean/build, fix project
properties...

Looks like this setup is fragile.

-- 

2. AudioTrack

Is the AudioTrack fundamentally designed to be a singleton? Methods on
the OnPlaybackPositionUpdateListener receive just one argument, which
is the AudioTrack itself. And since the AudioTrack does not have
getTag/setTag methods I don't see any way to distinguish among
multiple AudioTracks in the OnPlaybackPositionUpdateListener methods
short of keeping track of references. So, if it's so why it's not
implemented as a singleton? Any thoughts. I am trying to implement
concurrent use of the AudioTrack. Anybody has any experience with this
approach? Am I wasting time?

-- 

3. me,Ramesh Yankati wants to chat

4. How to submit device driver into Android kernel source code?

5. Pakai kartu apa?

6. How can I receive WAP Push with custom MIME Type?

7. VM heap allocation limit