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-is-python3 gnuplot pps-tools git python-gi-dev python3-cairo-dev \
python3-blockdev libgtk-3-dev python3-serial asciidoctor python3-matplotlib 
git clone https://gitlab.com/gpsd/gpsd.git

Build

To build, run:

scons

or?

scons aivdm=no ashtech=no bluez=no earthmate=no evermore=no fury=no fv18=no \
garmin=no garmintxt=no geostar=no gpsclock=no greis=no isync=no itrax=no \
magic_hat=no navcom=no nmea2000=no oceanserver=no oncore=no oscillator=no \
rtcm104v2=no rtcm104v3=no sirf=no skytraq=no superstar2=no tnt=no tripmate=no \
tsip=no usb=no xgps=no -j 4

(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.1673287160.txt.gz ยท Last modified: 2024/11/14 02:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki