opengl in 1.7 on Win7 again

Jon TURNEY jon.turney@dronecode.org.uk
Thu Nov 5 23:43:00 GMT 2009


On 05/11/2009 11:32, Luke J. West wrote:
> I forgot to mention in my previous email that glxgears works fine - even
> though my sample opengl program bombs out like this...
>
> sh-3.2$ ./sample.bin
> freeglut (./sample.bin):  ERROR:
> Internal error<Visual with necessary capabilities not found>  in
> function fgOpenWindow
> Segmentation fault (core dumped)
>
> Where's the first place you would check if you had this problem?

Although you probably will not consider this helpful, the first place to look 
is: in your sample.c

You haven't shown any evidence that the error message reported isn't correct 
i.e. your sample code is causing freeglut to ask for a visual which the server 
can't give it.

> *any*
> help appreciated. any suggestions as to where to look or what to check
> will be most helpful.

Looking at the source code for fgOpenWindow and fgChooseVisual [1], the 
specification of glXChooseVisual, the set of visuals available as listed by 
glxinfo and how your sample code configures freeglut would probably be 
informative...

[1] 
http://freeglut.svn.sourceforge.net/viewvc/freeglut/trunk/freeglut/freeglut/src/freeglut_window.c?view

> I've just installed Cygwin 1.7 (Win7 Hmoe Premium) and am trying to get
> started with OpenGL.
>
> I have a sample OpenGL program (sample.c) and I get the following.
>
> sh-3.2$ gcc -o sample.bin sample.c -lglut -lglu -lgl
>
> sh-3.2$ ./sample.bin
> freeglut (./sample.bin):  ERROR:  Internal error<Visual with necessary
> capabilities not found>  in function fgOpenWindow
> Segmentation fault (core dumped)
>
> sh-3.2$ glxinfo
> name of display: :0.0
> display: :0  screen: 0
> direct rendering: Yes
> server glx vendor string: Brian Paul
> ...
> 64 GLX Visuals
>     visual  x  bf lv rg d st colorbuffer ax dp st accumbuffer  ms  cav
>   id dep cl sp sz l  ci b ro  r  g  b  a bf th cl  r  g  b  a ns b eat
> ----------------------------------------------------------------------
> 0x21 24 tc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
> 0xc2 24 tc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
> 0xc3 24 tc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
> 0xc4 24 tc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
> ....

-- 
Jon TURNEY
Volunteer Cygwin/X X Server maintainer

--
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/



More information about the Cygwin-xfree mailing list