2019-09-21 09:15:08 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# This script is intended to setup a clean Raspberry Pi system for running Jamulus
|
|
|
|
OPUS="opus-1.3"
|
2019-09-21 10:23:39 +02:00
|
|
|
|
|
|
|
echo "TODO: sudo apt-get install [needed libraries for compilation and runtime]"
|
|
|
|
|
|
|
|
# Opus audio codec, custom compilation with custom modes and fixed point support
|
|
|
|
if [ -d "${OPUS}" ]; then
|
|
|
|
echo "The Opus directory is present, we assume it is compiled and ready to use. If not, delete the opus directory and call this script again."
|
|
|
|
else
|
2019-09-21 09:15:08 +02:00
|
|
|
wget https://archive.mozilla.org/pub/opus/${OPUS}.tar.gz
|
|
|
|
tar -xzf ${OPUS}.tar.gz
|
|
|
|
rm ${OPUS}.tar.gz
|
|
|
|
cd ${OPUS}
|
2019-09-21 10:23:39 +02:00
|
|
|
./configure --enable-custom-modes --enable-fixed-point
|
|
|
|
make
|
2019-09-21 09:15:08 +02:00
|
|
|
fi
|
|
|
|
|
2019-09-21 10:23:39 +02:00
|
|
|
# compile Jamulus with external Opus library
|
|
|
|
cd ..
|
|
|
|
qmake "CONFIG+=opus_shared_lib" Jamulus.pro
|
|
|
|
make
|
|
|
|
cd distrubutions
|
|
|
|
|