This is the mail archive of the cygwin-xfree mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Clarification on GLUT and Cygwin


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.

HTH,


Yaakov
Cygwin/X

Attachment: w32api-freeglut.cygport
Description: application/cygport

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]