#21 Unable to compile GLScene on OSX


I have been unable to compile GLScene on OSX. I tried both the stable ( and SVN of Lazarus and both the stable (5227) and SVN (5425) versions of GLScene...

To test, I downloaded the GLScene files and open the glscene_designtime.lpk with Lazarus and attempt to compile this package. I tried to fix several minor errors, but eventually felt I was out of my depth. Any help would be greatly appreciated. Here is a list of the problems and my solutions...

The last major release (5227) reports errors in GLPBuffer, which appear to be fixed by changing {$IFDEF LINUX} to read {$IFDEF UNIX} in GLPBuffer At this stage I get the same errors as the SVN:

With the SVN 5425 GLCarbonContext gives the following errors
/Users/chris/Documents/glscene/Source/Platform/GLCarbonContext.pas(42,20) Error: There is no method in an ancestor class to be overridden: "TGLCarbonContext.DoCreateContext(LongWord);"
/Users/chris/Documents/glscene/Source/Platform/GLCarbonContext.pas(43,20) Error: There is no method in an ancestor class to be overridden: "TGLCarbonContext.DoCreateMemoryContext(LongWord,LongInt,LongInt,LongInt);"

GLCarbonContext did not know about GLInt so I added these to the uses
OpenGLTokens, VectorTypes,Types, LCLType, X, Xlib, XUtil, dynlibs,

Had to comment out these...
//celISO_8859_2ToUTF8: Result := ISO_8859_2ToUTF8(aValue);
//celCP437ToUTF8: Result := CP437ToUTF8(aValue);
//celCP850ToUTF8: Result := CP850ToUTF8(aValue);

GLWidgetContext - changed , to ;
{$IFDEF Darwin}
though I note the following is commented out:
{$IFDEF LCLcarbon}
// {$MESSAGE Warn 'LCLcarbon: Needs to be implemented'}

GL3xMaterialEditor.pas(582,14) Error: Identifier not found "AlphaBlend"


  • YarUnderoaker

    YarUnderoaker - 2011-01-14

    Can you make topic in our forum https://sourceforge.net/apps/phpbb/glscene/
    I don't have OSX. My friend Rustam Asmandiarov tried to install MacOS into PC but without success. So if you interested we will be together make some fixes step-by-step.

  • YarUnderoaker

    YarUnderoaker - 2011-02-10

    Work in progress

  • YarUnderoaker

    YarUnderoaker - 2011-02-10
    • status: open --> open-remind
  • Pavel Vassiliev

    Pavel Vassiliev - 2015-12-08

    Please, use GLScene 1.3 for Lazarus 2014 from Files menu

  • Pavel Vassiliev

    Pavel Vassiliev - 2015-12-08
    • status: open-remind --> closed
    • assigned_to: Pavel Vassiliev
    • Group: --> Next_Release_(example)

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks