Re: This is driving me crazy
Re: This is driving me crazy
- Subject: Re: This is driving me crazy
- From: Martin Costabel <email@hidden>
- Date: Wed, 19 Feb 2003 11:45:33 +0100
Nicolas Holzschuch wrote:
So here is the setup :
- I installed Apple X11, version 0.2 I think.
- I am trying to compile the Open Inventor library. Compiling goes OK,
but using any of the compiled binaries gives me:
[ordinateur-de-nicolas-holzschuch:Packages/inventor/lib] holzschu%
/usr/local/bin/ivview
dyld: /usr/local/bin/ivview Undefined symbols:
/usr/local/lib/libInventor.dylib undefined reference to _glBegin
expected to be defined in /usr/X11R6/lib/libGL.1.dylib
[]
What am I doing wrong? How can glBegin not be defined in libGL.dylib ???
It is, but not in the one living in /usr/X11R6/lib. It is in
/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
Are you sure you compiled ivview while the Apple X11 libs were
installed, not another version of /usr/X11R6/lib? If you are, then maybe
you should compile with the '-framework OpenGL' flag.
[]
dyld: /usr/local/bin/qthello Undefined symbols:
OpenGL undefined reference to _gll_noop expected to be defined in
/usr/X11R6/lib/libGL.dylib
Although this looks similar, it could be a different problem. gll_noop
is not referenced in bin/qthello itself. You could setenv
DYLD_PRINT_LIBRARIES in order to see which library is calling on libGL
for this symbol here. Maybe it has to do with the fact that the
opendarwin guys did not recompile their packages for X11 beta 0.2?
[]
Oh, a final one: compiling the inventor library gives me the following
warning:
[ordinateur-de-nicolas-holzschuch:Packages/inventor/lib] holzschu% make
/usr/bin/libtool -L///usr/local/lib -L../libimage -L../libFL/freetype
-dynamic -all_load -L/usr/local/lib -L/usr/X11R6/lib
libInventor.a -ljpeg -limage -lFL -lfreetype -lX11 -lm -lGLU -lGL -ldl
-liconv -lfreetype -lcc_dynamic -lstdc++ -o libInventor.dylib
ld: for architecture ppc
ld: warning multiple definitions of symbol _glGetColorTableEXT
/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/
libGL.dylib(gll_api.o) definition of _glGetColorTableEXT
/usr/X11R6/lib/libGL.dylib(dri_dispatch.o) definition of
_glGetColorTableEXT
[]
Is there a reason for the compiler to go fetch
/System/Library/Frameworks/OpenGL.framework/ ?
Yes. But the multiply-defined symbols are a bug, and Apple has said they
would fix it in a future release. In your case, you only get warnings,
no errors, so you don't have to worry.
--
Martin
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.