Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[Manta] Re: [RENDER] leopard / macports


Chronological Thread 
  • From: Ingo Wald <wald@sci.utah.edu>
  • To: Abe Stephens <abe@sci.utah.edu>
  • Cc: "render@sci.utah.edu" <render@sci.utah.edu>, "manta@sci.utah.edu" <manta@sci.utah.edu>
  • Subject: [Manta] Re: [RENDER] leopard / macports
  • Date: Thu, 22 Nov 2007 17:49:56 -0800

OK, I've got a working libGL.dylib now, and glut compiles/links through, as do all the other macports programs I tried.

Still, I'm not really where as I want to be w/ my leopard system, because of two different issues

a) manta-independent:
Macports seem to still build in 32-bit mode, at least the libglut.dylib contains only a 32-bit i386 version, whereas libGL.dylib contains both G5 versions, intel 32-bit, and intel 64-bit versions.
The same is true for all macports modules I build, including, e.g., libmagick.dylib, etc.
Does anybody know of a way how I can tell macports to build in 64 bit mode ?

b) manta specific:
I can't even compile through, it dies in a weird position:

/Users/ingowald/Projects/manta/SCIRun/Core/Thread/Thread_pthreads.cc(736): error: incomplete type is not allowed
 handle_quit(int sig, SigContext /*ctx*/)

The problem is that line 736 should only be compiled if CYGWIN is defined, which (I think) shouldn't happen under leopard, should it ?

Ingo



Abe Stephens wrote:


I havent seen this particular problem , it's likely an issue between the old x11 that shipped with OSX and the new--but in general I would link to the Apple version of GLUT instead of the Darwin port version.

You also probably don't need to run glut applications through the X11 server.. (also glut isnt a manta dependency).

Abe

On Nov 22, 2007, at 2:34 AM, Ingo Wald <wald@sci.utah.edu> wrote:

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 ....









Archive powered by MHonArc 2.6.16.

Top of page