[Lazarus] OS X/Carbon Compilation
Damien Gerard
milipili at shikami.org
Wed Feb 27 20:53:50 CET 2008
Le Feb 27, 2008 à 9:07 AM, Marco van de Voort a écrit :
> On Tue, Feb 26, 2008 at 10:56:08PM +0100, Damien Gerard wrote:
>>> Or remove the X11 dependency, since you're compiling for carbon.
>>
>> I will try but I don't know how to do this.
>> I assume fpcmake should rebuild the Makefile from Makefile.fpc but
>> under OS X when I try to use it I always have the error:
>>
>> Shani [milipili] /usr/local/share/lazarus/lcl/interfaces/carbon %
>> fpcmake
>> 22
>> :51 #9
>> Processing Makefile.fpc
>> Error: Target "darwin", package "rtl" not found
>>
>> (In fact I never was able to make fpcmake work)
>
> fpcmake recursively resolves dependancies and needs to find the RTL
> source
> or package.fpc files. Easiest is to set FPC_DIR to the FPC source
> and do a
>
> fpcmake -w -Tall
>
> ( -w is to write file, default is/was test, -Tall is process all OSes)
> this is btw all in the manual.
fpcmake works fine, just it is FPCDIR, not FPC_DIR :)
But in fact there is no need.
The solution has been already provided :
http://developer.apple.com/qa/qa2007/qa1567.html
Consequently, a simple solution is :
make clean all LCL_PLATFORM=carbon FPC=fpc OPT="-k-framework -kcarbon
-k-framework -kOpenGL -k'-dylib_file' -k'/System/Library/Frameworks/
OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/
Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib'"
And you have a nice Lazarus Carbon app under Leopard :)
However lazarus crashes when exiting.
I have updated the wiki.
--
Damien Gerard
milipili at shikami.org
Le temps n'a pas d'importance. Seul le code est important
-- (f00ty)
More information about the Lazarus
mailing list