|
From: James P. C. <ch...@cs...> - 2006-07-01 02:18:22
|
Dear Charlie,
Thanks for the prompt reply.
> 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.
201}otool -L /sw/lib/python2.4/site-packages/glew/glew.so
/sw/lib/python2.4/site-packages/glew/glew.so:
/System/Library/Frameworks/OpenGL.framework/Versions/A/
OpenGL (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0,
current version 1.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0,
current version 88.1.6)
Well, no libGLEW referenced in there. Doesn't seem right, right?
The libs got built and are there, though:
202}ltm /sw/lib/libGLEW.*
lrwxr-xr-x 1 root admin 19 Jun 29 21:37 /sw/lib/libGLEW.
1.3.dylib -> libGLEW.1.3.4.dylib
lrwxr-xr-x 1 root admin 19 Jun 29 21:37 /sw/lib/libGLEW.dylib
-> libGLEW.1.3.4.dylib
-rw-r--r-- 1 root admin 190988 Jun 29 21:37 /sw/lib/libGLEW.
1.3.4.dylib
-rw-r--r-- 1 root admin 277568 Jun 29 21:37 /sw/lib/libGLEW.a
>
> 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.
Seems straightforward enough. Let's see ... Done.
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
No. Same complaint.
Let's see what glew.so looks for
117}otool -L glew.so
glew.so:
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0,
current version 88.1.3)
I guess I'm not understanding how the libs are being referred to/
linked in.
>
> 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.
I've attached these.
Best,
Jim
James P. Crutchfield Professor
Computational Science & Engineering Center
Physics Department ch...@cs...
University of California cse.ucdavis.edu/~chaos
One Shields Avenue 530-752-0600 or 297-4620,
754-4885 (fax)
Davis, California 95616-8572
Center Manager: Linda Potoski lrp...@uc...; 530-754-4405
|