[Lazarus] New component arraybutton Fatal: Can't find unit Graphics used by arraybutton AND Multiple lazarus installations

Mattias Gaertner nc-gaertnma at netcologne.de
Tue Jun 29 08:42:25 CEST 2010


On Tue, 29 Jun 2010 06:44:09 +1000
Peter E Williams <foss.game.pascal.developer at iinet.net.au> wrote:

> Hi All,
> 
> Well, it's been over a week since I looked at this and I thought that it
> was working okay. Now I get Fatal: Can't find unit Graphics used by
> arraybutton.

Compile with -vut to see where the compiler searches and what it finds.
Probably you have some duplicate ppu files or you have not added LCL as
dependency to your project or you have added too many search paths to
your other unit files in the compiler options.

> It is derived from 
> 
>   TArrayButton = class(TGradButton) { class(TButton) }
> 
> @name GradButton
> @author Eugen Bolz
> @lastchange 21.07.2008
> 
> I would like advice on whether it is best to use TGradButton or TButton
> and how to get rid of these Fatal errors due to not finding the units.
> 
> The file is saved here:
> 
> /home/pewink/Public/My_code/lazarus/0.9.28.2/pewink/Hexxpawn/ArrayButton/
> 
> but for reasons which defy me, whenever I try to open or save any file I
> am directed to this folder:
> 
> /home/pewink/Public/My_code/lazarus/0.9.28.2/pewink/test1/

Do you use symlinks?

 
> I have Multiple lazarus installations on
> both /home/pewink/Public/My_code/lazarus/0.9.28.2/lazarus/ (system
> default executable) and my own custom lazarus
> on /home/pewink/.lazarus/bin/lazarus/ 
> 
> and I think that this is causing all the problems.

Unlikely. Then you must have done some more things wrong.


> How do I get back to
> a single installation of lazarus and not need to worry about the wrong
> permissions for files???

What wrong permission?


> Both lazarus installations are the SAME
> version, so I only need one not two!!!
> 
> unit arraybutton;
> 
> //{$MODE Delphi}
> {$mode objfpc}{$H+}
> 
>[...]
> uses
>   {Windows,}{ Messages,} SysUtils, Classes, Graphics, Controls, Forms,
> Dialogs,
> 
> ../Hexxpawn/ArrayButton/arraybutton.pas(1,1) Fatal: Can't find unit
> Graphics used by arraybutton
> this error is actually on line 78, column 45 !!!

When the compiler reports no valid line/column the error is not in the
sources, but in one of the ppu files.

 
>[...]

Mattias




More information about the Lazarus mailing list