[Lazarus] OS X/Carbon Compilation

Damien Gerard milipili at shikami.org
Mon Feb 25 22:04:07 CET 2008


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)








More information about the Lazarus mailing list