Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
emacs
examples
ext
src
support
LICENSE
README
abstracting

README

----------------------------------------------------------------------

This software has mainly been tested on Linux.

Everything works out of the box on these implementations:

    Ypsilon
    Ikarus

Other Scheme's have specific instructions below.

The implementation versions that have been tested:

    Ypsilon (svn)         Linux Mac
    Ikarus  (0.0.4-rc1+)  Linux Mac
    Larceny (svn)         Linux
    Chicken (3.4.0)       Linux
    Gambit  (4.4.1 4.4.2) Linux

----------------------------------------------------------------------
* Install

To install, edit the file 'abstracting' and change the line:

    cd /root/abstracting

to point to the actual abstracting directory on your system.
----------------------------------------------------------------------
* Quick start

Run one of:

    abstracting --ypsilon
    abstracting --ikarus
    abstracting --larceny
    abstracting --chicken
    abstracting --gambit

At the Scheme prompt, try some demos:

    (require-lib "boids")

    (require-lib "golden-section")

    (require-lib "trails")

    (require-lib "sine-console")

    (require-lib "cfdg/models/chiaroscuro")

    (require-lib "cfdg/models/spirales")

    (require-lib "cfdg/models/game1-turn6")

    (require-lib "springies/models/ball")

----------------------------------------------------------------------
* Setup on Larceny

    $ larceny -err5rs

    > (import (larceny compiler))

    > (compile-library "support/larceny/gl.sls")

    > (compile-library "support/larceny/glut.sls")
----------------------------------------------------------------------
* Setup on Gambit

** Path to gsc

If needed, edit the path to 'gsc' in the abstracting file:

    /usr/local/Gambit-C/bin/gsc

** Compile SRFI-1

    gsc support/gambit/srfi-1/srfi-1.scm

** Compile GL

    /usr/local/Gambit-C/bin/gsc           \
      -cc-options "-I/usr/X11R7/include"  \
      -ld-options "-L/usr/X11R7/lib -lGL" \
      support/gambit/gl/gl.scm

** Compile GLUT

    /usr/local/Gambit-C/bin/gsc             \
      -cc-options "-I/usr/X11R7/include"    \
      -ld-options "-L/usr/X11R7/lib -lglut" \
      support/gambit/glut/glut.scm
----------------------------------------------------------------------
* Setup on Chicken

** Eggs

On Chicken, you'll need to install these standard eggs:

    easyffi
    syntax-case
    vector-lib
    srfi-27

** Compile GL

    cd support/chicken/gl
    csc gl.scm -dynamic -I/usr/X11R7/include -L/usr/X11R7/lib -lGL

** Compile GLUT

    cd support/chicken/glut
    csc glut.scm -dynamic -I/usr/X11R7/include -L/usr/X11R7/lib -lglut
----------------------------------------------------------------------
Something went wrong with that request. Please try again.