hi,

You need to add BOARD_GPS_LIBRARIES := "libgps" to whatever
BoardConfig.mk file you are using.

Then run "touch hardware/libhardware_legacy/gps/gps.cpp" and recompile
to pick up the changes.

Best regards,
 Mikkel


On Jun 9, 10:42 pm, Deva R <r.deva...@gmail.com> wrote:
> probably it expects a library libgps.default.so or libgps.<hwname>.so
>
> you can check hw_get_module() call in 
> ./hardware/libhardware/hardware.chttp://git.omapzoom.org/?p=platform/hardware/libhardware.git;a=blob;f...
>
> 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%2Bunsubscribe@ 
> > 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