comp.lang.ada
 help / color / mirror / Atom feed
From: "John B. Matthews" <nospam@nospam.com>
Subject: GtkAda & OpenGl on linux
Date: Sat, 28 May 2005 16:25:10 GMT
Date: 2005-05-28T16:25:10+00:00	[thread overview]
Message-ID: <nospam-1199D5.12245328052005@news-rdr-03.ohiordc.rr.com> (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/



             reply	other threads:[~2005-05-28 16:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-28 16:25 John B. Matthews [this message]
2005-05-28 23:24 ` GtkAda & OpenGl on linux Bobby D. Bryant
replies disabled

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