I'm trying to get some of the examples in the pygtk "gl" directory
under version 0.6.3.
I'm running on Solaris 2.6 with Mesa 3.0, using gtkglarea-1.2.1 and
PyOpenGL-1.5.5.
My problem is that pygtk-0.6.3 seems to reference
gtk_gl_area_swap_buffers
in gtkgl_impl.c
whereas in gtkglarea-1.2.1, the actual function is named:
gtk_gl_area_swapbuffers
resulting in
james@flanders> python dots.py
Traceback (innermost last):
File "dots.py", line 13, in ?
import gtkgl
File "/opt/gnu/lib/python1.5/site-packages/gtkgl.py", line 1, in ?
import _gtkgl
ImportError: ld.so.1: python: fatal: relocation error: file
/opt/gnu/lib/python1.5/site-packages/_gtkglmodule.so: symbol gtk_gl_area_swap_buffers:
referenced symbol not found
Changing the pygtk code to reference "swapbuffers" gets a little further
but results in:
james@flanders> python dots.py
Use the mouse buttons to control some of the dots.
Bus Error (core dumped)
and
james@flanders> python gears.py
initfuncCalled = 0
Traceback (innermost last):
File "gears.py", line 182, in idle
draw(glarea)
File "gears.py", line 176, in draw
glarea.swap_buffers()
File "/opt/gnu/lib/python1.5/site-packages/gtkgl.py", line 43, in swap_buffers
_gtkgl.gtk_gl_area_swap_buffers(self._o)
AttributeError: gtk_gl_area_swap_buffers
Traceback (innermost last):
File "/opt/gnu/lib/python1.5/site-packages/gtk.py", line 120, in __call__
ret = apply(self.func, a)
File "gears.py", line 176, in draw
glarea.swap_buffers()
File "/opt/gnu/lib/python1.5/site-packages/gtkgl.py", line 43, in swap_buffers
_gtkgl.gtk_gl_area_swap_buffers(self._o)
AttributeError: gtk_gl_area_swap_buffers
Ideas?
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]