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. Thanks. -Phil -----Original Message----- From: [EMAIL PROTECTED] on behalf of Damien Gerard Sent: Tue 2/26/2008 2:26 AM To: General mailing list Subject: Re: [Lazarus] OS X/Carbon Compilation Le Feb 26, 2008 à 12:58 AM, Hess, Philip J a écrit : > Damien, > > I had no trouble rebuilding the Laz IDE from within the IDE using > today's snapshot (20080225) on Tiger/PowerPC. Also no trouble > rebuilding the Laz IDE with: > > make all LCL_PLATFORM=carbon OPT="-k-framework -kcarbon -k-framework > -kOpenGL" > > My apps also compiled and linked okay, although now none of them > will run because somebody removed the TextHeight property that is in > all of my .lfm files. Lazarus strikes again, I guess. > > Unless there's an Intel-specific or Leopard-specific problem, you > ought to be able to link okay. Did you install the .dmg snapshot? > Thanks for the OPT, I missed -framework just before -kOpenGL. However, I still have a(nother) problem :) unknown stabs type 0xE0 in ../units/i386-darwin/codemacroprompt.o unknown stabs type 0xC0 in ../units/i386-darwin/encloseselectiondlg.o unknown stabs type 0xE0 in ../units/i386-darwin/encloseselectiondlg.o ld: cycle in dylib re-exports with /usr/X11R6/lib//libGL.dylib Error: Error while linking Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted Error: /usr/local/bin/ppc386 returned an error exitcode (normal if you did not specify a source file to be compiled) make[2]: *** [lazarus] Error 1 make[1]: *** [ide] Error 2 make: *** [ide] Error 2 In the same time, I think a dependancy on the OpenGL framework is not a great idea for an application which does not use it.
<<winmail.dat>>
_______________________________________________ Lazarus mailing list [email protected] http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
