-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathINSTALL
114 lines (74 loc) · 3.11 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
ChucK : Build Instructions
version: 1.2.x.x (dracula)
---
ChucK home:
http://chuck.cs.princeton.edu/
http://chuck.stanford.edu/
Got questions?
http://chuck.cs.princeton.edu/community.html
email us:
online version of this document:
http://chuck.cs.princeton.edu/doc/build/
---
If you are using the executable, you only need to put chuck (osx) or
chuck.exe (win32) in your path.
On MacOS X (using Terminal): go to the bin/ directory and type:
sudo cp chuck /usr/bin/
(enter your password when prompted)
sudo chmod 755 /usr/bin/chuck
(now you can run chuck from any directory using Terminal)
On win32: put bin\chuck.exe in c:\windows\system32\
At this point, you should be able to invoke 'chuck' from either Terminal
(in OSX) or 'cmd' under windowsm, from any directory:
> chuck
[chuck]: no input files... (try --help)
(this is the correct output, since we didn't specify the files to run)
If that is the case, you can skip the rest of this document.
---
We tried to make ChucK as easy as possible to build and re-use. All
sources files - headers source for compiler, vm, and audio engine - are
in the same directory (they run in the same address space anyway). Platforms
differences are abstracted to the lowest level (in part thanks to Gary
Scavone). None of the compiler/vm has any OS-depedent code. To build
chuck from the source (from scratch):
---
1. Go to the src/ directory (replace chuck-x.x.x.x with the actual
directory name):
%> cd chuck-x.x.x.x/src/
---
2. If you type 'make' here, you should get the following message:
%> make
[chuck build]: please use one of the following configurations:
make osx, make osx-ub, make win32,
make linux-oss, make linux-alsa, or make linux-jack
Now, type the command corresponding to your platform...
for example, for MacOS X (Universal Binary: PowerPC + Intel):
%> make osx-ub
or for MacOS X (current):
%> make osx
etc...
---
3. If you like to install chuck (cp into /usr/bin by default). if you
don't like the destination, simply edit the makefile under 'install', or
skip this step altogether. (we recommend putting it somewhere in your
path, it makes on-the-fly programming easier)
# (optional: edit the makefile first)
%> make install
---
4. If you haven't gotten any egregous error messages up to this point,
then you should be done! There should be a 'chuck' executable in the
current directory. For a quick sanity check, execute the following (use
'./chuck' if chuck is not in your path), and see if you get the same output:
%> 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)
---
5. 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 (in doc/ and online 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