[Lazarus] OS X/Carbon Compilation

Hess, Philip J pjhess at purdue.edu
Tue Feb 26 16:19:23 CET 2008


I was going to suggest that, but it's not clear to me how to do that. In the Inherited tab, it includes /usr/X11R6/lib; /sw/lib even when Carbon is selected. These library paths are read-only and appear to be hardwired into the IDE.

Thanks.

-Phil




-----Original Message-----
From: lazarus-bounces at lazarus.freepascal.org on behalf of Marc Weustink
Sent: Tue 2/26/2008 9:53 AM
To: General mailing list
Subject: Re: [Lazarus] OS X/Carbon Compilation
 
Hess, Philip J wrote:
> Damien,
> 
> I google and found this:
> 
> http://developer.apple.com/releasenotes/DeveloperTools/RN-Id/index.html
> 
> See this item down in known issues:
> #
> 
> Re-export cycle detection causes many X11 programs to fail to link
> 
> There are two libGL.dylib files. One in /usr/X11/lib and one in /System/Library/Frameworks/OpenGL.framework/Libraries and the former re-exports the latter. The Mac OS X 10.5 linker uses -L paths to search for indirect libraries. The combination of these two causes a re-export cycle which will make the linker error out. The work around is to add: -dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib to the link line. The -dylib_file option takes a colon separate pair of paths and instructs the linker where to look for a particular indirect dylib.
> 
> #
> 
> That looks like the error you're getting.
> 
> Maybe you can comment out the OpenGL dependency in the Carbon widgetset for now until this gets worked out.


Or remove the X11 dependency, since you're compiling for carbon.

Marc

_______________________________________________
Lazarus mailing list
Lazarus at lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 3774 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20080226/ed7103b4/attachment-0007.bin>


More information about the Lazarus mailing list