Installing dump1090 ADSB Decoder Tool on Ubuntu (16.04 LTS)

Installing dump1090 for the RTLSDR dongle

Download dump1090
Download dump1090 zip file from github:
https://github.com/antirez/dump1090

Install Prerequisites
$ sudo apt-get install librtlsdr0 librtlsdr-dev

Install dump1090
$ cd dump1090-master
$ make

Using dump1090
1. Start dump1090 in interactive mode with the plane plotting option
$ ./dump1090 --interactive --net

2. Plane details will appear in this terminal window

3. Open your browser to see the planes plotted:
http://localhost:8080

Fixing Install Errors
Note: having librtlsdr-dev installed fixes this error:

user@host:~/dump1090-master$ make
Package librtlsdr was not found in the pkg-config search path.
Perhaps you should add the directory containing `librtlsdr.pc’
to the PKG_CONFIG_PATH environment variable
No package ‘librtlsdr’ found
cc -O2 -g -Wall -W -c dump1090.c
dump1090.c:46:21: fatal error: rtl-sdr.h: No such file or directory
compilation terminated.
Makefile:9: recipe for target ‘dump1090.o’ failed
make: *** [dump1090.o] Error 1

Installing dump1090 fork for more device support (RTLSDR/HackRF/Airspy/SDRplay)

Download dump1090_sdrplus
Download dump1090_sdrplus zip file from github:
https://github.com/itemir/dump1090_sdrplus

Install Prerequisites
$ sudo apt-get install librtlsdr0 librtlsdr-dev
$ sudo apt-get install libhackrf0 libhackrf-dev
$ sudo apt-get install libairspy0 libairspy-dev
$ sudo apt-get install libsoxr0 libsoxr-dev

Next, download SDRPlay libraries from:
http://www.sdrplay.com/linuxdl.php

Install SDRPlay:
user@host:~$ chmod 755 SDRplay_RSP_MiricsAPI-1.9.4.run
user@host:~$ ./SDRplay_RSP_MiricsAPI-1.9.4.run
Verifying archive integrity… All good.
Uncompressing SDRplay Mirics API Install Package V1.9.4 100%
Installing SDRplay RSP Mirics API library…
Architecture: x86_64
API Version: 1.8.1
Remove old libraries…
[sudo] password for user:
Install /usr/local/lib/libmirsdrapi-rsp.so
Remove old header files…
Install /usr/local/include/mirsdrapi-rsp.h
Udev rules directory found, adding rules…
Libusb found, continuing…
Installing SoapySDRPlay…
Installing SoapySDR…
Finished.
$ sudo ldconfig

Install dump1090_sdrplus
$ cd dump1090_sdrplus-master
$ make

Using dump1090_sdrplus
1. Start dump1090 in interactive mode with the plane plotting option
$ ./dump1090 --interactive --net

2. Plane details will appear in this terminal window

3. Open your browser to see the plans plotted:
http://localhost:8080

Fixing Install Errors
Note: having librtlsdr-dev installed fixes this error:

user@host:~/tools/dump1090-sdrplus-master$ make
Package librtlsdr was not found in the pkg-config search path.
Perhaps you should add the directory containing `librtlsdr.pc’
to the PKG_CONFIG_PATH environment variable
No package ‘librtlsdr’ found
cc -O2 -g -Wall -W -c dump1090.c
dump1090.c:46:21: fatal error: rtl-sdr.h: No such file or directory
compilation terminated.
Makefile:9: recipe for target ‘dump1090.o’ failed
make: *** [dump1090.o] Error 1

Note: having libhackrf0 & libhackrf-dev installed fixes this error:

user@host:~/tools/dump1090_sdrplus-master$ make
Package libhackrf was not found in the pkg-config search path.
Perhaps you should add the directory containing `libhackrf.pc’
to the PKG_CONFIG_PATH environment variable
No package ‘libhackrf’ found
Package libairspy was not found in the pkg-config search path.
Perhaps you should add the directory containing `libairspy.pc’
to the PKG_CONFIG_PATH environment variable
No package ‘libairspy’ found
Package soxr was not found in the pkg-config search path.
Perhaps you should add the directory containing `soxr.pc’
to the PKG_CONFIG_PATH environment variable
No package ‘soxr’ found
cc -O2 -g -Wall -W -c dump1090.c
dump1090.c:51:30: fatal error: libhackrf/hackrf.h: No such file or directory
compilation terminated.
Makefile:9: recipe for target ‘dump1090.o’ failed
make: *** [dump1090.o] Error 1

Note: having libairspy0 & libairspy-dev installed fixes this error:

user@host:~/tools/dump1090-sdrplus-master$ make
Package libairspy was not found in the pkg-config search path.
Perhaps you should add the directory containing `libairspy.pc’
to the PKG_CONFIG_PATH environment variable
No package ‘libairspy’ found
Package soxr was not found in the pkg-config search path.
Perhaps you should add the directory containing `soxr.pc’
to the PKG_CONFIG_PATH environment variable
No package ‘soxr’ found
cc -O2 -g -Wall -W -c dump1090.c
dump1090.c:52:30: fatal error: libairspy/airspy.h: No such file or directory
compilation terminated.
Makefile:9: recipe for target ‘dump1090.o’ failed
make: *** [dump1090.o] Error 1

Note: having libsoxr0 & libsoxr-dev installed fixes this error:

user@host:~/tools/dump1090-sdrplus-master$ make
Package soxr was not found in the pkg-config search path.
Perhaps you should add the directory containing `soxr.pc’
to the PKG_CONFIG_PATH environment variable
No package ‘soxr’ found
cc -O2 -g -Wall -W -c dump1090.c
dump1090.c:53:27: fatal error: mirsdrapi-rsp.h: No such file or directory
compilation terminated.
Makefile:9: recipe for target ‘dump1090.o’ failed
make: *** [dump1090.o] Error 1

Note: having SDRPlay libraries installed fixes this error:

user@host:~/tools/dump1090-sdrplus-master$ make
cc -O2 -g -Wall -W -I/usr/include/ -I/usr/include/libusb-1.0 -I/usr/include/ -I/usr/include/libusb-1.0 -c dump1090.c
dump1090.c:53:27: fatal error: mirsdrapi-rsp.h: No such file or directory
compilation terminated.
Makefile:9: recipe for target ‘dump1090.o’ failed
make: *** [dump1090.o] Error 1

Note: running ldconfig fixes this error:

user@host:~/tools/dump1090-sdrplus-master$ make
./dump1090: error while loading shared libraries: libmirsdrapi-rsp.so: cannot open shared object file: No such file or directory

Leave a Reply

Your email address will not be published. Required fields are marked *