[HOpenGL] Stable version

Simon Peyton-Jones simonpj@microsoft.com
Mon, 6 Jan 2003 17:39:29 -0000


Sven

Thanks for discovering all this.  I'm sure Sigbjorn will take it on
board when next building an installer for GHC.

I suspect the headers are under mingw because GHC will *only* build
executables that run on Mingw.  Assuming GL comes with mingw headers,
I'm sure Sigbjorn will include the Mingw ones, not the Cygwin ones, next
time.

Sigbjorn: pls yell if you think there is anything unresolved here.

Simon

| -----Original Message-----
| From: Sven Panne [mailto:Sven.Panne@informatik.uni-muenchen.de]
| Sent: 05 January 2003 13:02
| To: hopengl@haskell.org; cvs-ghc@haskell.org
| Subject: Re: [HOpenGL] Stable version
|=20
| After a few (de-)installation cycles I finally figured out the OpenGL
| header story for the WinDoze versions of GHC:
|=20
|   * GHC 5.04 contains a GL subdir with OpenGL headers below
include\mingw.
|     Those headers seem to come from a Cygwin distribution, despite of
the
|     misleading pathname.
|=20
|   * Alas, GHC 5.04.1 and GHC 5.04.2 are not shipped with OpenGL
headers.
|=20
|   * The WinDoze installer packages for *both* GHC 5.04 and GHC 5.04.1
are
|     called 'ghc-5-04-1.msi'?! This is where part of my confusion came
from.
|     I suggest changing this on haskell.org/ghc.
|=20
|   * As an aside, the GHC 5.04.2 installer comes with superfluous
compilers
|     and support libraries for C++, Objective-C and Fortran77. Leaving
these
|     out would reduce the unpacked size of GHC by 6.3MB.  :-)
|=20
| Some more confusing facts about MinGW and Cygwin:
|=20
|    * MinGW's headers GL/gl{,u,ext}.h are identical to the ones from
Cygwin's
|      w32api/GL. The GL/glext.h header is lying about the OpenGL
version on
|      WinDoze, pretending it's 1.3.
|=20
|    * MinGW comes with a GLUT libraries, but not with a corresponding
|      GL/glut.h header.
|=20
| What to do in all this chaos? As the simplest short-term solution I've
| packaged the following headers into a ZIP file:
|=20
|     include/mingw/GL/gl.h        (from Cygwin's w32api/GL =3D=3D =
MinGW's
GL)
|     include/mingw/GL/glu.h       (from Cygwin's w32api/GL =3D=3D =
MinGW's
GL)
|     include/mingw/GL/glut.h      (from Cygwin's GL)
|     include/mingw/GL/glext.h     (from Cygwin's w32api/GL =3D=3D =
MinGW's
GL)
|=20
| It is available at:
|=20
|     http://haskell.org/HOpenGL/releases/OpenGL-includes.zip
|=20
| Simply unzip it into the installation directory of GHC 5.04.1 or
5.04.2
| (e.g. C:\ghc\ghc-5.04.2 for the default 5.04.2 installation). It would
| be nice if upcoming WinDoze installers for GHC were shipped with those
| headers.
|=20
| Cheers,
|     S.
|=20
| _______________________________________________
| Cvs-ghc mailing list
| Cvs-ghc@haskell.org
| http://www.haskell.org/mailman/listinfo/cvs-ghc