Re: [PyOpenGL-Users] PyOpenGL 2.0.x, Python 2.3 and Red Hat 9.0
Brought to you by:
mcfletch
From: Mike C. F. <mcf...@ro...> - 2003-10-27 16:12:28
|
Matt Pickering wrote: ... >I have a stock Red Hat 9.0 Personal installation > > ... >I have SWIG 1.1 (comes with >RH9), > Shouldn't be necessary for any packaged build (e.g. rc2 or 2.0.1.07). >Numeric 23.0 (from source), > Okay. >the Python Imaging >Library (latest stable release built from source). I >also have OpenGLContext 2.x installed from RPM. > > Okay, neither of these should affect PyOpenGL itself, they're loosely coupled by Python code. >However, when I try to build PyOpenGL (either the beta >release or the RC2 release), I either get build >failures (headers not found) > Could it be you don't have the Python 2.3 headers/libs available in your path? RedHat normally has a python-devel RPM that has this stuff IIRC. Not sure how it works for a from-source install. >or segmentation faults. >Once I got glut installed, the major build failures >disappeared. I disabled the build of Togl since it >kept causing seg faults. With Togl builds disabled, >PyOpenGL compiles but fails to install fully. > > Just to be clear: you completely cleaned out any previous version of PyOpenGL, right? That is, you nuked the entire site-packages/OpenGL directory? >I can import the OpenGL module but I can get nothing >to run. Half of the time, it reports failure to >locate module GL.__init__. The rest of the time, I >get a good import and then Python seg faults. > > Sounds very much as though you have an older version (likely compiled against Python 2.2.x) conflicting with the new version. rc2 changed the name of that module to GL.GL__init__ to allow OS-X to load the libraries. I'd suggest trying a clean build (i.e. nuke the final installation directory and the source-directory/build directory and then re-build). >FYI, I have Mesa 3.x installed (which ever version >ships with RH9). I have managed to compile Mesa 5.x >but haven't installed it for fear of throwing one more >variable into the unknown. > > Shouldn't be necessary. PyOpenGL knows basically nothing about Mesa. >So my question is: has anyone had any success getting >PyOpenGL up and running using Python 2.3 under Red Hat >9? RH9 is largely an incremental upgrade to RH8 >(which I upgraded from) so I don't see any major >library differences. > I switched my dual-boot drive to Knoppix a few weeks ago, so I don't have a RedHat install for testing/building any more. >Could GCC 3.2.2 be the problem? > > Not likely. >I am open to any suggestions short of rebuilding my >box. :) > :) Debian is a comparative dream. ;) >I also have a SuSe 8.2 Pro machine with a >Voodoo3 I can experiment on. It is a new install and >hasn't been touched yet. > > Sure, you could try it there, but probably won't help you any? rc2 is known to build and run on Knoppix (Debian) under Python 2.3 (with togl disabled), so it would really seem that it's your RedHat install that needs some love. Okay, must get back to paying work now. Good luck, Mike _______________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://members.rogers.com/mcfletch/ |