This commit is contained in:
Volker Fischer 2019-09-28 13:19:29 +02:00
commit 49dba10309
2 changed files with 11 additions and 3 deletions

View file

@ -26,7 +26,7 @@ matrix:
# repo: corrados/jamulus # repo: corrados/jamulus
# tags: true # tags: true
- os: osx - os: osx
osx_image: xcode7.2 osx_image: xcode11
before_install: before_install:
- brew install qt5 - brew install qt5
- brew link qt5 --force - brew link qt5 --force

View file

@ -5,7 +5,7 @@ OPUS="opus-1.1"
NCORES=$(nproc) NCORES=$(nproc)
# install required packages # install required packages
pkgs='build-essential qt5-default' pkgs='alsamixergui build-essential qt5-default libasound2-dev cmake libglib2.0-dev'
if ! dpkg -s $pkgs >/dev/null 2>&1; then if ! dpkg -s $pkgs >/dev/null 2>&1; then
read -p "Do you want to install missing packages? " -n 1 -r read -p "Do you want to install missing packages? " -n 1 -r
echo echo
@ -43,6 +43,14 @@ else
cp build/common/*.so build/jack cp build/common/*.so build/jack
cp build/example-clients/*.so build/jack cp build/example-clients/*.so build/jack
cd .. cd ..
# give audio group rights to do realtime
if grep -Fq "@audio" /etc/security/limits.conf; then
echo "audio group already has realtime rights"
else
sudo sh -c 'echo "@audio - rtprio 95" >> /etc/security/limits.conf'
sudo sh -c 'echo "@audio - memlock unlimited" >> /etc/security/limits.conf'
fi
fi fi
# optional: FluidSynth synthesizer # optional: FluidSynth synthesizer
@ -66,7 +74,7 @@ fi
# compile Jamulus with external Opus library # compile Jamulus with external Opus library
cd .. cd ..
qmake "CONFIG+=opus_shared_lib" "INCLUDEPATH+=distributions/${OPUS}/include" "QMAKE_LIBDIR+=distributions/${OPUS}/.libs" Jamulus.pro qmake "CONFIG+=opus_shared_lib" "INCLUDEPATH+=distributions/${OPUS}/include" "QMAKE_LIBDIR+=distributions/${OPUS}/.libs" "INCLUDEPATH+=distributions/jack2/common" "QMAKE_LIBDIR+=distributions/jack2/build/common" Jamulus.pro
make -j${NCORES} make -j${NCORES}
# get first USB audio sound card device # get first USB audio sound card device