User Tools

Site Tools


build_gpsd


This is an old revision of the document!


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

or?

scons 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 \
garmin=no garmintxt=no isync=no magic_hat=no nmea2000=no oceanserver=no \
oscillator=no qt=no rtcm104v2=no rtcm104v3=no usb=no xgps=no 

(You can 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-*/systemd/gpsd.{service,socket} /etc/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.1667399694.txt.gz ยท Last modified: 2024/11/14 02:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki