|
From: Charles M. <cm...@in...> - 2006-06-30 12:09:42
|
James P. Crutchfield wrote: > Hi, > > Trying to get glewpy running with the rest of my python24 install, > which was > done under fink. > Ben Willmore kindly sent test glew-nox.info and glew-nox-py.info > files for fink > installation. > glewpy compiled and installed fine with these or so I hoped. > But when running: > > 140}python > Python 2.4.2 (#1, Jun 15 2006, 23:03:16) > [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin > Type "help", "copyright", "credits" or "license" for more information. > >>> from OpenGL.GL import * > >>> from OpenGL.GLUT import * > >>> from glew import * > Traceback (most recent call last): > File "<stdin>", line 1, in ? > File "/sw/lib/python2.4/site-packages/glew/__init__.py", line 18, > in ? > from glew import * > ImportError: Failure linking new module: /sw/lib/python2.4/site- > packages/glew/glew.so: Symbol not found: _glewInit > Referenced from: /sw/lib/python2.4/site-packages/glew/glew.so > Expected in: dynamic lookup > > Seemed like a simple loader path problem. My obvious attempts to fix > failed. > Suggestions? Yeah, sounds like trouble finding the glew library. I would suggest first trying: "otool -L /sw/lib/python2.4/site-packages/glew/glew.so" This is equivalent to the "ldd" command in linux. This should show you if and which libglew is being used. Another option is to just download the "glewpy-0.7.4-py2.4-macosx-10.4-fat.egg" binary I have posted. It still requires that you have glew installed, but it just might work. Just unzip the file and put the resulting "glew" folder in "/sw/lib/python2.4/site-packages/". This binary works on 10.4 and 10.3.9. Let me know if you get any closer. If you still have problems please send me those ".info" files and I can install fink on my mac and try it out. - Charlie |