comp.lang.ada
 help / color / mirror / Atom feed
* GtkAda & OpenGl on linux
@ 2005-05-28 16:25 John B. Matthews
  2005-05-28 23:24 ` Bobby D. Bryant
  0 siblings, 1 reply; 2+ messages in thread
From: John B. Matthews @ 2005-05-28 16:25 UTC (permalink / raw)


Hi!

Using a freshly prepared gcc-3.4.3 on Yellow Dog Linux 
<http://www.yellowdoglinux.com/>, I have a problem using GtkAda & Open GL on 
an nVidia GeForce2 MX/MX 400.

I am able to build GtkAda 2.4.x with GL support 
<http://libre.act-europe.fr/GtkAda/>. The test program, testgtk, works 
correctly, but the OpenGL example dies horribly:

The program 'testgtk' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
  (Details: serial 704 error_code 8 request_code 152 minor_code 5)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on gdk_x_error().)

Compiling with -g and running under gdb with the --sync arg gave the same 
result. The (in)famous glxgears works fine at about 100 frames/sec; glxinfo 
reports "direct rendering: No". A simple GLUT example written in C doesn't 
crash, but the window comes up empty.

When this happens on other platforms (e.g. RedHat, x86), rebuilding the nvidia 
driver fixes the problem. Sadly, nVidia doesn't support PowerPC. Assuming it 
might help, what might be the corresponding thing to do on YDL?

Any insights appreciated; sorry this a a bit off topic.

-- 
John
jmatthews at wright dot edu
www dot wright dot edu/~john.matthews/



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-05-28 23:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-28 16:25 GtkAda & OpenGl on linux John B. Matthews
2005-05-28 23:24 ` Bobby D. Bryant

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox