[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

2. Installation

Installing Gauche-gl is usually straightforward on Unix variants.

You have to have the following programs installed on your machine.

The standard way to compile and install Gauche-gl is as follows:

 
% gzcat Gauche-gl-0.4.4.tgz | tar xf -
% cd Gauche-gl-0.4.4
% ./configure
% make
% make test
% make install

Or you can use ‘gauche-package’ command:

 
% gauche-package install -C=<configure-option> Gauche-gl-0.4.4.tgz

The confiugre script figures out the location Gauche is installed, and install Gauche-gl in the same place.

If you have GLUT installed in non-standard place, you have to tell the configure script where it is.

 
% ./configure --with-glut=DIR

Since version 0.4, Gauche-gl can be configured to include bindings to NVidia's Cg Toolkit. The binding code is contributed by Issac Trotts. To enable Cg binding, give --enable-cg option to the configure script.

 
% ./configure --enable-cg

It is reported that Mesa in FreeBSD ports is compiled with pthreads enabled, and Gauche-gl can't be linked unless Gauche itself is compiled with pthreads. The configure script of Gauche prints warning if you specify pthreads, but it is safe as far as you don't call make-thread in your program.

There are various examples under ‘examples/’ directory. If you want to run the examples before installing Gauche-gl, you have to tell the location of the library to gosh command, e.g. gosh -I../src -I../lib gears.scm. Some demos under subdirectories have a shell script that invokes gosh with proper command-line options.

gears.scm

Brian Paul's 3D gear wheels.

mandelbrot.scm

Simple calculated texture.

glbook/

This subdirectory contains examples found in "OpenGL Programming Guide", a.k.a. Redbook.

slbook/

This subdirectory contains examples found in "OpenGL Shading Language". Each demo is under its own subdirectories. You need to have proper driver/hardware that supports GLSL to run these demos.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]

This document was generated by Shiro Kawai on June, 7 2008 using texi2html 1.78.