Installation
We tried to make ChucK as easy as possible to build (if desired), install, and re-use. All sources files - headers source for compiler, vm, and audio engine - are in the same directory. Platforms differences are abstracted to the lowest level (in part thanks to Gary Scavone). None of the compiler/vm has any OS-depedent code.
There are also pre-compiled executables available for OS X and Windows.
The classic ’chuck’ runs as a command line program. There are GUI-based integrated development and performance environments as well that can be used as standalone chuck virtual machines, or in conjunction with the command version of ’chuck’. GUI-based environments include the miniAudicle (http://audicle.cs.princeton.edu/mini). Recently a ChucK syntax highlighting package for Atom text editor has been deployed (https://atom.io/packages/language-chuck).
This section deals mainly with the classic, command-line version of chuck.
The binary distributions include a directory called bin/ that contains the precompiled binary of ChucK for your operating system. The binary distribution is a great way to dive into ChucK.
%>cd chuck-x.x.x.x-exe/bin
%>sudo cp chuck /usr/bin/(enter password when prompted)
%>sudo chmod 755 /usr/bin/chuckNow you should be able to run ’chuck’ from any directory.
%>chuck
[chuck]: no input files... (try –help)
chuck [chuck]: no input files... (try --help)
To build chuck from the source (Windows users: it’s possible to build ChucK from both Visual
C++ 6.0 and from cygwin - this section describes the cygwin build):
%>cd chuck-x.x.x.x/src/
%>make osx-ubfor example, for MacOS X (current):
%>make osxfor example, for Windows (under cygwin):
%>make win32
# (optional: edit the makefile first) %>make installYou may need to have administrator privileges in order to install ChucK. If you have admin access then you can use the sudo command to install.
%>sudo make install
%>chuck [chuck]: no input files...(if you do get error messages during compilation, or you run into some other problem - please let us know and we will do our best to provide support)
You are ready to ChucK. If this is your first time programming in ChucK, you may want to look at the documentation, or take the ChucK Tutorial (http://chuck.cs.princeton.edu/doc). Thank you very much. Go forth and ChucK - email us for support or to make a suggestion or to call us idiots.
Ge + Perry
(as root)
yum install bison flex libsndfile-devel gcc gcc-c++
for alsa:
yum install alsa-lib-devel
for jack:
yum install jack-audio-connection-kit-devel
then in src directory, type
make linux-alsa or make linux-jack
for miniAudicle, add this:
yum install wxGTK-devel
then
make linux-alsa or make linux-jack
the miniAudicle executable file will be in wxw directory, which you may copy to /usr/bin
In the Terminal window, enter the following command (on a single line) and then hit Return;
sudo apt-get install make gcc g++ bison flex libasound2-dev libsndfile1-dev libqt4-dev libqscintilla2-dev libpulse-dev
make linux-alsa
if you need alsa or
make linux-jack
if you need a jack version.
to install;
sudo make install
or manually copy to /usr/bin
To compile miniAudicle From the source code folder, use;
make linux-alsa
or
make linux-jack
The resulting executable will be miniAudicle in the wxw folder. It may be moved to /usr/bin for running it from anywhere easily. Instructions for building on Linux adapted from a forum post by Kijjaz.
There has been error in communication with Booktype server. Not sure right now where is the problem.
You should refresh this page.