build_gpsd
This is an old revision of the document!
Table of Contents
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 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.1673287144.txt.gz ยท Last modified: 2024/11/14 02:30 (external edit)