Ich habe mal Lazarus auf MacOS 10.5 "Leopard" installiert. Ich habe den svn snapshot mit carbon interface compiliert. Das hat auch soweit funktioniert. Lazarus kann auch gestartet werden und ich kann mit der IDE ein Form bauen und handler schreiben, soweit alles normal.
Versuche ich aber dann meine Applikation zu compilieren bricht er immer mit der Meldung "Error: Error while linking" ab. Selbst wenn ich nur eine ganz simple test Applikation nehme (1x Memo 1x Button, ein Handler für den Buttonclick der im Memo was ausgibt) das selbe Fehlerbild. Leider habe ich nirgends was gefunden, ich vermute aber das es an den Einstellungen liegt.
Hier ein Auszug aus dem Output auf der Console beim compilieren. Wenn ich Lazarus über die .app starte komme ich da ja nicht ran:
Code: Alles auswählen
TCompiler.Compile WorkingDir="/Users/wastl/Documents/" CompilerFilename="/usr/local/bin/fpc" CompilerParams=" -S2cgi -OG1 -TDarwin -Pi386 -k-framework -kcarbon -k-framework -kOpenGL -vewnhi -Fl/usr/X11R6/lib/ -Fu../lazarus/lcl/units/i386-darwin/ -Fu../lazarus/lcl/units/i386-darwin/carbon/ -Fu../lazarus/packager/units/i386-darwin/ -Fu. -oproject1 -dLCL -dLCLcarbon project1.lpr"
[TCompiler.Compile] CmdLine="/usr/local/bin/fpc -B -S2cgi -OG1 -TDarwin -Pi386 -k-framework -kcarbon -k-framework -kOpenGL -vewnhi -Fl/usr/X11R6/lib/ -Fu../lazarus/lcl/units/i386-darwin/ -Fu../lazarus/lcl/units/i386-darwin/carbon/ -Fu../lazarus/packager/units/i386-darwin/ -Fu. -oproject1 -dLCL -dLCLcarbon project1.lpr"
Hint: Start of reading config file /etc/fpc.cfg
Hint: End of reading config file /etc/fpc.cfg
Warning: You are using the obsolete switch -OG
Free Pascal Compiler version 2.2.0 [2007/11/14] for i386
Copyright (c) 1993-2007 by Florian Klaempfl
Target OS: Darwin for i386
Compiling project1.lpr
Compiling unit1.pas
unit1.pas(17,28) Hint: Parameter "Sender" not used
Assembling unit1
Assembling project1
Linking project1
ld64: warning: option -s is obsolete and being ignored
ld: atom sorting error for DEBUGSTART_LCLSTRCONSTS and DEBUGEND_LCLSTRCONSTS in /Users/wastl/lazarus/lcl/units/i386-darwin/lclstrconsts.o
ld: atom sorting error for DEBUGSTART_LCLSTRCONSTS and DEBUGEND_LCLSTRCONSTS in /Users/wastl/lazarus/lcl/units/i386-darwin/lclstrconsts.o
ld: atom sorting error for DEBUGSTART_LCLSTRCONSTS and DEBUGEND_LCLSTRCONSTS in /Users/wastl/lazarus/lcl/units/i386-darwin/lclstrconsts.o
ld: atom sorting error for DEBUGSTART_LCLSTRCONSTS and DEBUGEND_LCLSTRCONSTS in /Users/wastl/lazarus/lcl/units/i386-darwin/lclstrconsts.o
ld: atom sorting error for DEBUGEND_TMSCHEMA and DEBUGSTART_TMSCHEMA in /Users/wastl/lazarus/lcl/units/i386-darwin/tmschema.o
ld: atom sorting error for DEBUGEND_TMSCHEMA and DEBUGSTART_TMSCHEMA in /Users/wastl/lazarus/lcl/units/i386-darwin/tmschema.o
ld: atom sorting error for DEBUGEND_TMSCHEMA and DEBUGSTART_TMSCHEMA in /Users/wastl/lazarus/lcl/units/i386-darwin/tmschema.o
ld: atom sorting error for DEBUGEND_TMSCHEMA and DEBUGSTART_TMSCHEMA in /Users/wastl/lazarus/lcl/units/i386-darwin/tmschema.o
ld: atom sorting error for DEBUGEND_LCLVERSION and DEBUGSTART_LCLVERSION in /Users/wastl/lazarus/lcl/units/i386-darwin/lclversion.o
ld: atom sorting error for DEBUGEND_LCLVERSION and DEBUGSTART_LCLVERSION in /Users/wastl/lazarus/lcl/units/i386-darwin/lclversion.o
ld: atom sorting error for DEBUGEND_LCLVERSION and DEBUGSTART_LCLVERSION in /Users/wastl/lazarus/lcl/units/i386-darwin/lclversion.o
ld: atom sorting error for DEBUGEND_LCLVERSION and DEBUGSTART_LCLVERSION in /Users/wastl/lazarus/lcl/units/i386-darwin/lclversion.o
ld: atom sorting error for DEBUGEND_CARBONDBGCONSTS and DEBUGSTART_CARBONDBGCONSTS in /Users/wastl/lazarus/lcl/units/i386-darwin/carbon/carbondbgconsts.o
ld: atom sorting error for DEBUGEND_CARBONDBGCONSTS and DEBUGSTART_CARBONDBGCONSTS in /Users/wastl/lazarus/lcl/units/i386-darwin/carbon/carbondbgconsts.o
ld: atom sorting error for DEBUGEND_CARBONDBGCONSTS and DEBUGSTART_CARBONDBGCONSTS in /Users/wastl/lazarus/lcl/units/i386-darwin/carbon/carbondbgconsts.o
ld: atom sorting error for DEBUGEND_CARBONDBGCONSTS and DEBUGSTART_CARBONDBGCONSTS in /Users/wastl/lazarus/lcl/units/i386-darwin/carbon/carbondbgconsts.o
ld: atom sorting error for DEBUGSTART_OPENGL and DEBUGEND_OPENGL in /Users/wastl/lazarus/lcl/units/i386-darwin/carbon/opengl.o
ld: atom sorting error for DEBUGSTART_OPENGL and DEBUGEND_OPENGL in /Users/wastl/lazarus/lcl/units/i386-darwin/carbon/opengl.o
ld: atom sorting error for DEBUGSTART_OPENGL and DEBUGEND_OPENGL in /Users/wastl/lazarus/lcl/units/i386-darwin/carbon/opengl.o
ld: atom sorting error for DEBUGSTART_OPENGL and DEBUGEND_OPENGL in /Users/wastl/lazarus/lcl/units/i386-darwin/carbon/opengl.o
ld: cycle in dylib re-exports with /usr/X11R6/lib//libGL.dylib
Error: Error while linking
lg
wastl