Clarification on GLUT and Cygwin

Yaakov (Cygwin/X)
Tue Jan 8 04:47:00 GMT 2013

On Mon, 7 Jan 2013 19:08:54 -0800, MyBig SpamEmail wrote:
> From what I was able to determine (and please correct me if I am wrong):
> - The official FAQ and discussion forums are now incorrect... In
> Cygwin you can only use GLUT with X-Windows, any historic projects
> will no longer work.
> - /usr/include/opengl/GL no longer exists (used to have Win32 native
> OpenGL files, including GLUT)
> - /usr/include/w32api/GL is the new location for Win32 native OpenGL
> files, but GLUT is no longer supported for Win32 native
> - /usr/include/GL still has OpenGL and GLUT header files for X-Windows

Correct on all points.

> - As a workaround, we can still install the obsolete OpenGL package
> from the "_obsolete" category in Cygwin's setup.exe installer, which
> will provide /usr/include/opengl/GL with Win32 native OpenGL+GLUT

For now, but this is not supported, and there are no guarantees as to
how long it will remain available.

> Also, I am trying to figure out how to resolve this issue going
> forward.

An alternative may be for you to compile freeglut for WGL and use that
instead locally.  If you don't have libGL-devel (Mesa) installed, this
will be straightforward; if you do, you'll need to work
around /usr/include/GL.  I don't anticipate supporting this
configuration within the distro, but it should work for your own
purposes.  The attached .cygport should get you started.

The alternative is to build your application for native Windows, using
the mingw64-*-gcc compilers available in the distro and
mingw64-*-freeglut packages available in Cygwin Ports.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: w32api-freeglut.cygport
Type: application/x-cygport
Size: 970 bytes
Desc: not available
URL: <>
-------------- next part --------------
Unsubscribe info:
Problem reports:

More information about the Cygwin-xfree mailing list