Text archives Help
- From: Ingo Wald <wald@sci.utah.edu>
- To: render@sci.utah.edu, manta@sci.utah.edu
- Subject: [Manta] leopard / macports
- Date: Thu, 22 Nov 2007 01:34:55 -0800
Hi all,
I just tried building manta on my leopard-updated machine, and since it
didn't work, I started to suspect macports to not be properly updated
(it still had everything 32-bit).
To track it down, I eventually uninstalled all of macports, made sure I
have the newest xcode installed, got the newest version of the macports
installer, and installed it.
port selfupdate runs through, and says everything is up to date, but
then, a simple "sudo port install glut" already runs into gl link errors:
207:~ ingowald$ sudo port install glut
---> Fetching glut
---> Attempting to fetch glut-3.7.tar.gz from
http://www.opengl.org/resources/libraries/glut/
---> Verifying checksum(s) for glut
---> Extracting glut
---> Applying patches to glut
---> Configuring glut
---> Building glut with target all
Error: Target org.macports.build returned: shell command "cd
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_glut/work/glut-3.7/lib/glut
; c++ -flat_namespace -dynamiclib -o libglut.3.7.dylib -install_name
/opt/local/lib/libglut.3.dylib -compatibility_version 3.7
-current_version 3.7 -all_load libglut.a -L/usr/X11R6/lib -lGL -lGLU
-lX11 -lXmu -lXi -lXext -lXt -lICE -lSM" returned error 1
Command output: "_glGetError", referenced from:
_glutReportErrors in libglut.a(glut_util.o)
"_glPushMatrix", referenced from:
_teapot in libglut.a(glut_teapot.o)
"_glEnable", referenced from:
_teapot in libglut.a(glut_teapot.o)
_teapot in libglut.a(glut_teapot.o)
_teapot in libglut.a(glut_teapot.o)
_teapot in libglut.a(glut_teapot.o)
"_glReadBuffer", referenced from:
_glutEstablishOverlay in libglut.a(glut_overlay.o)
___glutCreateWindow in libglut.a(glut_win.o)
"_glDrawBuffer", referenced from:
_glutEstablishOverlay in libglut.a(glut_overlay.o)
___glutCreateWindow in libglut.a(glut_win.o)
"_glBitmap", referenced from:
_glutBitmapCharacter in libglut.a(glut_bitmap.o)
"_glNormal3fv", referenced from:
_drawBox in libglut.a(glut_shapes.o)
_drawtriangle in libglut.a(glut_shapes.o)
_pentagon in libglut.a(glut_shapes.o)
"_glPolygonMode", referenced from:
_glutWireTorus in libglut.a(glut_shapes.o)
"_glNormal3f", referenced from:
_doughnut in libglut.a(glut_shapes.o)
_doughnut in libglut.a(glut_shapes.o)
"_glScalef", referenced from:
_teapot in libglut.a(glut_teapot.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
Error: Status 1 encountered during processing.
207:~ ingowald$
Any ideas ?
Ingo
PS: BTW - it seems to be somewhat related to two different libGL's with
different contents
207:icc ingowald$ nm
/Developer/SDKs/MacOSX10.5.sdk/usr/X11/lib/libGL.dylib | grep glPushMatrix
00007c55 T ___indirect_glPushMatrix
U _glPushMatrix
207:icc ingowald$ nm
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
| grep glPushMatrix
00001370 T _glPushMatrix
...
but don't ask me why these files differ if they're both in the 10.5.sdk
subdir, nor why there are multiple files at all, or why macports uses
the wrong (?) one ....
- [Manta] leopard / macports, Ingo Wald, 11/22/2007
Archive powered by MHonArc 2.6.16.