Re: linking libGL: cycle in dylib re-exports? (resolved)
Re: linking libGL: cycle in dylib re-exports? (resolved)
- Subject: Re: linking libGL: cycle in dylib re-exports? (resolved)
- From: Roberto Hradec <email@hidden>
- Date: Mon, 12 Nov 2007 01:00:00 -0800
Hi there...
I'm wondering if we can expect a fix for this in a future update of
xcode. Basically this workaround makes my program be compiled against
the opengl framework librarie, instead of X11 opengl...
But if I want to compile it against X11, I cant... I prefer to develop
all my code using standard X11 so it will be compatible not only with
OSX, but also linux, cygwin, etc...
So, anybody know when can we expect a proper update that fix this bug?
-H
Abe Stephens wrote:
Thanks very much, that worked.
The updated command line is:
echo 'static void *foo; int main() { foo = (void
*)glGetIntegerv; }' | g++ -xc++ - -I/usr/X11R6/include -includeGL/gl.h
-L/usr/X11R6/lib -lGL
-Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
Abe
On Oct 29, 2007, at 4:06 AM, Martin Costabel wrote:
Abe Stephens wrote:
Hi, I'm encountering a linking problem
whenever I attempt to link to X11's libGL in Leopard. Here is a concise
example:
echo 'static void *foo; int main() { foo
= (void *)glGetIntegerv; }' | g++ -xc++ - -I/usr/X11R6/include
-includeGL/gl.h -L/usr/X11R6/lib -lGL
ld: cycle in dylib re-exports with
/usr/X11R6/lib/libGL.dylib
collect2: ld returned 1 exit status
Does anyone have some advice on how to fix
this?
This is a new feature (AKA bug) in /usr/bin/ld, coupled with the fact
that Apple rather stupidly chose the same name "libGL.dylib" for two
linked but different libraries in /usr/X11/lib and in the OpenGL
framework.
A fix is described here:
< http://wiki.finkproject.org/index.php/Fink:Packaging:Preparing_for_10.5#OpenGL_Bug>
Please file a bug on bugreport.apple.com.
--
Martin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription: email@hidden
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden