probably it expects a library libgps.default.so or libgps.<hwname>.so

you can check hw_get_module() call in ./hardware/libhardware/hardware.c
http://git.omapzoom.org/?p=platform/hardware/libhardware.git;a=blob;f=hardware.c;h=3a23b1f6b71eb576c6f2f7161503e69e821b8083;hb=p-eclair

You can add more tract to hw_get_module() [ http://goo.gl/ndQ3 ] to see why
library loading is failing.

What is your hardware platform name, initialized with TARGET_BOARD_PLATFORM
in your build??
Accordingly, try modifyig Android.mk as
  LOCAL_MODULE := libgps.$(TARGET_BOARD_PLATFORM)
  or
  LOCAL_MODULE := libgps.default

-Deva




On Thu, Jun 10, 2010 at 1:23 AM, bridgette <tbridge...@yahoo.com> wrote:

> I have created a shared library, libgps.so that implements the gps.h
> in order to
> use a GPS receiver with Android and the libgps.so file was installed
> into the
> system/lib when the build completed.
>
> I get the following from logcat...libhardware_legacy(  772): no GPS
> hardware on this device.
>
> In the hardware/libhardware_legacy/gps/gps.cpp file, a
> HAVE_GPS_HARDWARE flag is wrapped around
> the call to the gps_get_hardware_interface()...in the same directory,
> I set BOARD_GPS_LIBRARIES
> yet I still get the "no GPS hardware..." message.
>
> BOARD_GPS_LIBRARIES := libgps.so
>
> ifneq ($(BOARD_GPS_LIBRARIES),)
>  LOCAL_CFLAGS           += -DHAVE_GPS_HARDWARE
>  LOCAL_SHARED_LIBRARIES += $(BOARD_GPS_LIBRARIES)
> endif
>
>
> Any suggestions?
>
>
> Thanks.
>
> --
> unsubscribe: 
> android-porting+unsubscr...@googlegroups.com<android-porting%2bunsubscr...@googlegroups.com>
> website: http://groups.google.com/group/android-porting
>

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

Reply via email to