This is the mail archive of the
mailing list for the Cygwin project.
Re: OpenGL and cygwin
On Mon, 10 Nov 2003, Brian Ford wrote:
> This is part of your confusion. Cygwin proper has no OpenGL libs (ie.
> opengl32, glu32) per se. It only has import libraries for the Window's
> ones. (Cygwin does have a glut.dll and import lib as you have seen.)
> Cygwin XFree86 supplies OpenGL libs (ie. GL, GLU) via Mesa software
> > I compiled my code using
> > gcc -mno-cygwin <src files> -lglut32 -lglu32 -lopengl32
> Did you try it without -mno-cygwin? You will still get your Nvidia
> OpenGL libs, but will be subject to Cygwin's license.
> > the code compiles correctly, and does not run, giving the error I
> > indicated earlier.
> Maybe this is because you are getting Cygwin's glut import lib even when
> using Nvidia's glut? Just a guess.
So I compiled without -mno-cygwin. According to cygcheck, I get the
correct dlls (dump enclosed below). This time the program runs silently,
and exits without popping up a window and with no errors. From
appropriately placed print statements, it appears that the program is
having trouble creating a window with glutCreateWindow and appears to die
silently before completing that step (or just after).
As I mentioned earlier, I will try to create a pared-down version that
recreates the problem: might be easier to circulate the src then, if
anyone wants to try their hand at compiling it...
euclid 8:00pm [3d_diameter]> cygcheck main.exe
Suresh Venkatasubramanian, Ph: 973 360 8951 (o)
Member, Technical Staff Web: http://www.research.att.com/~suresh/
AT&T Shannon Labs
"The guitar is the ideal instrument for anyone who is able to love loneliness." --Angelo Gilardino
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html