[Lazarus] first try at compiling complains about creating tchart object file, second try works

Alexander Klenin klenin at gmail.com
Fri Aug 19 17:08:41 CEST 2011


On Wed, Aug 17, 2011 at 03:19, Seth Grover <sethdgrover at gmail.com> wrote:

> 1. Create a new lazarus application
> 2. Drop a TChart onto my form
> 3. Hit Ctrl+F9 to build
>
> I get the following error:
>
> tachartutils.pas(1171,1) Error: Can't create object file:
> /usr/share/lazarus/0.9.30/components/tachart/lib/x86_64-linux/gtk2/tachartutils.o
>
> Well, of course it can't create that file: I'm running as a non-root
> user who doesn't have write privileges under /usr/share. But what's
> even stranger is why it thinks it needs to create that file, as I can
> check and see that it already exists and has existed since I installed
> Lazarus.

Very weird.
I can vaguely guess that it is a problem with FPC handling of generics.
TAChart is one of the few (maybe only?) parts of Lazarus that uses generics,
and during the development I have encountered many similar problems with FPC,
although not this exact one.

-- 
Alexander S. Klenin




More information about the Lazarus mailing list