PyOpenGL on Linux: MesaGL3: undefined: XFreePixmap

David Ascher da at ski.org
Thu May 6 12:56:10 EDT 1999


On 6 May 1999, John van der Koijk wrote:

> Hi There,
> 
> I'm having trouble getting PyOpenGL to work. Compilation went well
> after I left Togl out. Anyone have a clue what is going on here?
> 
> 95 linux01:~/uitpak/PyOpenGL-1.5.5/OpenGL/Demo/srenner $ python ./cursor.py 
> Traceback (innermost last):
>   File "./cursor.py", line 1, in ?
>     from objex import *
>   File "./objex.py", line 1, in ?
>     from att_obj import *
>   File "./att_obj.py", line 3, in ?
>     from oglpm import *
>   File "./oglpm.py", line 4, in ?
>     from OpenGL.GL import *
>   File "/usr/lib/python1.5/site-packages/OpenGL/GL/__init__.py", line 4, in ?
>     from _opengl_num import *
> ImportError: /usr/lib/libMesaGL.so.3: undefined symbol: XFreePixmap

A quick search of the pyopengl archives
(http://www.egroups.com/group/pyopengl) reveals that maybe the following
advice will work:

[From David Konerding]
try this:

MESALIB=-L/usr/local/src/Mesa-3.0/lib -L/usr/X11R6/lib -lMesaGL -lX11
-lXext -lXt -lXi -lXmu
MESAINCLUDE=-I/usr/local/src/Mesa-3.0/include
-I/usr/local/src/PythonExtensions/LLNLPython4/Numerical/Include

# The core OpenGL stuff
_opengl _openglmodule.c $(MESAINCLUDE) $(MESALIB)

(and do the same for _opengl_num!)







More information about the Python-list mailing list