Re: GtkGLArea demo programs



I am trying to add a GtkGLArea to my program as a substitute for a
gdk_drawing_area.  However when I complie the demo programs that are 
part of the GtkGLArea tarball, I keep getting Segmentation Faults 
on all the demo programs except the "Zktor"

I'm using GKT+/GLIB 1.2.8, MESA 3.2.1, GtkGLArea 1.2.2

I'm using GKT+/GLIB 1.2.3, MESA 3.0, GtkGLArea 1.2.1
and everything works fine.

Zktor is definitely one of the most involved examples, 
it's good new that it works on this. GtkGlArea comes
with simple.c, which you might simplify even more,
taking out comments, removing code which is not
essential, you will end up with 20-30 lines of
code, which you can test with printfs, gdb, etc.

after compiling, ldd a.out will give you the
paths and names of all shared libraries that the 
executable uses, does the output make sense to you?

If you have around older versions of Mesa and gtkglarea,
it might be worth, just for testing, to see if they
work well together. I believe there are significant
changes from Mesa 3.0 to Mesa 3.2.1, related with
GLX, and GtkGlArea is essentially a collection of
wrapper functions around GLX...

Sorry if I cannot be more helpfull at the moment...

Carlos




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]