FlightAware Discussions

Piaware v 3.7.1 on Debian 10.0 (Buster) amd64 / Intel PC

abcd@debian:~$ uname -a
Linux debian 4.19.0-5-amd64 #1 SMP Debian 4.19.37-5 (2019-06-19) x86_64 GNU/Linux

abcd@debian:~$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 10 (buster)"

@obj
(1) Piaware - working OK
(2) dump1090-fa - working OK
(3) dump978-fa/skyview978 - Failed to build from source code.

(1) Piaware - OK

sudo apt update 

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 

git clone https://github.com/flightaware/piaware_builder.git 
cd  piaware_builder 
./sensible-build.sh stretch 

cd package-stretch 
sudo dpkg-buildpackage -b 

cd ../ 
sudo dpkg -i piaware_3.7.1_*.deb

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  

(2) dump1090-fa - OK

sudo apt install -y git lighttpd 
sudo apt install -y build-essential debhelper dh-systemd
sudo apt install -y libboost-system-dev libboost-program-options-dev libboost-regex-dev 
sudo apt install -y libboost-filesystem-dev libsoapysdr-dev soapysdr-module-rtlsdr 
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 

git clone https://github.com/flightaware/dump1090.git dump1090-fa 
cd dump1090-fa 
sudo dpkg-buildpackage -b 
cd ../
sudo dpkg -i dump1090-fa_3.7.1_*.deb
sudo systemctl restart dump1090-fa

(3) dump978-fa/skyview978 - Failed to build

sudo apt update 
sudo apt install -y git lighttpd build-essential debhelper dh-systemd 
sudo apt install -y libboost-system-dev libboost-program-options-dev libboost-regex-dev 
sudo apt install -y libboost-filesystem-dev libsoapysdr-dev soapysdr-module-rtlsdr 

git clone https://github.com/flightaware/dump978.git 
cd dump978 
sudo dpkg-buildpackage -b 

Got error message

skyview978_main.cc: In function ‘int realmain(int, char**)’:
skyview978_main.cc:106:48: error: ‘*((void*)(& location)+8).std::pair<double, double>::second’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
     boost::optional<std::pair<double, double>> location = boost::none;
                                                ^~~~~~~~
skyview978_main.cc:106:48: error: ‘*((void*)(& location)+8).std::pair<double, double>::first’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
cc1plus: all warnings being treated as errors
make[2]: *** [<builtin>: skyview978_main.o] Error 1
make[2]: Leaving directory '/home/abcd/dump978'
dh_auto_build: make -j1 VERSION=3.7.1 dump978-fa skyview978 returned exit code 2
make[1]: *** [debian/rules:13: override_dh_auto_build] Error 2
make[1]: Leaving directory '/home/abcd/dump978'
make: *** [debian/rules:16: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2 

1 Like

I just now wrote to microSD card the newly released version of Raspbian:
2019-07-10-raspbian-buster-lite.img

Then tried to install piaware, dump1090-fa, dump978-fa, and skyview978 by package install.

Piaware and dump1090-fa installed OK, but dump978-fa & skyview978 failed to install.

Piaware & dump1090-fa OK

sudo apt update
sudo wget http://flightaware.com/adsb/piaware/files/packages/pool/piaware/p/piaware-support/piaware-repository_3.7.1_all.deb 
sudo dpkg -i piaware-repository_3.7.1_all.deb 
sudo apt-get update 

sudo apt-get install -y piaware 

sudo piaware-config allow-auto-updates yes 
sudo piaware-config allow-manual-updates yes 
sudo piaware-config feeder-id xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 
sudo systemctl restart piaware

sudo apt-get install -y dump1090-fa 
sudo reboot

dump978-fa & skyview978 - Failed to install

sudo apt-get install dump978-fa

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 dump978-fa : Depends: libsoapysdr0.5-2 but it is not installable
              Recommends: skyview978 but it is not going to be installed
              Recommends: soapysdr-module-rtlsdr but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

1 Like

Thankyou for your install info
im installing it now not bothered about 978 for now

[S O L V E D]

DUMP978-FA ON RPI / RASPBIAN

pi@raspberrypi:~ $ wget -O /home/pi/libsoapysdr0.5-2_0.5.4-1_armhf.deb  "http.us.debian.org/debian/pool/main/s/soapysdr/libsoapysdr0.5-2_0.5.4-1_armhf.deb"

pi@raspberrypi:~ $ sudo dpkg -i libsoapysdr0.5-2_0.5.4-1_armhf.deb

pi@raspberrypi:~ $ sudo apt-get install dump978-fa
...... ...
.... ....
Created symlink /etc/systemd/system/default.target.wants/dump978-fa.service → /lib/systemd/system/dump978-fa.service.
Setting up skyview978 (3.7.1) ...
Enabling lighttpd integration..
Enabling skyview978: ok
Run "service lighttpd force-reload" to enable changes
Restarting lighttpd..
Created symlink /etc/systemd/system/dump978-fa.service.wants/skyview978.service → /lib/systemd/system/skyview978.service.
Setting up soapysdr0.6-module-rtlsdr:armhf (0.2.5-1) ...
Setting up soapysdr-module-rtlsdr:armhf (0.2.5-1) ...
Processing triggers for libc-bin (2.28-10+rpi1) ...

Config

Note:
Use following commands only if using BOTH dump1090-fa and dump978-fa (dont forget to serialize dongles as 00001090 and 00000978).

If using only dump1090-fa, skip following commands.

sudo piaware-config uat-receiver-type sdr
sudo sed -i 's/--device-index 0/--device-index 00001090/' /etc/default/dump1090-fa
sudo sed -i 's/driver=rtlsdr/driver=rtlsdr,serial=00000978/' /etc/default/dump978-fa
sudo reboot
2 Likes

if you are not installing dump978-fa, then dont give these command I mentioned in my post

sudo piaware-config uat-receiver-type sdr
sudo sed -i 's/--device-index 0/--device-index 00001090/' /etc/default/dump1090-fa

instead give this command:

sudo piaware-config uat-receiver-type none

Ok thanks
tried few times but not able to get dump1090-fa running
im off for a sleep now but will sort it later on
john

Try after reboot

sudo reboot

did reboot only see in top list piaware running nothing else no dump
just checked usb for dongle and its 5.08v 0.11 a
i have in prev installs got skyview978 running but not dump1090-fa but nothing since a new sdcard install

Already commented the last time you built it on buster.
You need to use the dev branch, there are compile fixes for the new libsoapysdr.

Ok, will try dev branch on Debian 10 Buster amd64 (BUILT FROM SOURCE CODE)
Already solved for Raspbian Buster armhf (PACKAGE INSTALL) as in above post

Well solved is relative, you are using an old library package which isn’t optimal.

It’s reasonable to assume 0.6 has some improvements.

Nope, dump978 did not built on Debian amd64 even from development branch.

abcd@debian:~$ cd dump978
abcd@debian:~/dump978$ git checkout origin/dev
Note: checking out 'origin/dev'.
.... .... ....
HEAD is now at 259d745 Add support for raw message timestamps (not tied to system clock)

abcd@debian:~/dump978$ sudo dpkg-buildpackage -b

dpkg-buildpackage: info: source package dump978-fa
dpkg-buildpackage: info: source version 3.7.2~dev
dpkg-buildpackage: info: source distribution UNRELEASED
dpkg-buildpackage: info: source changed by Oliver Jowett <oliver@mutability.co.uk>
dpkg-buildpackage: info: host architecture amd64
 .... .... ....
.... .... ....
skyview978_main.cc: In function ‘int realmain(int, char**)’:
skyview978_main.cc:106:48: error: ‘*((void*)(& location)+8).std::pair<double, double>::second’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
     boost::optional<std::pair<double, double>> location = boost::none;
                                                ^~~~~~~~
skyview978_main.cc:106:48: error: ‘*((void*)(& location)+8).std::pair<double, double>::first’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
cc1plus: all warnings being treated as errors
make[2]: *** [<builtin>: skyview978_main.o] Error 1
make[2]: Leaving directory '/home/abcd/dump978'
dh_auto_build: make -j1 VERSION=3.7.2\~dev dump978-fa skyview978 returned exit code 2
make[1]: *** [debian/rules:13: override_dh_auto_build] Error 2
make[1]: Leaving directory '/home/abcd/dump978'
make: *** [debian/rules:16: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2 

Oh it’s that error.
Yeah i have a work-around for that one.

sed 's/location = boost::none;/location = boost::make_optional(false, std::make_pair(0.0, 0.0));/' skyview978_main.cc -i

I’ve made a pull request but as it’s not certain if that fixes it in all scenarios and because it’s technically a library error in boost and not an actual problem with the program, it hasn’t gone into the code yet.

Anyway using the dev branch is still better than using an outdated library :slight_smile:
(and this boost error is independent of the other compilation error you had)

How you use dev branch when doing a package install on RPi/Raspbian Buster?

https://flightaware.com/adsb/piaware/install

Package install on RPi/Buster (as per above web page) is where installation of dump978-fa failed, and I had to download and install manually the old package (libsoapysdr0.5-2_0.5.4-1_armhf.deb). Only after this the install was successful.

You wait for the updated version :wink:

Ok if you must use it, the old library will work of course.

What is output of these commands?

cat /etc/default/dump1090-fa 
apt-cache policy dump1090-fa

top running
dump1090-da
piaware
lighttpd
faup1090

pi@raspberrypi:~ $ cat /etc/default/dump1090-fa

dump1090-fa configuration

This is sourced by /usr/share/dump1090-fa/start-dump1090-fa as a

shellscript fragment.

If you are using a PiAware sdcard image, this config file is regenerated

on boot based on the contents of piaware-config.txt; any changes made to this

file will be lost.

dump1090-fa won’t automatically start unless ENABLED=yes

ENABLED=yes

RECEIVER_OPTIONS="–device-index 0 --gain -10 --ppm 0 --net-bo-port 30005"
DECODER_OPTIONS="–max-range 360"
NET_OPTIONS="–net --net-heartbeat 60 --net-ro-size 1000 --net-ro-interval 1 --net-ri-port 0 --net-ro -port 30002 --net-sbs-port 30003 --net-bi-port 30004,30104 --net-bo-port 30005"
JSON_OPTIONS="–json-location-accuracy 1"
pi@raspberrypi:~ pi@raspberrypi:~
pi@raspberrypi:~ $ apt-cache policy dump1090-fa
dump1090-fa:
Installed: 3.7.1
Candidate: 3.7.1
Version table:
3.7.1 500
500 http://flightaware.com/adsb/piaware/files/packages stretch/piaware armhf Packages
*** 3.7.1 100
100 /var/lib/dpkg/status

Show:

sudo piaware-config

pi@raspberrypi:~ $ sudo piaware-config
allow-auto-updates yes # value set at /etc/piaware.conf:7
allow-manual-updates yes # value set at /etc/piaware.conf:8
uat-receiver-type none # value set at /etc/piaware.conf:9

sudo systemctl restart dump1090-fa
sudo journalctl -eu dump1090-fa