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. Gyroscope heading change affects y axis

I've been playing around with the gyroscope on the Nexus S. I notice
that if the phone is not held parallel to the ground, rapid changes in
heading (z-axis) result in changes in the roll (y-axis). I would've
thought that gyro output would be relative to the phone's orientation.
Do I need to somehow compensate for the phone's orientation when
calculating roll?

-- 

2. How to define mp3 file in manifest?

Hi,
I want to use a MP3 file as resource and copy this to res/raw and I
can access in activity by R.raw.MP3_FILENAME but when start this
application can't find this resource.(I'm try define it as meta-data
but I don't know how can I define this name)
how can I add mp3 file name in manifest and access to this.

-- 

3. Multiple Callbacks from native to java

4. Trouble running Android NDK

5. NullPointerExceptions calling IMarketBillingService

6. Broadcast to a specific class in another app

7. Digest HttpS connection