Build GPSD

https://github.com/ntpsec/gpsd

Lots of extras in here, but they don't cause issues.

Dependencies

sudo apt install build-essential manpages-dev pkg-config scons libncurses-dev \
python-dev gnuplot pps-tools git python-gi-dev python-cairo-dev python-gobject-2-dev \
libgtk-3-dev python3-serial asciidoctor python3-matplotlib lighttpd php7.2-cgi php7.2-gd

git clone https://gitlab.com/gpsd/gpsd.git

Build

Match target_python to python3 -V

Run scons -h to check options, enable and disable as needed (see below).

scons target_python=python3.7 pps=yes bluez=no tsip=no tripmate=no tnt=no \
superstar2=no skytraq=no sirf=no oncore=no navcom=no mtk3301=no itrax=no \
geostar=no fv18=no fury=no evermore=no earthmate=no ashtech=no aivdm=no

Install

Install

sudo scons install

sudo nano /etc/default/gpsd

GPSD_OPTIONS="-n -b -s 9600"
DEVICES="/dev/ttyAMA0"

sudo cp gpsd-3.22.1~dev/systemd/gpsd.{service,socket} /lib/systemd/system/

Web

sudo lighty-enable-mod fastcgi 
sudo lighty-enable-mod fastcgi-php

sudo cp gpsd.php /var/www/html/index.php
sudo php /var/www/html/index.php

build_gpsd.txt · Last modified: 2021/02/26 14:03 by john
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0