Re: [PyOpenGL-Users] Problem with PyOpenGL support under cygwin: ctypes cannot find GL lib(?)
Brought to you by:
mcfletch
From: Mike C. F. <mcf...@vr...> - 2007-02-08 16:48:03
|
Martin Felder wrote: > Hi, > > in trying to get my python OpenGL application to run under cygwin, I > installed the > PyOpenGL package, version 3.0.0a5 for python 2.4, and ctypes 1.0.1. > For one thing, could it be the .egg is broken? I keep getting > The .egg uploaded to the CheeseShop for some reason appears as a corrupted.zip. The one on SourceForge appears to work (I just installed from that on Win32 yesterday). ... > zipimport.ZipImportError: not a Zip file: 'PyOpenGL-3.0.0a5-py2.4.egg' I'll try to get the next release out ASAP to fix that. It's about time for one anyway. > Well, anyway, the .zip file worked. Now > whenever I try to run an OpenGL application, the following happens: ... > line 29, in ? > mode=ctypes.RTLD_GLOBAL > File > "/usr/lib/python2.4/site-packages/PyOpenGL-3.0.0a5-py2.4.egg/OpenGL/platform/ctypesloader.py", > > line 37, in loadLibrary > return dllType( name, mode ) > File "/usr/lib/python2.4/site-packages/ctypes/__init__.py", line 312, > in __init__ > self._handle = _dlopen(self._name, mode) > OSError: No such file or directory > > When this happens, self._name is "GL" and mode is 4. It would seem as > though somehow the GL library is not registered(?) with python? I'm at a > loss here - can anybody give me a hint? Has there been any successful > attempt at running PyOpenGL under cygwin? AFAIK there has been no successful attempt. From what I understand one of the tools inside ctypes is using an operation that doesn't work under cygwin, so it winds up unable to find the .so files. I haven't yet gone to the trouble of installing cygwin w/X in order to track down the problem. Likely we'll need to rewrite the find_library code to be able to deal with cygwin (and hopefully get that into ctypes for the next release). Good luck, Mike -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |