Recent

Author Topic: component development problems  (Read 3437 times)

anderslinden

  • Newbie
  • Posts: 1
component development problems
« on: May 18, 2006, 05:59:24 pm »
Hello!

I have a problem compiling a component which I have not modified since lazarus created it for me.
I am using lazarus 0.9.14 beta on Fedora Core 4.

When I try to create a component I do this:
(As a normal user).
start lazarus
File->Close (for some reason there is no close project choice anywhere)
File->New
Choose standard package
I click save to save the lpk file (in an empty directory)
In the new dialog, I click Add
I choose the tab "new component"
I set the ancestor to TComponent
I set the component name to TBlurp
I set the palette page to foo.
When I click ok, a blurp.pas file is created in the same directory.
now, I File->Close All. I am asked to save a .lpi file, when I do in the
same directory as foobar.lpi.
I close the environment by choosing quit, I am told to save the package.

I now logout and login as root.
I start the lazarus environment and chose File->close.
I open the file test.lpk.
Now I click on the "install" button. I am asked if I want to rebuild
lazarus. Actually, I dont, but I click yes. It takes some time. The package fails to compile.
The compilation error is "Fatal: Can't find unit LResources". And I have not modifed the contents of the package anything at all.

Anonymous

  • Guest
RE: component development problems
« Reply #1 on: June 18, 2006, 11:22:25 am »
Your package must depend on LCL pacakage to set all required paths.Add LCL package as required. :D  :D  :D

 

TinyPortal © 2005-2018