Thanks David, in fact I new a file called gps_hardware.c instead of
gps_qemu.c and i try to build a so called gps_hardware.so.but when I
try to make,
it reminds errors:
build/core/shared_library.mk:20:*** hardware/libhardware/gps:
Illegal use of OVERRIDE_BUILT_MODULE_PATH.
I don't know what was happenning here.
what i have done:
1.add to Android.mk as follow:
  LOCAL_PATH := $(call my-dir)
  include $(CLEAR_VARS)
  ...
  LOCAL_SRC_FILES += gps/gps_hardware.c
  LOCAL_SRC_FILES += gps/gps_hardware.c
  LOCAL_MODULE := libgps_hardware
include $(BUILD_SHARED_LIBRARY)

2.add to vendor/marvell/littleton/BoardConfig.mk
  BOARD_GPS_LIBRARIES := libgps_hardware

I have no idea what is wrong with my code. Is there any advices?
Best Regards,
Nio

On 3月20日, 下午2时00分, David Turner <di...@android.com> wrote:
> You should not need to modify gps_qemu.c at all, and this source file
> doesn't correspond to a stand-alone library;
> instead, it is part of libhardware.so.
>
> What you should do is write your own libgps.so that provides the following
> function:
>
> const GpsInterface* gps_get_interface();
>
> which shall return an interface pointer to your custom implementation.
> that's about it.
>
>
>
> On Sun, Mar 15, 2009 at 8:37 PM, Nio <luodali...@gmail.com> wrote:
>
> > Hi there,
> > I change the file gps_qemu.c as to integrate with my GPS. But I dont
> > know how to build a libgps_qemu.so. I have added
> > BOARD_GPS_LIBRARIES := libgps_qemu in the file BoardConfig.mk and
> > added LOCAL_SHARD_LIBRARIES +=$(BOARD_GPS_LIBRARIES) in the file gps/
> > Android.mk. But when I make, it still tells me there are no rules to
> > create out/target/product/littleton/obj/SHARD_LIBRERIES/
> > libhardware_intermediates/LINKED/libgps_qemu.so.
> > Can any one give some help? Thanks in advance.
>
> > Best Regards,
> > Nio
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Reply via email to