MediaScript

Building MediaScript from Source

These are quickly written instructions. Detailed instructions to follow in the far future.

1. Download and install everything MediaScript depends on. You can download and build from source, or use your favorite package installation program, or whatever. Here is a partial list.

1a. When you are building MzScheme, you probably want to use commands something like the following:

./configure --prefix=/usr
make both
/usr/bin/sudo make install-both

2. Hand-write a pkg-config file for PLT Scheme, which does not generate its own pkg-config files. This file needs to be called mzcgc.pc (for MzScheme with the conservative garbate collector).

Here is a sample pkg-config file

prefix=/usr
exec_prefix=${prefix}
libdir=${prefix}/lib
includedir=${prefix}/include
collects=/usr/lib/plt/collects

Name: MzScheme/CGC
Description: The MzScheme library with the CGC garbage collector
Version: 4.1.5

Libs: -L${libdir} -lmzscheme -lmzgc
Cflags: -I${includedir}

You need to install the file in the appropriate location, typically /usr/lib/pkgconfig.

3. Download the source code for MediaScript using SVN.

svn co svn://svn.cs.grinnell.edu/glimmer/DrFu

4. Configure MediaScript. Right now, the Python libraries seem broken, so configure it to disable Python.

./configure --disable-python

5. Build MediaScript

make

6. Install MediaScript

/usr/bin/sudo make install

7. Check to see if it works. Start the GIMP. Open the MediaScript console. Type something like

(image-show (image-compute (lambda (x y) (rgb-new x y (+ x y))) 200 200))

The site logo was created by Heather Anu Kramer, a student in the Fall 2007 session of Grinnell College's CSC 151. The image is copyright © 2007 Heather Kramer and is used by permission.