[Lazarus] OS X/Carbon Compilation

Damien Gerard milipili at shikami.org
Tue Feb 26 08:26:35 CET 2008


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.


> Thanks.
>
> -Phil
>
>
>
>
> -----Original Message-----
> From: lazarus-bounces at lazarus.freepascal.org on behalf of Damien  
> Gerard
> Sent: Mon 2/25/2008 4:41 PM
> To: General mailing list
> Subject: Re: [Lazarus] OS X/Carbon Compilation
>
>
> Le Feb 25, 2008 à 10:25 PM, Hess, Philip J a écrit :
>
>> Did you recompile LCL? Maybe you're missing the .o/.ppu files for
>> the new opengl unit that was added to Carbon, although these files
>> should have been included with the snapshot.
>>
>
>
> I made a "clean all" but I have just try to remove .o and .ppu but the
> result remains the same.
>
>
>> Thanks.
>>
>> -Phil
>>
>>
>> -----Original Message-----
>> From: lazarus-bounces at lazarus.freepascal.org [mailto:lazarus-bounces at lazarus.freepascal.org
>> ] On Behalf Of Damien Gerard
>> Sent: Monday, February 25, 2008 4:04 PM
>> To: General mailing list
>> Subject: Re: [Lazarus] OS X/Carbon Compilation
>>
>>
>> Le Feb 25, 2008 à 7:19 PM, Hess, Philip J a écrit :
>>
>>> I'm not at my Mac right now, but I believe if you look in /system/
>>> library/frameworks you should see opengl.framework. If not, then
>>> that might explain the link error.
>>>
>>
>> The OpenGL frameworks (OpenGL.Framework, and OpenAL.Framework) is
>> present, and working (Homeworld2 and Enigmo UB work fine ^^)
>>
>>> What version of OS X are you using? I believe the OpenGL framework
>>> is a standard part of OS X.
>>>
>>
>> I use 10.5.2 Leopard.
>> Yes OpenGL is part of OS X.
>>
>>> Thanks.
>>>
>>> -Phil
>>>
>>>
>>> -----Original Message-----
>>> From: lazarus-bounces at lazarus.freepascal.org [mailto:lazarus-bounces at lazarus.freepascal.org
>>> ] On Behalf Of Damien Gerard
>>> Sent: Monday, February 25, 2008 1:10 PM
>>> To: General mailing list
>>> Subject: Re: [Lazarus] OS X/Carbon Compilation
>>>
>>>
>>> Le Feb 25, 2008 à 6:49 PM, Hess, Philip J a écrit :
>>>
>>>> It looks like somebody added an OpenGL dependency to the Carbon
>>>> widgetset for some reason. Try adding -k'-framework' -k'opengl'  
>>>> when
>>>> compiling and see if this doesn't fix it.
>>>>
>>>
>>> Indeed I had not noticed it.
>>> However I have this :
>>>
>>> Assembling lazarus
>>> Linking ../lazarus
>>> ld: file not found: opengl
>>> Error: Error while linking
>>> Fatal: There were 1 errors compiling module, stopping
>>>
>>> May be another framework or directive for compilation ?
>>>
>>>
>>>> Thanks.
>>>>
>>>> -Phil
>>>>
>>>>
>>>> -----Original Message-----
>>>> From: lazarus-bounces at lazarus.freepascal.org
>>>> [mailto:lazarus-bounces at lazarus.freepascal.org] On Behalf Of Damien
>>>> Gerard
>>>> Sent: Monday, February 25, 2008 11:45 AM
>>>> To: lazarus
>>>> Subject: [Lazarus] OS X/Carbon Compilation
>>>>
>>>>
>>>> When I try to compile the last snapshot of Lazarus or my own App
>>>> (using the fpc snapshot DMG 2.2.0)
>>>>
>>>> Shani [milipili] ~/Projects/lazarus %
>>>> fpc
>>>>
>>>> Err
>>>> 18 #16
>>>> Free Pascal Compiler version 2.2.0 [2008/02/25] for i386
>>>>
>>>> I have got the following errors :
>>>>
>>>>
>>>> Shani [milipili] ~/Projects/lazarus % make clean all
>>>> LCL_PLATFORM=carbon FPC=fpc OPT="-k'-framework' -k'carbon'"
>>>>
>>>> <snip>
>>>> unknown stabs type 0xC0 in /usr/local/share/lazarus/lcl/units/i386-
>>>> darwin/grids.o
>>>> unknown stabs type 0xE0 in /usr/local/share/lazarus/lcl/units/i386-
>>>> darwin/grids.o
>>>> Undefined symbols:
>>>> "_CGLDestroyContext", referenced from:
>>>>    GLGRAB_GRABVIAOPENGL$CGDIRECTDISPLAYID$CGRECT$$CGIMAGEREF in
>>>> glgrab.o
>>>>    GLGRAB_GRABVIAOPENGL$CGDIRECTDISPLAYID$CGRECT$$CGIMAGEREF in
>>>> glgrab.o
>>>> "_CGLClearDrawable", referenced from:
>>>>    GLGRAB_GRABVIAOPENGL$CGDIRECTDISPLAYID$CGRECT$$CGIMAGEREF in
>>>> glgrab.o
>>>>    GLGRAB_GRABVIAOPENGL$CGDIRECTDISPLAYID$CGRECT$$CGIMAGEREF in
>>>> glgrab.o
>>>> "_CGLCreateContext", referenced from:
>>>>    GLGRAB_GRABVIAOPENGL$CGDIRECTDISPLAYID$CGRECT$$CGIMAGEREF in
>>>> glgrab.o
>>>> "_CGLSetCurrentContext", referenced from:
>>>>    GLGRAB_GRABVIAOPENGL$CGDIRECTDISPLAYID$CGRECT$$CGIMAGEREF in
>>>> glgrab.o
>>>>    GLGRAB_GRABVIAOPENGL$CGDIRECTDISPLAYID$CGRECT$$CGIMAGEREF in
>>>> glgrab.o
>>>>    GLGRAB_GRABVIAOPENGL$CGDIRECTDISPLAYID$CGRECT$$CGIMAGEREF in
>>>> glgrab.o
>>>> "_CGLSetFullScreen", referenced from:
>>>>    GLGRAB_GRABVIAOPENGL$CGDIRECTDISPLAYID$CGRECT$$CGIMAGEREF in
>>>> glgrab.o
>>>> "_CGLDestroyPixelFormat", referenced from:
>>>>    GLGRAB_GRABVIAOPENGL$CGDIRECTDISPLAYID$CGRECT$$CGIMAGEREF in
>>>> glgrab.o
>>>> "_CGLChoosePixelFormat", referenced from:
>>>>    GLGRAB_GRABVIAOPENGL$CGDIRECTDISPLAYID$CGRECT$$CGIMAGEREF in
>>>> glgrab.o
>>>>
>>>>
>>>>
>>>> May I miss something ?
>>>>
>>>>
>>>> --
>>>> Damien Gerard
>>>> milipili at shikami.org
>>>>
>>>> Le temps n'a pas d'importance. Seul le code est important
>>>> -- (f00ty)
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Lazarus mailing list
>>>> Lazarus at lazarus.freepascal.org
>>>> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
>>>>
>>>> _______________________________________________
>>>> Lazarus mailing list
>>>> Lazarus at lazarus.freepascal.org
>>>> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
>>>
>>>
>>>
>>> --
>>> Damien Gerard
>>> milipili at shikami.org
>>>
>>> Le temps n'a pas d'importance. Seul le code est important
>>>  -- (f00ty)
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Lazarus mailing list
>>> Lazarus at lazarus.freepascal.org
>>> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
>>>
>>> _______________________________________________
>>> Lazarus mailing list
>>> Lazarus at lazarus.freepascal.org
>>> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
>>
>>
>>
>> --
>> Damien Gerard
>> milipili at shikami.org
>>
>> Le temps n'a pas d'importance. Seul le code est important
>>   -- (f00ty)
>>
>>
>>
>>
>>
>> _______________________________________________
>> Lazarus mailing list
>> Lazarus at lazarus.freepascal.org
>> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
>>
>> _______________________________________________
>> Lazarus mailing list
>> Lazarus at lazarus.freepascal.org
>> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
>
>
>
> --
> Damien Gerard
> milipili at shikami.org
>
> Le temps n'a pas d'importance. Seul le code est important
>    -- (f00ty)
>
>
>
>
>
> _______________________________________________
> Lazarus mailing list
> Lazarus at lazarus.freepascal.org
> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
>
> <winmail.dat>_______________________________________________
> Lazarus mailing list
> Lazarus at lazarus.freepascal.org
> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus



--
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