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 php-cgi php-gd

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

Build

To build, run:

scons

You can also run scons -h instead to look at options to specifically enable or disable if you don't want a stock install.

Install

Install

sudo scons install

sudo nano /etc/default/gpsd

GPSD_OPTIONS="-n -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/06/07 16:42 by john
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0