Skip to content

Replace librtlsdr on Raspbian

wiedehopf edited this page Sep 5, 2020 · 2 revisions

compiling the library yourself:

sudo apt update
sudo apt install cmake git build-essential libusb-1.0-0-dev
cd /tmp
sudo rm /tmp/rtl-sdr -rf
git clone --depth=1 https://github.com/osmocom/rtl-sdr.git
cd rtl-sdr
mkdir build
cd build
CFLAGS="-march=native" cmake .. -DDETACH_KERNEL_DRIVER=ON
make -j2
sudo cp src/librtlsdr.so.0.6git /usr/lib/arm-linux-gnueabihf
sudo ln -nsf /usr/lib/arm-linux-gnueabihf/librtlsdr.so.0.6git /usr/lib/arm-linux-gnueabihf/librtlsdr.so.0

using precompiled version:

wget -O /tmp/librtlsdr.so.0.6git https://github.com/wiedehopf/adsb-scripts/raw/master/librtlsdr.so.0.6git
sudo mv /tmp/librtlsdr.so.0.6git /usr/lib/arm-linux-gnueabihf
sudo chmod a+x /usr/lib/arm-linux-gnueabihf/librtlsdr.so.0.6git
sudo ln -nsf /usr/lib/arm-linux-gnueabihf/librtlsdr.so.0.6git /usr/lib/arm-linux-gnueabihf/librtlsdr.so.0

restore normal library:

sudo ln -nsf /usr/lib/arm-linux-gnueabihf/librtlsdr.so.0.6.0 /usr/lib/arm-linux-gnueabihf/librtlsdr.so.0
Clone this wiki locally