Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

162.2. soapysdr-0.8.1

Vendor-neutral API over SDR hardware

0.8.1-1 · BSL-1.0 · 0.2 SBU · 956.8 KiB, 35 files · 41_system, 897 of 1047 · ports/core/sdr-hw/soapysdr

Homepage: https://github.com/pothosware/SoapySDR

Why it is in KDOS. The comment above it in script/phases/41_system/packages.d/sdr-hw.txt:

One API in front of every radio, so rtl_433 and anything after it is written once rather than per front end.

SoapySDR is a vendor-neutral C and C++ API for software-defined radio hardware. A program written against it, such as gnuradio, gr-osmosdr, sdrangel, sdrpp, cubicsdr or rtl-433, drives any radio that has a SoapySDR module. The modules are separate ports (soapyrtlsdr, soapyhackrf, soapyairspy, soapybladerf, and the LimeSDR one from limesuite); each installs a shared object into /usr/lib/SoapySDR/modules<ABI version>/, which the library loads when a program asks for a device. SoapySDRUtil --find and --probe list what it sees.

Depends on: cmake.

Required by (11): cubicsdr, gnuradio, gr-osmosdr, limesuite, rtl-433, sdrangel, sdrpp, soapyairspy, soapybladerf, soapyhackrf, soapyrtlsdr.

Sources: soapysdr-0.8.1.tar.gz (128.2 KiB). Every step kpkg takes applies to this port.

Optional, off in KDOS. These switches in build.sh turn off a feature whose library is a port here. The recipe may turn each off on purpose, or because the library was not yet a port when the recipe was written; this list cannot tell which.

Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install soapysdr'

build.sh:

mkdir -p build && cd build
cmake .. -DCMAKE_POLICY_VERSION_MINIMUM=3.5 -DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib \
	-DENABLE_PYTHON=OFF -DENABLE_PYTHON3=OFF -DENABLE_TESTS=OFF \
	-DENABLE_DOCS=OFF
make
make DESTDIR=$PKG install

Programs: SoapySDRUtil.

Libraries: libSoapySDR.so.

Directories: /usr/include/SoapySDR, /usr/share/cmake/SoapySDR, /usr/share/licenses/soapysdr.