These are short notes on installing SuperCollider from source on a debian-based Linux distro … in 2019.
Download sources
Download source from an official release from github: https://github.com/supercollider/supercollider/releases – grab the Source-linux.tar.bz one.
un-tar-bzip it with:
|
tar xjvf SuperCollider-3.10.2-Source-linux.tar.bz |
Prepare system for compilation
Install all dependencies for your system by following instructions on how to build SC from source on Linux here: https://github.com/supercollider/supercollider/blob/develop/README_LINUX.md (the most tricky is QT version – for recent versions of distros the QT version is high enough to install through apt):
|
sudo apt-get install build-essential cmake libjack-jackd2-dev libsndfile1-dev libfftw3-dev libxt-dev libavahi-client-dev |
|
sudo apt-get install git libasound2-dev libicu-dev libreadline6-dev libudev-dev pkg-config |
Check if QT in your distro’s repos is high enough for SC (5.7 or later!):
|
apt-cache policy qt5-default |
if so, install the QT dev packages:
|
sudo apt-get install qt5-default qt5-qmake qttools5-dev qttools5-dev-tools qtdeclarative5-dev qtwebengine5-dev libqt5svg5-dev libqt5websockets5-dev |
I’m using checkinstall to create a deb package, so, install that as well:
|
sudo apt install checkinstall |
Building/compiling
Go to the folder with source, create a build folder, and cd to it:
|
cd SuperCollider-source $ mkdir build $ cd build |
Configure make (cmake)
|
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_BUILD_TYPE=RelWithDebInfo -DNATIVE=ON .. |
Start compilation (lotsa warnings but if you don’t end up with ‘Build failed’, then build was successful):
Now create a deb with checkinstall:
|
sudo checkinstall -D --pkgname=supercollider --pkgversion=1:3.10.2-deviant190727 --backup=no --install=no --nodoc -y --replaces=supercollider,supercollider-common,supercollider-ide,supercollider-language,supercollider-server,supercollider-supernova |
Installing
Install the final deb:
|
sudo gdebi supercollider_3.10.2-deviant190727-1_amd64.deb |
or
|
sudo dpkg -i supercollider_3.10.2-deviant190727-1_amd64.deb |