hopengl

Johannes Götz jgoetz@polirami.de
Sat, 28 Jul 2001 14:53:20 +0200


This is a multi-part message in MIME format.

------=_NextPart_000_00E0_01C11775.0AF2EEB0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

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     =3D -t ghc --name-mangling-scheme=3Dclassic
to
GREENCARD_OPTS     =3D --target ghc --name-mangling-scheme=3Dclassic
(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=3Dcl
assic  GLUT_CBGlobal.gc -o GLUT_CBGlobal.hs
/cygdrive/c/ghc/ghc-4.08.2/bin/green-card --target
ghc --name-mangling-scheme=3Dcl
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




------=_NextPart_000_00E0_01C11775.0AF2EEB0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3315.2870" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi!</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Concerning the Hopen-GL-distribution =
1.00 on=20
win2000, latest cygwin, greencard 2.0</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>The way the target is given in the =
lib-Makefile=20
doesnt work (at least with<BR>my version 2.0(1?) of greencard).<BR>I =
changed the=20
options line in /HOpenGL-1.00/lib/Makefile=20
from<BR>GREENCARD_OPTS&nbsp;&nbsp;&nbsp;&nbsp; =3D -t ghc=20
--name-mangling-scheme=3Dclassic<BR>to<BR>GREENCARD_OPTS&nbsp;&nbsp;&nbsp=
;&nbsp; =3D=20
--target ghc --name-mangling-scheme=3Dclassic<BR>(Also possible with my =
version of=20
greencard is "-tghc" without a space<BR>between)<BR><BR><BR>That seems =
to work.=20
The first file here, GLUT_CBGlobal.gc, runs through the<BR>parser=20
which<BR>correctly generates the output file GLUT_CBGlobal.hs...<BR>but =
then=20
another error occurs while parsing =
GLUT_CBWindow.gc:<BR><BR><BR><BR>bash-2.05$=20
make depend<BR>/cygdrive/c/ghc/ghc-4.08.2/bin/green-card --target<BR>ghc =

--name-mangling-scheme=3Dcl<BR>assic&nbsp; GLUT_CBGlobal.gc -o=20
GLUT_CBGlobal.hs<BR>/cygdrive/c/ghc/ghc-4.08.2/bin/green-card =
--target<BR>ghc=20
--name-mangling-scheme=3Dcl<BR>assic&nbsp; GLUT_CBWindow.gc -o=20
GLUT_CBWindow.hs<BR>"GLUT_CBWindow.gc", proc. spec "", line 285: Parse=20
error:&nbsp; Enum, Bounded)<BR>CUnsig<BR>nedInt [<BR>%&nbsp;&nbsp;=20
GLUT_JOYSTICK_BUTTON_A,<BR>%&nbsp;&nbsp;=20
GLUT_JOYSTICK_BUTTON_B,<BR>%&nbsp;&nbsp; GLUT_JOYS<BR>make: ***=20
[GLUT_CBWindow.hs] Error 1<BR><BR><BR><BR><BR>I begin wondering if it is =

actually possible to run HOpenGL on my computer.<BR>Hm.<BR>The =
HOpenGL-website=20
says that the library has been heavily tested under<BR>Linux AND =
Windows.<BR>But=20
it seems that nobody with my configuration has ever compiled =
the<BR>source=20
package (as far as I know, there are no binary packages =
available,<BR>are=20
they?).<BR><BR>Has anybody else tried to compile version 1.00=20
under<BR>win2000/cygwin/greencard2.0(1?)?<BR>Does someone know where =
else I can=20
get the necessary libraries?<BR><BR>Thanks very=20
much.<BR>Johannes<BR><BR><BR></DIV></FONT></BODY></HTML>

------=_NextPart_000_00E0_01C11775.0AF2EEB0--