#21 Unable to compile GLScene on OSX

open-remind
nobody
None
5
2011-02-10
2011-01-12
Anonymous
No

I have been unable to compile GLScene on OSX. I tried both the stable (0.9.28.2) 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,

GLSLanguage
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}
GLCarbonContext,
{$ENDIF}
though I note the following is commented out:
{$IFDEF LCLcarbon}
// {$MESSAGE Warn 'LCLcarbon: Needs to be implemented'}
{$ENDIF}

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

Discussion

  • YarUnderoaker
    YarUnderoaker
    2011-01-14

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