Hi Ravi
I am working on gps porting and need 3'rd party's libraries.
Here is the contents I modified from mydroid\hardware\libhardware\gps
\Android.mk
============================================================
# Use hardware GPS implementation if available.
#
LOCAL_PREBUILT_LIBS := 3rdpartygps1.a \
3rdpartygps2.a \
3rdpartygps3.a \
3rdpartygps4.a
include $(BUILD_MULTI_PREBUILT)
BOARD_GPS_LIBRARIES := 3rdpartygps1 3rdpartygps2.a 3rdpartygps3.a
3rdpartygps4.a
ifneq ($(BOARD_GPS_LIBRARIES),)
LOCAL_CFLAGS += -DHAVE_GPS_HARDWARE
LOCAL_STATIC_LIBRARIES += $(BOARD_GPS_LIBRARIES)
endif
# Use emulator GPS implementation if QEMU_HARDWARE is set.
#
USE_QEMU_GPS_HARDWARE := $(QEMU_HARDWARE)
ifeq ($(USE_QEMU_GPS_HARDWARE),true)
LOCAL_CFLAGS += -DHAVE_QEMU_GPS_HARDWARE
LOCAL_SRC_FILES += gps/gps_qemu.c
endif
LOCAL_SRC_FILES += gps/gps.cpp
============================================================
On Feb 10, 8:36 pm, rktb <[email protected]> wrote:
> Can you please post the exact contents of your makefile ?
>
> -Ravi
>
> On Feb 10, 2:00 am, John Cola <[email protected]> wrote:
>
>
>
> > Hi rktb
> > I follow your method and encounter the following error
> > Can you help me?
>
> > LOCAL_BUILT_MODULE and LOCAL_INSTALLED_MODULE must not be defined by
> > component makefiles. Stop.
>
> > My 3'rd party's libraries are *.a.
>
> > On Feb 9, 12:07 pm, rktb <[email protected]> wrote:
>
> > > Here you go...I verified that this works.
>
> > > ******************************************
> > > LOCAL_PATH := $(call my-dir)
> > > MY_LOCAL_PATH := $(LOCAL_PATH)
> > > include $(CLEAR_VARS)
>
> > > LOCAL_PREBUILT_LIBS := libabc.so
>
> > > include $(BUILD_MULTI_PREBUILT)
>
> > > LOCAL_PATH := $(MY_LOCAL_PATH)
> > > include $(CLEAR_VARS)
>
> > > LOCAL_SRC_FILES := main.cpp
> > > LOCAL_MODULE := mytest
> > > LOCAL_SHARED_LIBRARIES := libabc
>
> > > include $(BUILD_EXECUTABLE)
> > > ******************************************
>
> > > -Ravi
>
> > > On Feb 8, 9:39 pm, Girish <[email protected]> wrote:
>
> > > > Hi all,
>
> > > > Replaced the same with LOCAL_PATH := $(call my-dir)
>
> > > > find: `build/core/clear_vars.mk,build/core': No such file or directory
> > > > make: execvp: /bin/bash: Argument list too long
> > > > target Strip: libdl (out/target/product/obj/lib/libdl.so)
> > > > Install: out/host/linux-x86/bin/vm-tests
> > > > make: *** No rule to make target `build/core/clear_vars.mk,build/
> > > > core', needed by `out/target/product/obj/EXECUTABLE
>
> > > > Anything to do with .so files ? main.c calls test.c and test.c calls
> > > > apis deineds libs 3 libs which try to link with my executable.. main.c
> > > > contains the entry point (int main ())
>
> > > > The libs are generated using arm-linux-eabi and with glibc2.2.
>
> > > > Wht may be the issue ?
>
> > > > Regards- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"android-framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-framework?hl=en
-~----------~----~----~----~------~----~------~--~---