Building SDRangel from source on Debian 13

This took me all day to figure out so I’m posting it here for my own reference. Maybe it will help someone else in the future?

sudo apt update
sudo apt install -y \
build-essential cmake git \
qtbase5-dev qtbase5-private-dev libqt5svg5-dev \
qml-module-qtquick-controls qml-module-qtquick-window2 qml-module-qtgraphicaleffects \
qml-module-qtpositioning qml-module-qtlocation qml-module-qtquick-controls2 qml-module-qtquick-shapes \
qtlocation5-dev qtpositioning5-dev \
qtwebengine5-dev qtwebengine5-dev-tools \
libqt5gamepad5-dev \
libfftw3-dev libfftw3-single3 \
libxml2-dev libsndfile1-dev libopencv-dev \
libboost-all-dev \
libsoapysdr-dev librtlsdr-dev libhackrf-dev libbladerf-dev libairspy-dev libairspyhf-dev \
libmirisdr-dev libiio-dev libcodec2-dev libcm256cc-dev libdsdcc-dev \
libserialdv-dev libqt5websockets5-dev qtmultimedia5-dev\
libflac-dev libopus-dev screen btop \
libqt5charts5-dev libqt5serialport5-dev libqt5texttospeech5-dev zram-tools

sudo nano /etc/default/zramswap
ALGO=zstd
PERCENT=60
sudo service zramswap reload

git clone https://github.com/f4exb/sdrangel.git

mkdir build
cd build
cmake ..
make
sudo make install