Hi!
Concerning the Hopen-GL-distribution 1.00 on
win2000, latest cygwin, greencard 2.0
The way the target is given in the lib-Makefile
doesnt work (at least with
my version 2.0(1?) of greencard).
I changed the
options line in /HOpenGL-1.00/lib/Makefile
from
GREENCARD_OPTS = -t ghc
--name-mangling-scheme=classic
to
GREENCARD_OPTS =
--target ghc --name-mangling-scheme=classic
(Also possible with my version of
greencard is "-tghc" without a space
between)
That seems to work.
The first file here, GLUT_CBGlobal.gc, runs through the
parser
which
correctly generates the output file GLUT_CBGlobal.hs...
but then
another error occurs while parsing GLUT_CBWindow.gc:
bash-2.05$
make depend
/cygdrive/c/ghc/ghc-4.08.2/bin/green-card --target
ghc
--name-mangling-scheme=cl
assic GLUT_CBGlobal.gc -o
GLUT_CBGlobal.hs
/cygdrive/c/ghc/ghc-4.08.2/bin/green-card --target
ghc
--name-mangling-scheme=cl
assic GLUT_CBWindow.gc -o
GLUT_CBWindow.hs
"GLUT_CBWindow.gc", proc. spec "", line 285: Parse
error: Enum, Bounded)
CUnsig
nedInt [
%
GLUT_JOYSTICK_BUTTON_A,
%
GLUT_JOYSTICK_BUTTON_B,
% GLUT_JOYS
make: ***
[GLUT_CBWindow.hs] Error 1
I begin wondering if it is
actually possible to run HOpenGL on my computer.
Hm.
The HOpenGL-website
says that the library has been heavily tested under
Linux AND Windows.
But
it seems that nobody with my configuration has ever compiled the
source
package (as far as I know, there are no binary packages available,
are
they?).
Has anybody else tried to compile version 1.00
under
win2000/cygwin/greencard2.0(1?)?
Does someone know where else I can
get the necessary libraries?
Thanks very
much.
Johannes