[Lazarus] Adding File to Package -> Fatal: Can't find unit Controls used by ugradbtn

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Jun 17 10:28:06 CEST 2010


On Thu, 17 Jun 2010 18:14:26 +1000
Peter E Williams <foss.game.pascal.developer at iinet.net.au> wrote:

> Hi dmitry,
> 
> On Thu, 2010-06-17 at 08:49 +0400, dmitry boyarintsev wrote:
> > You need to LCL add to the packege's dependency!
> > 
> > Open the package dialog (the one opened with " Package / New
> > Package"), press "Add" button (on the top panel of the dialog). "New
> > Requirement"->Package Name, select LCL. Press OK.
> > 
> > This will add LCL to the package requirements. You don't need to add
> > any directories for the LCL (if you've added you must remove them).
> > 
> 
> I managed to successfully install the 
> 
> ugradbtn.pas component to the Misc component tab however I have not been
> able to install my arraycolorbtn_pkg which uses it. I have tried
> uninstalling the ugradbtn.pas component and installing just
> arraycolourbtn_pkg but without any joy.
> 
> Package arraycolorbtn_pkg
> 
> Files
>  - arraycolorbutton.pas
>  - ugradbtn.pas
> Required Packages
>   - LCL
>   - FCL (>=1.0)
> 
> Recompiling Graphics, checksum changed for FPCAdds

This typically means you have duplicate ppu files. Probably because you
once compiled with wrong LCL search paths. 
Delete .ppu files in your package output directory and your project.


> graphics.pp(81,12) Fatal: Can't find unit Graphics used by
> arraycolorbutton

> 
> I am using the default installation of Lazarus not the home folder
> version. My component is in the home folder which I mentioned in my
> original post.
> 
> Any ideas???


Mattias
 




More information about the Lazarus mailing list