Re: [PyOpenGL-Users] Failure to build on Linux
Brought to you by:
mcfletch
|
From: Mike C. F. <mcf...@ro...> - 2003-12-16 04:37:39
|
Richard Jones wrote:
>I just tried to build 2.0.1.07 on Linux (Mandrake 9.1) against python 2.3.2.
>Used the standard "python setup.py install". It appeared to build OK, but any
>attempt to use it breaks:
>
>
...
>The contents of OpenGL/GL/ are:
>
>_3DFX/ EXT/ IBM/ INTEL/ PGI/ SGIX/
>APPLE/ GL__init__.py INGR/ KTX/ REND/ SUN/
>ARB/ GL__init__.pyc __init__.py MESA/ S3/ SUNX/
>ATI/ GL__init___.so* __init__.pyc NV/ SGI/ WIN/
>Autodesk/ HP/ __init___.so* OML/ SGIS/
>
>
Where are those __init___.so files coming from I wonder? Possibly an
old 2.0.0 installation? 2.0.1 should not have any __init___.so files,
as they were renamed to GL__init___.so, GLU__init___.so and
GLUT__init___.so . I'd suggest nuking your sourcedirectory/build and
installationdirectory/OpenGL directories and then re-building/re-installing.
>I renamed the GL__init___.so and __init___.so files to _GL__init__.so and
>___init__.so respectively. I also edited OpenGL/__init__.py and
>OpenGL/GL/__init__.py since they referred to the GL__init___ module. The
>import of OpenGL.GL works now. Other imports break though ("from OpenGL.GLUT
>import *" for example)
>
>
Um, well, you'd have to do the same for GLU and GLUT as you did for GL.
That's *not* recommended, as the new module naming is required to make
certain packaging systems work properly, and will not be reversed any
time soon.
Good luck,
Mike
_______________________________________
Mike C. Fletcher
Designer, VR Plumber, Coder
http://members.rogers.com/mcfletch/
|