[lazarus] Beginner
Mattias Gaertner
nc-gaertnma at netcologne.de
Tue Sep 23 03:42:29 EDT 2003
On Tue, 23 Sep 2003 00:23:42 -0700 (PDT)
Alan Mead <cubrewer at yahoo.com> wrote:
> I installed Lazarus 0.9.0.2 from the RPM downloaded from the lazarus
> site. I have FPC 1.0.10 installed. I'm running Redhat 7.2.
>
> Lazarus looks great and I can create an initial form. But if I
> double click on, say, a button, I get:
>
> ### TCodeToolManager.HandleException: "unit not found: CustApp" at
> Line=49 Col=23 in "/usr/share/lazarus/lcl/forms.pp"
The IDE didn't found your FPC sources (RPM fpcsrc). Check
Environment->Environment Options->FPC Source Directory.
> TMainIDE.DoOpenEditorFile END "/usr/share/lazarus/lcl/forms.pp"
> TDesigner.InvokeComponentEditor ERROR: Unable to find method. Plz fix
> the error shown in the message window.
>
> When I try to run it (i.e., click the 'play' button), I get:
>
> TOutputFilter: "interfacebase.pp(6,13) Fatal: Can't find unit
> CLASSES"
It seems your FPC is not the one, that was used to compile the lazarus RPM.
Download the lazarus src RPM and rebuild it:
rpm --rebuild lazarus-0.9.0.xxx.src.rpm
Then uninstall the old lazarus and install the new.
> Here is my /etc/fpc.cfg (dated July 14, which is when I installed FPC
> 1.0.10) with all the comments stripped out:
>
> -OG2p3
> -Xs
> -g
> -Crtoi
> -Sgic
>
> -Fu/usr/lib/fpc/1.0.10/units/$target
> -Fu/usr/lib/fpc/1.0.10/units/$target/*
> -Fu/usr/lib/fpc/1.0.10/units/$target/rtl
> -Fl/usr/lib/gcc-lib/i386-redhat-linux/2.96
> -Xs
> -l
> -viwn
Looks ok.
> There is a unit called classes.ppu in
> '/usr/lib/fpc/1.0.10/units/linux/fcl', should I add that?
No. It's already in the path.
Mattias
More information about the Lazarus
mailing list