Created
May 27, 2016 17:38
-
-
Save multivac61/d079ae06201419cfe4925f1c2d1378d7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Supercollider and jack2 install script | |
# made for Raspberry Pi 3 | |
# run script as root? | |
if [ "$EUID" -ne 0 ] | |
then echo "Please run as root" | |
exit | |
fi | |
apt-get update && apt-get upgrade | |
# install dependencies | |
apt-get install git alsa-base libicu-dev libasound2-dev libsamplerate0-dev libsndfile1-dev libreadline-dev libxt-dev libudev-dev libavahi-client-dev libfftw3-dev cmake git gcc-4.8 g++-4.8 | |
git clone git://github.com/jackaudio/jack2 --depth 1 | |
cd jack2 | |
./waf configure --alsa #note: here we use the default gcc-4.9 | |
./waf build | |
sudo ./waf install | |
sudo ldconfig | |
cd .. | |
rm -rf jack2 | |
echo "@audio - memlock 256000" >> /etc/security/limits.conf | |
echo "@audio - rtprio 75" >> /etc/security/limits.conf | |
#exit and log in again to make the limits.conf settings work | |
git clone --recursive git://github.com/supercollider/supercollider | |
cd supercollider | |
git submodule init && git submodule update | |
mkdir build && cd build | |
export CC=/usr/bin/gcc-4.8 | |
export CXX=/usr/bin/g++-4.8 | |
cmake -L -DCMAKE_BUILD_TYPE="Release" -DBUILD_TESTING=OFF -DSSE=OFF -DSSE2=OFF -DSUPERNOVA=OFF -DNOVA_SIMD=ON -DNATIVE=OFF -DSC_ED=OFF -DSC_WII=OFF -DSC_IDE=OFF -DSC_QT=OFF -DSC_EL=OFF -DSC_VIM=OFF -DCMAKE_C_FLAGS="-mfloat-abi=hard -mfpu=neon" -DCMAKE_CXX_FLAGS="-mfloat-abi=hard -mfpu=neon" .. | |
make -j 4 #leave out flag j4 on single core rpi models | |
sudo make install | |
sudo ldconfig | |
cd ../.. | |
rm -rf supercollider | |
sudo mv /usr/local/share/SuperCollider/SCClassLibrary/Common/GUI /usr/local/share/SuperCollider/SCClassLibrary/scide_scqt/GUI | |
sudo mv /usr/local/share/SuperCollider/SCClassLibrary/JITLib/GUI /usr/local/share/SuperCollider/SCClassLibrary/scide_scqt/JITLibGUI | |
echo "SuperCollider has been installed! You should restart your system to allow the system to update" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment