1 ChucK : Build Instructions
3 version: 1.2.x.x (dracula)
8 http://chuck.cs.princeton.edu/
11 http://chuck.cs.princeton.edu/community.html
14 gewang@cs.princeton.edu
16 online version of this document:
17 http://chuck.cs.princeton.edu/doc/build/
21 If you are using the executable, you only need to put chuck (osx) or
22 chuck.exe (win32) in your path.
24 On MacOS X (using Terminal): go to the bin/ directory and type:
26 sudo cp chuck /usr/bin/
27 (enter your password when prompted)
29 sudo chmod 755 /usr/bin/chuck
30 (now you can run chuck from any directory using Terminal)
32 On win32: put bin\chuck.exe in c:\windows\system32\
34 At this point, you should be able to invoke 'chuck' from either Terminal
35 (in OSX) or 'cmd' under windowsm, from any directory:
38 [chuck]: no input files... (try --help)
40 (this is the correct output, since we didn't specify the files to run)
42 If that is the case, you can skip the rest of this document.
46 We tried to make ChucK as easy as possible to build and re-use. All
47 sources files - headers source for compiler, vm, and audio engine - are
48 in the same directory (they run in the same address space anyway). Platforms
49 differences are abstracted to the lowest level (in part thanks to Gary
50 Scavone). None of the compiler/vm has any OS-depedent code. To build
51 chuck from the source (from scratch):
55 1. Go to the src/ directory (replace chuck-x.x.x.x with the actual
58 %> cd chuck-x.x.x.x/src/
62 2. If you type 'make' here, you should get the following message:
65 [chuck build]: please use one of the following configurations:
66 make osx-ppc, make osx-intel, make win32,
67 make linux-oss, make linux-alsa, or make linux-jack
69 Now, type the command corresponding to your platform...
71 for example, for MacOS X (PowerPC):
75 or for MacOS X (Intel):
83 3. If you like to install chuck (cp into /usr/bin by default). if you
84 don't like the destination, simply edit the makefile under 'install', or
85 skip this step altogether. (we recommend putting it somewhere in your
86 path, it makes on-the-fly programming easier)
88 # (optional: edit the makefile first)
93 4. If you haven't gotten any egregous error messages up to this point,
94 then you should be done! There should be a 'chuck' executable in the
95 current directory. For a quick sanity check, execute the following (use
96 './chuck' if chuck is not in your path), and see if you get the same output:
99 [chuck]: no input files...
101 (if you do get error messages during compilation, or you run into some
102 other problem - please let us know and we will do our best to provide
107 5. You are ready to ChucK. If this is your first time programming in
108 ChucK, you may want to look at the documentation, or take the ChucK
109 Tutorial (in doc/ and online http://chuck.cs.princeton.edu/doc/). ThanK
110 you very much. Go forth and ChucK - email us for support or to make a
111 suggestion or to call us idiots.