-
Notifications
You must be signed in to change notification settings - Fork 146
How to install
In general on a Debian based distro, the following dependencies are required.
sudo apt install build-essential libtool automake autoconf librtlsdr-dev libfftw3-dev
git clone https://github.com/steve-m/kalibrate-rtl
cd kalibrate-rtl
./bootstrap && CXXFLAGS='-W -Wall -O3'
./configure
make
sudo make install
While the compiler check-up, a similar message may appear:
./configure: line 5120: PKG_CHECK_MODULES(FFTW3, fftw3 >= 3.0)'
in this case, you need to install the pkg-config package (apt install pkg-config
) and run it again (see above).
On Debian 10 ("Buster"), or Debian 10-based distros, this error may appear (after quite a lot of similar ones) while attempting to link code:
/root/kalibrate-rtl/src/usrp_source.cc:150: undefined reference to
rtlsdr_set_freq_correction'
collect2: error: ld returned 1 exit status`
The file librtlsdr.pc
has to be edited.
That file is located in /usr/lib/<cpu_type>/pkgconfig/
or /usr/local/lib/pkgconfig/librtlsdr.pc
where cpu_type is x86_64-linux-gnu
for x86-64 CPUs, arm-linux-gnueabihf
for Raspberries and "Raspi compatibles" like for example Orange Pis.
Edit as follows:
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
(thanks to filippog, who gave the tip here)