[HOpenGL] Re: Starting it all over again

Glynn Clements glynn.clements@virgin.net
Wed, 8 Jan 2003 22:01:15 +0000


Manuel Garcia Rodriguez wrote:

> > From: "Andre Furtado" <awfurtado@homelink.com.br>
> > To: <hopengl@haskell.org>
> > Subject: Re: [HOpenGL] Starting it all over again
> > Date: Tue, 7 Jan 2003 18:01:46 -0200
> > [...]
> > Although "./configure" completed successfully, I
> > could not understand why the "library containing  
> > glutMainLoop" was not found: 
> > checking for library containing glutMainLoop... no
> > [...]
> 
> Yeh, I have the same problem, and I have a FULL
> install (all packages). ld can't link any glut calls,
> so there's a Cygwin setup problem. Cygwin Opengl
> package comes with gl, glu, glut headers, glut32.dll,
> and libglui.a libgluix.a. There's no libglut.a. I
> think that OpenGL is required by XWindow, so libGL.a
> and libGLU.a exist in X11R6 lib path. glxgears works,
> so gl works, but glut doesn't.

The "w32api" package contains the following OpenGL libraries:

usr/lib/w32api/libglaux.a
usr/lib/w32api/libglu32.a
usr/lib/w32api/libglut.a
usr/lib/w32api/libglut32.a
usr/lib/w32api/libopengl32.a

However, these will be for the native Win32 environment (i.e. 
Microsoft's opengl32.dll), not Cygwin/X11.

It also contains the wingdi.h header, which contains the wgl*
functions (although those shouldn't be required for HOpenGL).

The "opengl" package contains glut32.dll (which is presumably for the
Win32 environment, not X11), plus headers (which should be portable):

usr/include/GL/gl.h
usr/include/GL/gl.h~
usr/include/GL/glu.h
usr/include/GL/glut.h

The Xprog "package" from the Cygwin port of XFree86 contains the X11
versions of the libraries:

lib/libGL.a
lib/libGLU.a
lib/libGLw.a

Plus the full set of X11 OpenGL headers:

include/GL/
include/GL/gl.h
include/GL/glext.h
include/GL/glu.h
include/GL/GLwDrawA.h
include/GL/GLwDrawAP.h
include/GL/GLwMDrawA.h
include/GL/GLwMDrawAP.h
include/GL/glx.h
include/GL/glxint.h
include/GL/glxmd.h
include/GL/glxproto.h
include/GL/glxtokens.h
include/GL/osmesa.h

The upshot of this is that they don't appear to provide a Cygwin/X11
version of GLUT, only a Win32 (i.e. mingw) version. However, it should
be possible to compile it from source, provided that you have the
Xprog package installed.

-- 
Glynn Clements <glynn.clements@virgin.net>