gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gpsd-dev] RFC: GPSd on Android as a system service


From: A.S.
Subject: Re: [gpsd-dev] RFC: GPSd on Android as a system service
Date: Mon, 22 Apr 2019 16:00:00 -0400

I have had the opportunity to clean up and test the additions needed to make libgps build and work on Android.

https://gitlab.com/aserbinski/gpsd/tree/android

Three parts to it;
1) shared library. This will be the typical approach to using it.
2) static library.
3) very simple test client.

The test client uses the static version of libgps, since it simplifies running it on a normal device where you don't have access to the system or vendor partitions.

Build instructions;
check out the gpsd respository to platform/external/gpsd
lunch your device
m libgps or gpsdtest

That will create the libgps.so in the vendor/lib/ and vendor/lib64/, or it will create gpsdtest in vendor/bin/

On Thu, Apr 11, 2019 at 12:22 PM A.S. <address@hidden> wrote:
My goal is to use GPSd to provide location services for Android.

This project can be broken down into three phases;
1) Building the libgps client library,
2) Building a GNSS HAL that uses libgps,
3) Building GPSd.

The Android build system is sufficiently unique to require a change in the build process. For example, it is not possible to use scons to generate configuration files, specifically, gpsd_config.h and gps_maskdump.c. This makes it necessary to generate those files in advance.

The following makes it possible to build libgps for Android using the Android build system:

Further, I have begun implementation of a GNSS 1.1 HAL that leverages libgps, here;

Note that neither of these is actually tested beyond successful compile yet.


Thanks,
Adam

reply via email to

[Prev in Thread] Current Thread [Next in Thread]