File: INSTALL

package info (click to toggle)
gauche-gl 0.6-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, forky, sid, trixie
  • size: 6,052 kB
  • sloc: ansic: 33,199; lisp: 13,740; sh: 2,484; makefile: 288
file content (82 lines) | stat: -rw-r--r-- 2,554 bytes parent folder | download | duplicates (2)
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
@c -*- coding:utf-8 -*-
                       Gauche-gl - Gauche OpenGL binding

Up-to-date information about Gauche-gl is posted to the following URL:
  http://practical-scheme.net/gauche/


Prerequisites
----------------------------------------------------------


* Gauche 0.9.3 or later must be installed.
* OpenGL 1.1 or later, or Mesa 3.0 or later, required.
* GLUT 3.7 or later is required (except when you compile
  on MinGW; see below.)


Quick Start
----------------------------------------------------------


   % ./configure
   % make
   % make install
Configure script figures out the necessary compiler options and the
install location from the installed Gauche.


Location of GLUT Library
----------------------------------------------------------


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

  ./configure --with-glut=DIR


On MinGW, you can choose an option to use freeglut-2.6 binary included
in the source tree instead of a separate GLUT library.  The freeglut
library is statically linked, which is convenient if you want to distribute
your script.   If you choose to do so, configure with the following option.

  ./configure --with-glut=mingw-static


If you distribute compiled libgauche-glut.dll with statically linked freeglut,
check win32/freeglut-2.6.0-3/Copying.txt.  Freeglut is basically a MIT-like
license, but you need to include the copyright notice in your distribution.


NVidia Cg binding
----------------------------------------------------------


Optionally you can build and install NVidia's Cg Toolkit bindings,
written by Issac Trotts.  It only covers a part of API yet, but
some examples are runnable.  To build and install Cg binding,
give --enable-cg to the configure script.

  ./configure --enable-cg

NVidia's Cg Toolkit has to be installed before building the
binding.  You can download the toolkit from the following URL.

  http://developer.nvidia.com/object/cg_toolkit.html


Platform-specific information
----------------------------------------------------------


It is reported that Mesa in FreeBSD ports is compiled with pthreads
enabled.  Thus 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.


On OSX 10.9 or later you'll get tons of warnings during compiling
since they deprecate GLUT.  It doesn't affect using the library.
We'll provide alternatives in near future.