Skip to content
ben8526 edited this page Feb 13, 2024 · 72 revisions

image::svxlink[Svxlink] == Install SvxLink from source on Raspberry Pi ==

This is a quick instruction on how to install svxlink from source code.

Configure some Raspberry stuff (optional)

sudo raspi-config

Load packages (verified for Raspberry Pi OS Lite 32-bit 2023-08-22)

sudo apt update
sudo apt install g++ cmake make libsigc++-2.0-dev libgsm1-dev libpopt-dev tcl-dev libgcrypt20-dev libspeex-dev libasound2-dev libopus-dev librtlsdr-dev doxygen groff alsa-utils vorbis-tools curl libcurl4-openssl-dev git rtl-sdr libcurl4-openssl-dev cmake libjsoncpp-dev libgpiod-dev
sudo useradd -rG audio,plugdev,gpio,dialout svxlink

Download the software from Github and compile

git clone http://github.com/sm0svx/svxlink.git
mkdir svxlink/src/build
cd svxlink/src/build
cmake -DUSE_QT=OFF -DCMAKE_INSTALL_PREFIX=/usr -DSYSCONF_INSTALL_DIR=/etc -DLOCAL_STATE_DIR=/var -DWITH_SYSTEMD=ON ..
make -j4
make doc
sudo make install
sudo ldconfig

Download Sounds

Swedish:

cd /usr/share/svxlink/sounds/
sudo curl -LO https://github.com/sm0svx/svxlink-sounds-sv_SE-elin/releases/download/19.09.99.1/svxlink-sounds-sv_SE-elin-16k-19.09.99.1.tar.bz2
sudo tar xvjf svxlink-sounds-sv_SE-elin-16k-19.09.99.1.tar.bz2
sudo ln -s sv_SE-elin-16k sv_SE

English:

cd /usr/share/svxlink/sounds/
sudo curl -LO https://github.com/sm0svx/svxlink-sounds-en_US-heather/releases/download/19.09.99.1/svxlink-sounds-en_US-heather-16k-19.09.99.1.tar.bz2
sudo tar xvjf svxlink-sounds-en_US-heather-16k-19.09.99.1.tar.bz2
sudo ln -s en_US-heather-16k en_US
sudo systemctl enable --now svxlink
sudo systemctl start svxlink
sudo systemctl stop svxlink

Monitor logfile

tail -f /var/log/svxlink

GPIO Configuration

TODO

Clone this wiki locally