[lazarus] File "/home/amead/interfacebase.pp" not found

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Sep 26 13:28:15 EDT 2003


On Fri, 26 Sep 2003 08:31:30 -0700 (PDT)
Alan Mead <cubrewer at yahoo.com> wrote:

> 
> --- Mattias Gaertner <nc-gaertnma at netcologne.de> wrote:
>[...]
> > On Thu, 25 Sep 2003 19:58:42 -0700 (PDT)
> > Alan Mead <cubrewer at yahoo.com> wrote:
> > 
> > > I'm still having trouble getting started with Lazarus 0.9.0.4. 
> > When
> > > I try to run a project (by clicking the 'play' button) I get a
> > dialog
> > > saying "File "/home/amead/interfacebase.pp" not found".  
> > > 
> > > In the messages window, it says:
> > > 
> > > syslinux.pp(5,1) Hint:  Conditional I386 was set at startup in
> > last
> > > compilation of syslinux.pp
> > > interfacebase.pp(6,13) Fatal: Can't find unit CLASSES
> > > 
> > > Here's my the output of 'ppc386 -vt foo':
> > > 
> > > [amead at alan amead]$ ppc386 -vt foo
> > > Searching file ppc386.cfg... not found
> > > Searching file /home/amead/.ppc386.cfg... not found
> > > Searching file /etc/ppc386.cfg... not found
> > > Searching file fpc.cfg... found
> > 
> > You are still not using /etc/fpc.cfg, but fpc.cfg in the current
> > directory.
> > Why do you have so many config files? You are not really a
> > beginner, are you
> > ;)
> 
> I'm definitely a beginner at Lazarus.  I've used freepascal for a
> while.  I'll delete the extra file when I get home.  I have two
> questions:
> 
> (1) What does the error message about interfacebase.pp mean?  Why
> would the file be in my home directory?

The compiler checked interfacebase.ppu and recursively checked used units,
like the classes.ppu. It didn't found classes.ppu and so it gives an error.
But instead of saying 'interfacebase.ppu: classes.ppu not found', it writes
'interfacebase.pp (y,x): ...', that was never involved. The IDE sees an
error line and tries to jump to the error. Of course it must fail.
After unsuccessfull search the IDE shows the first tested filename. Not very
clever. I changed it in cvs.

 
> (2) I've always installed from RPM but maybe my rpm is broken or
> something, I've had this "file or directory not found" errors on
> other src packages. 

What other src packages?


> Is there a short outline for how I would get the
> sources (i.e., a tarball or use the installed src RPM) and make them
> from scratch? 

You must delete the fpc.cfg, so that /etc/fpc.cfg is used anyway. Then fpc
should work.
I recommend to use the lazarus cvs.

The rpms are the easiest way. 
The fpc install.sh is also very easy, although uninstall is not that
comfortable. 
Lazarus itself is just one big directory. So, install/uninstall is very
easy.

Of course installing several versions and/or not cleaning up the last can
make trouble.


Mattias






More information about the Lazarus mailing list