These are short notes on installing SuperCollider from source on a debian-based Linux distro … in 2020.
Download sources
Download source from an official release from github: https://github.com/supercollider/supercollider/releases – grab the Source-linux.tar.bz one. Also grab corresponding SC3-plugins at https://github.com/supercollider/sc3-plugins/releases
un-tar-bzip them with:
1 2 |
tar xjvf SuperCollider-3.11.2-Source.tar.bz2 tar xjvf sc3-plugins-3.11.1-Source.tar.bz2 |
Prepare system for compilation
Install all dependencies for your system (some instructions are also here: github.com/supercollider/supercollider/wiki/Installing-SuperCollider-from-source-on-Ubuntu) :
1 |
sudo apt-get install build-essential libsndfile1-dev libasound2-dev libavahi-client-dev libicu-dev libreadline6-dev libncurses5-dev libfftw3-dev libxt-dev libudev-dev pkg-config cmake qt5-default qt5-qmake qttools5-dev qttools5-dev-tools qtdeclarative5-dev qtpositioning5-dev libqt5sensors5-dev libqt5opengl5-dev qtwebengine5-dev libqt5svg5-dev libqt5websockets5-dev libjack-jackd2-dev checkinstall |
Building/compiling
Go to the folder with source, create a build folder, and cd to it:
1 2 3 |
cd SuperCollider-3.11.2-Source/ mkdir build cd build/ |
Configure make (cmake)
1 |
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_BUILD_TYPE=RelWithDebInfo -DNATIVE=ON .. |
Start compilation (-j 12 argument means how many (12) paralel cores can make use. also lotsa warnings but if you don’t end up with ‘Build failed’, then build was successful):
1 |
$ make -j 12 |
Now create a deb with checkinstall (change last part of pkgversion appropriately):
1 |
sudo checkinstall -D --pkgname=supercollider --pkgversion=1:3.11.2-deviant201221 --backup=no --install=no --nodoc -y |
SC3 plugins
Similarly untar, configure and compile sc3-plugins (adjust USERNAME and pkgversion):
1 2 3 4 5 6 |
cd ../../sc3-plugins-3.11.1-Source/ mkdir build cd build/ cmake -DSC_PATH=/home/USERNAME/.local/src/supercollider/SuperCollider-3.11.2-Source -DCMAKE_BUILD_TYPE=Release -DSUPERNOVA=ON .. cmake --build . -j 12 --config Release sudo checkinstall -D --pkgname=sc3-plugins --pkgversion=1:3.11.2-deviant201221 --backup=no --install=no --nodoc -y |
Installing
Remove previous installation of SuperCollider and plugins first:
1 |
sudo apt remove supercollider sc3-plugins |
Install the debs:
1 |
sudo gdebi SuperCollider-3.11.2-Source/build/supercollider_3.10.2-deviant190727-1_amd64.deb |
and
1 |
sudo gdebi sc3-plugins-3.11.1-Source/build/sc3-plugins_3.11.2-deviant201221-1_amd64.deb |