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

341.7. sdrpp-1.3.0.dev.20260704

Software radio receiver with its own GPU-drawn interface, no toolkit

The build-state snapshot was taken from 1.3.0.dev.20260704-1; this recipe is 1.3.0.dev.20260704-2, so the size, time and contents below describe the earlier build.

Version 1.3.0.dev.20260704, release 2
Shelf sdr — SDR DSP libraries, GNU Radio and its blocks, receivers, decoders and signal analysis
Phase 44_apps (Applications), 358 of 422 in build order
Licence GPL-3.0-only
Homepage https://www.sdrpp.org/
Build time 21.8 SBU
Installed size 9.4 MiB in 89 files
Recipe ports/core/sdr/sdrpp/kpkgbuild

About

SDR++ is a software-defined radio receiver with a spectrum, a waterfall and demodulators for AM, FM, SSB, CW and more. It draws its whole interface itself with Dear ImGui on OpenGL through glfw, so it links no toolkit. Its radio sources, audio sinks, decoders and helpers are separate plugin modules, installed under /usr/lib/sdrpp/plugins and chosen at build time one by one.

Sources

Dependencies

Depends on: cmake, ninja, pkgconf, glfw, mesa, libglvnd, fftw, libvolk, zstd, rtaudio, airspy, hackrf, bladerf, rtl-sdr, soapysdr, codec2, airspyhf, limesuite, libiio, libad9361, libperseus-sdr, uhd, zenity.

Required by: no port names it.

Installation

From the repository root, inside the build container, this is the line kdosbuild runs for the port:

script/chroot/exec.sh bash -c 'source script/phases/44_apps/phase.env && kpkg install sdrpp'

What kpkg does

kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/sdr/sdrpp.

1. Verify every declared source. Each file a sha256 = line names, found in the port directory or in /var/cache/kpkg/sources, must hash to its line; a mismatch stops the build before anything is unpacked.

cd /ports/core/sdr/sdrpp
echo 'c3d884bb146957792823068cea62c78d11f33eda3d537f12b0c31484bde1eb67  sdrpp-1.3.0.dev.20260704.tar.gz' | sha256sum -c -

2. Unpack. The work directory is emptied and the first source is unpacked into $SRC with its top directory stripped; any later tarball lands unstripped beside it in $SRC_ROOT, and a file that is not a tarball is copied into $SRC.

SRC_ROOT=/var/cache/kpkg/work/sdrpp
SRC=$SRC_ROOT/sdrpp-1.3.0.dev.20260704
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf sdrpp-1.3.0.dev.20260704.tar.gz -C "$SRC" --strip-components=1

Every config.guess and config.sub older than automake’s is then replaced with automake’s, so a configure script recognises the musl target.

3. Build. build.sh is sourced in a subshell under set -e, from $SRC, with name, version, release and the recipe’s helpers _commit and the five paths PKGNAME, PORT_SRC, SRC_ROOT, SRC and PKG set as shell variables. Its body, verbatim:

cmake -B build -G Ninja \
	-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
	-DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_PREFIX=/usr \
	-DOPT_BACKEND_GLFW=ON \
	-DOPT_BACKEND_ANDROID=OFF \
	-DOPT_OVERRIDE_STD_FILESYSTEM=OFF \
	-DUSE_INTERNAL_LIBCORRECT=ON \
	-DHAVE_SSE=OFF \
	-DUSE_BUNDLE_DEFAULTS=OFF \
	-DOPT_BUILD_AIRSPY_SOURCE=ON \
	-DOPT_BUILD_AIRSPYHF_SOURCE=ON \
	-DOPT_BUILD_AUDIO_SOURCE=ON \
	-DOPT_BUILD_BADGESDR_SOURCE=OFF \
	-DOPT_BUILD_BLADERF_SOURCE=ON \
	-DOPT_BUILD_DRAGONLABS_SOURCE=OFF \
	-DOPT_BUILD_FILE_SOURCE=ON \
	-DOPT_BUILD_FOBOSSDR_SOURCE=OFF \
	-DOPT_BUILD_HACKRF_SOURCE=ON \
	-DOPT_BUILD_HAROGIC_SOURCE=OFF \
	-DOPT_BUILD_HERMES_SOURCE=ON \
	-DOPT_BUILD_HYDRASDR_SOURCE=OFF \
	-DOPT_BUILD_KCSDR_SOURCE=OFF \
	-DOPT_BUILD_LIMESDR_SOURCE=ON \
	-DOPT_BUILD_NETWORK_SOURCE=ON \
	-DOPT_BUILD_PERSEUS_SOURCE=ON \
	-DOPT_BUILD_PLUTOSDR_SOURCE=ON \
	-DOPT_BUILD_RFNM_SOURCE=OFF \
	-DOPT_BUILD_RFSPACE_SOURCE=ON \
	-DOPT_BUILD_RTL_SDR_SOURCE=ON \
	-DOPT_BUILD_RTL_TCP_SOURCE=ON \
	-DOPT_BUILD_SDRPP_SERVER_SOURCE=ON \
	-DOPT_BUILD_SDRPLAY_SOURCE=OFF \
	-DOPT_BUILD_SOAPY_SOURCE=ON \
	-DOPT_BUILD_SPECTRAN_SOURCE=OFF \
	-DOPT_BUILD_SPECTRAN_HTTP_SOURCE=ON \
	-DOPT_BUILD_SPYSERVER_SOURCE=ON \
	-DOPT_BUILD_USRP_SOURCE=ON \
	-DOPT_BUILD_ANDROID_AUDIO_SINK=OFF \
	-DOPT_BUILD_AUDIO_SINK=ON \
	-DOPT_BUILD_NETWORK_SINK=ON \
	-DOPT_BUILD_NEW_PORTAUDIO_SINK=OFF \
	-DOPT_BUILD_PORTAUDIO_SINK=OFF \
	-DOPT_BUILD_ATV_DECODER=ON \
	-DOPT_BUILD_DAB_DECODER=OFF \
	-DOPT_BUILD_FALCON9_DECODER=OFF \
	-DOPT_BUILD_KG_SSTV_DECODER=OFF \
	-DOPT_BUILD_M17_DECODER=ON \
	-DOPT_BUILD_METEOR_DEMODULATOR=ON \
	-DOPT_BUILD_PAGER_DECODER=ON \
	-DOPT_BUILD_RADIO=ON \
	-DOPT_BUILD_RYFI_DECODER=OFF \
	-DOPT_BUILD_VOR_RECEIVER=OFF \
	-DOPT_BUILD_WEATHER_SAT_DECODER=OFF \
	-DOPT_BUILD_DISCORD_PRESENCE=OFF \
	-DOPT_BUILD_FREQUENCY_MANAGER=ON \
	-DOPT_BUILD_IQ_EXPORTER=ON \
	-DOPT_BUILD_RECORDER=ON \
	-DOPT_BUILD_RIGCTL_CLIENT=ON \
	-DOPT_BUILD_RIGCTL_SERVER=ON \
	-DOPT_BUILD_SCANNER=ON \
	-DOPT_BUILD_SCHEDULER=OFF
ninja -C build
DESTDIR=$PKG ninja -C build install

install -Dm644 root/res/icons/sdrpp.png \
	"$PKG/usr/share/icons/hicolor/512x512/apps/sdrpp.png"
cat > "$PKG/usr/share/applications/sdrpp.desktop" <<'DESKTOP'
[Desktop Entry]
Type=Application
Name=SDR++
GenericName=Software Defined Radio
Comment=Receive AM, FM and SSB with a spectrum and waterfall display
Exec=sdrpp
Terminal=false
Icon=sdrpp
Categories=HamRadio;AudioVideo;
Keywords=SDR;radio;receiver;waterfall;rtl-sdr;airspy;hackrf;scanner;
StartupWMClass=sdrpp
DESKTOP
chmod 644 "$PKG/usr/share/applications/sdrpp.desktop"

test -x "$PKG/usr/bin/sdrpp"
test -f "$PKG/usr/lib/sdrpp/plugins/rtl_sdr_source.so"

The switches, and why each is set:

The common switches of each build system are explained in the Flag glossary.

4. Package. kpkg removes libtool archives, the info directory index, mimeinfo.cache and every fonts.dir from $PKG, copies the source’s licence files into /usr/share/licenses/sdrpp, prunes what the image does not ship, lints the tree and rolls it reproducibly:

tar --sort=name --format=gnu --numeric-owner --owner=0 --group=0 \
    --mtime=@$SOURCE_DATE_EPOCH \
    --use-compress-program='xz -9 -T0 --block-size=32MiB --no-adjust' \
    -cf sdrpp-1.3.0.dev.20260704-2.tar.xz -C "$PKG" .

5. Adopt. kpkgadd installs the package’s files over the root, refusing a path another package owns, records the file list in /var/lib/kpkg/db/sdrpp, and runs the triggers its paths call for.

Contents

Installed programs: sdrpp.

Installed libraries: libsdrpp_core.so.

Installed directories: /usr/lib/sdrpp, /usr/share/licenses/sdrpp, /usr/share/sdrpp.

Notes

Upstream releases SDR++ on a rolling model, as a nightly build, so the recipe follows a commit on the main branch, named by _commit in kpkgbuild.

The file pickers and the frequency manager’s import and export use the bundled portable-file-dialogs, which draws no window of its own: it runs the first of zenity, matedialog, qarma and kdialog it finds. zenity is in depends for that. The GLFW back end sets the Wayland app id to sdrpp, which the recipe’s desktop entry repeats in StartupWMClass. The recipe writes that entry over upstream’s, which names its icon by an absolute path under /usr/share/sdrpp/icons, and installs the PNG icon into the hicolor theme under the name sdrpp. build.sh ends by checking that the RTL-SDR source plugin was installed.