sclang in 32 bit:
As root in 64 bit part: (installing etch as it's stable)
# debootstrap --arch i386 etch /var/chroot/etch-ia32 http://ftp.debian.org/debian/ # emacs /etc/fstab
// add this:
/home /var/chroot/etch-ia32/home none bind 0 0 /tmp /var/chroot/etch-ia32/tmp none bind 0 0 /dev /var/chroot/etch-ia32/dev none bind 0 0 /proc /var/chroot/etch-ia32/proc none bind 0 0
// enter the chroot
# chroot /var/chroot/etch-ia32
// install required packages
# apt-get install scons libsndfile1 libsndfile1-dev fftw3 libjack0.100.0-dev libavahi-common-dev libavahi-common-data libavahi-core-dev libavahi-client-dev libasound2-dev libxt-dev localepurge subversion gcc g++ w3m-el
// install optional packages
# apt-get install libcwiid1-dev libcurl4-openssl-dev
// at this point you may have to reboot to have the changes in /etc/fstab take effect. Otherwise you will not be able to go into your home directory from the chroot.
// get ready to build
# cd /home/matthew/src/SC_32/ # svn co https://supercollider.svn.sourceforge.net/svnroot/supercollider/trunk SuperCollider3 # cd SuperCollider3 # scons PREFIX=/usr/ # scons # scons install
SCSYNTH in 64 bit:
as normal user...
> cd /home/matthew/src/SC_64 > svn co https://supercollider.svn.sourceforge.net/svnroot/supercollider/trunk SuperCollider3 > cd SuperCollider3 > scons PREFIX=/usr LANG=no > sudo scons install
NOW SET UP YOUR SHELL ENVIRONMENT - you might want to add this to your ~/.bash_profile
> export PATH=$PATH::/var/chroot/etch-ia32/usr/bin/ > export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/var/chroot/etch-ia32/usr/lib/
SET UP SC
- create ~/.sclang.sc, put startup code in there
- create ~/.sclang.cfg put this in there:
# default class library +/usr/share/SuperCollider/SCClassLibrary/ # linux extensions +/usr/share/SuperCollider/Extensions
SET UP emacs
- add (require 'sclang) to ~/.emacs
TEST
> emacs -sclang s=Server.local.boot {SinOsc.ar(220)}.play
REFERENCES:
// chroot
https://alioth.debian.org/docman/view.php/30192/21/debian-amd64-howto.html#id292205
// sc3 and linux
http://swiki.hfbk-hamburg.de:8888/MusicTechnology/479
//