.
.
Step-by-step method I used to build and Install dump1090-fa 3.7.0 & Piaware 3.7.0 from source code
NOTE:
From output generated during building of dump1090-fa from source code, it appears that it has built dump978
also. Have yet to test/check.
1 - OS
wrote Raspbian Stretch Lite (2018-11-13-raspbian-stretch-lite.img)
to microSD card
2 - DUMP1090-FA
2.1 - Installed packages needed to build and to fulfill dependencies
sudo apt install -y debhelper dh-systemd librtlsdr-dev libusb-1.0-0-dev
sudo apt install -y git pkg-config libncurses5-dev lighttpd libbladerf-dev
2.2 - Cloned source code
cd ~/
git clone https://github.com/flightaware/dump1090.git dump1090-fa
2.3 - Moved into cloned directory, set head at ver 3.7.0, and build the dump1090-fa package
cd dump1090-fa
git checkout v3.7.0
#Note: checking out 'v3.7.0'.
#.....
#HEAD is now at a654c60... Release v3.7.0
sudo dpkg-buildpackage -b
2.4 - After the package is built, move out of dump1090 directory, and check what has been built
cd ../
ls
dump1090_3.7.0_all.deb dump1090-fa_3.7.0_armhf.changes
dump1090-fa dump1090-fa_3.7.0_armhf.deb
dump1090-fa_3.7.0_armhf.buildinfo dump1090-fa-dbgsym_3.7.0_armhf.deb
.
2.5 - Installed dump1090-fa
sudo dpkg -i dump1090-fa_*_*.deb
.
2.6 - Rebooted
sudo reboot
.
3 - PIAWARE
3.1 - Installed packages necessary to build and to fulfil dependencies
sudo apt install -y git devscripts build-essential debhelper
sudo apt install -y tcl8.6-dev autoconf python3-dev python3-venv
sudo apt install -y virtualenv dh-systemd zlib1g-dev tclx8.4
sudo apt install -y tcllib tcl-tls itcl3 net-tools
sudo apt install -y libboost-system-dev libboost-program-options-dev
sudo apt install -y libboost-regex-dev libboost-filesystem-dev
.
3.2 - Cloned source-code, set head at ver 3.7.0, and build Piaware package
cd ~/
git clone https://github.com/flightaware/piaware_builder.git
cd piaware_builder
git checkout v3.7.0
#Note: checking out 'v3.7.0'.
#........
#HEAD is now at 829d2ab... Release v3.7.0
CODENAME=(`lsb_release -sc`)
echo ${CODENAME}
# above command outputs distro's codename
#("stretch" in this case)
./sensible-build.sh ${CODENAME}
cd package-${CODENAME}
sudo dpkg-buildpackage -b
.
3.3 - Checked if the package is actually built
cd ../
ls
bionic Jenkinsfile piaware_3.7.0_armhf.buildinfo piaware-dbgsym_3.7.0_armhf.deb stretch
changelog jessie piaware_3.7.0_armhf.changes README.md wheezy
common package-stretch piaware_3.7.0_armhf.deb sensible-build.sh
3.4 - Installed Piaware
sudo dpkg -i piaware_3.7.0_armhf.deb
3.5 - CONFIGURED PIAWARE
(used actual feeder-id in place of xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx )
sudo piaware-config feeder-id xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
sudo piaware-config allow-auto-updates yes
sudo piaware-config allow-manual-updates yes
sudo systemctl restart piaware
3.6 - CHECKED STATUS
pi@raspberrypi:~/piaware_builder $ sudo systemctl status piaware
â—Ź piaware.service - FlightAware ADS-B uploader
Loaded: loaded (/lib/systemd/system/piaware.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2019-03-29 01:04:05 EDT; 7min ago
Docs: https://flightaware.com/adsb/piaware/
Main PID: 5419 (piaware)
CGroup: /system.slice/piaware.service
├─5419 /usr/bin/piaware -p /run/piaware/piaware.pid -plainlog -statusfile /run/piaware/status.json
├─5531 /usr/lib/piaware/helpers/fa-mlat-client --input-connect localhost:30005 --input-type dump1090 --results beast,connect,loc
└─5589 /usr/lib/piaware/helpers/faup1090 --net-bo-ipaddr localhost --net-bo-port 30005 --stdout --lat 43.xxx --lon -79.xxx
Mar 29 01:06:03 raspberrypi piaware[5419]: mlat-client(5531): Input connected to localhost:30005
Mar 29 01:06:03 raspberrypi piaware[5419]: mlat-client(5531): Input format changed to BEAST, 12MHz clock
Mar 29 01:06:03 raspberrypi piaware[5419]: mlat-client(5531): Beast-format results connection with 127.0.0.1:30104: connection established
Mar 29 01:06:03 raspberrypi sudo[5581]: piaware : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/bin/netstat --program --tcp --wide --all --nu
Mar 29 01:06:03 raspberrypi sudo[5581]: pam_unix(sudo:session): session opened for user root by (uid=0)
Mar 29 01:06:03 raspberrypi sudo[5581]: pam_unix(sudo:session): session closed for user root
Mar 29 01:06:03 raspberrypi piaware[5419]: ADS-B data program 'dump1090-fa' is listening on port 30005, so far so good
Mar 29 01:06:03 raspberrypi piaware[5419]: Starting faup1090: /usr/lib/piaware/helpers/faup1090 --net-bo-ipaddr localhost --net-bo-port 300
Mar 29 01:06:03 raspberrypi piaware[5419]: Started faup1090 (pid 5589) to connect to dump1090-fa
Mar 29 01:09:40 raspberrypi piaware[5419]: 107 msgs recv'd from dump1090-fa (107 in last 5m); 107 msgs sent to FlightAware