[Lazarus] lazopenglcontext on Raspberry Pi?

Mattias Gaertner nc-gaertnma at netcologne.de
Sat Oct 21 10:29:25 CEST 2017


On Fri, 20 Oct 2017 20:32:49 -0400
Anthony Tekatch via Lazarus <lazarus at lists.lazarus-ide.org> wrote:

>[...]
> Then installed Lazarus for Raspbian defined here:
>   http://wiki.freepascal.org/Lazarus_on_Raspberry_Pi
> sudo apt-get update
> sudo apt-get upgrade
> sudo apt-get install fpc
> sudo apt-get install lazarus

Ok. These are probably the Debian packages.
Maybe they are doing something strange. I will check.

>[...] 
> idemake.cfg contains this line:
> -Fu/home/pi/.lazarus/lib/LazOpenGLContext/lib/arm-linux/gtk2
> 
> The openglcontext.ppu exists in this directory:
>    /home/pi/.lazarus/lib/LazOpenGLContext/lib/arm-linux/gtk2

Good.

> For cleanliness, I started over again by completely removing fpc, Lazarus,
> ~/.lazarus and did not use fpcupdelux this time.
> 
> Starting Lazarus for the first time gives this error which I am not
> concerned about:
>   The package EditorMacroScript (pascalscript macros) has detected a
>   problem and was deactivated. The package failed its selftest with the
>   message: "Failed getstr2 [Exp: "456" / Got: "abc"]"

Yes, that's normal. Some features are not yet supported on arm.

 
> package->install->lazopenglcontext->rebuild-ide gives this error:
>   lazarus.pp(1,1) Fatal: Cannot find lazopenglcontext used by Lazarus.
>   Check if package LazOpenGLContext creates lazopenglcontext.ppu, check
>   nothing deletes this file and check that no two packages have access to
>   the unit source..
> 
> no lazopenglcontext.ppu can be found in here:
>   /home/pi/.lazarus/units/arm-linux/gtk2

Good. That's the directory for the IDE itself.

 
> package->uninstall->lazopenglcontext->rebuild-ide is back to normal.
> 
> package->open-lpk->lazopenglcontext.lpk->compile builds ppu files in here:
>   /home/pi/.lazarus/lib/LazOpenGLContext/lib/arm-linux/gtk2

Good.

 
>   use->install->rebuild-now compiles then closes lazarus
>   start lazarus
>   compiles new program fine
>   lazopenglcontext appears in installed packages
> 
> Try compiling my program which includes:
>   openglcontext
> in the uses section, get this error:
>   vector.pas(14,5) Fatal: Cannot find openglcontext used by vector. Check
>   if package LazOpenGLContext creates openglcontext.ppu, check nothing
>   deletes this file and check that no two packages have access to the
>   unit source..
> 
> idemake.cfg contains this line:
> -Fu/home/pi/.lazarus/lib/LazOpenGLContext/lib/arm-linux/gtk2
> 
> The openglcontext.ppu exists in this directory:
>    /home/pi/.lazarus/lib/LazOpenGLContext/lib/arm-linux/gtk2

Strange.

Mattias


More information about the Lazarus mailing list