Absolute paths, was: Re: [lazarus] CVS Updatesuy
Marco van de Voort
marcov at stack.nl
Wed Jun 18 12:02:03 EDT 2003
> On Wed, 18 Jun 2003 16:24:46 +0200 (CEST)
> marcov at stack.nl (Marco van de Voort) wrote:
>
> > mv * /new/directory
> >
> > > > There are absolute paths in the project1.lpi file causing this.
> > >
> > > What files?
> >
> > form1 (unit1.pas and .lrs were absolute), form2 (unit2.pas and .lrs)
> > weren't.
>
> The lpi only uses absolute filenames if the file is not in the project
> directory. Can you give the full filenames?
- I started "lazarus" in /fpc/projects/lazarus and then after creating a
project I chose /home/marcov/lazproj as patch for each file I had to save.
- Some entering/exiting lazarus later, I started lazarus
opened/home/marcov/lazproj/project1.lpr, and added the second form.
I don't know in what dir I was when I started lazarus, so this _could_
be /home/marcov.
- I moved everything in /home/marcov/lazproj to /fpc/lazproj, loading unit1
when loading the project gave an error that it couldn't find
/home/marcov/lazproj/unit1.pas. I corrected that in the lpr by removing
the /home/marcov/lazproj paths from the line with "unit1.pas" and
"unit1.lrs"
So it could be related to creating the project when startup in dir X,
but then saving it to dir Y.
I tried to duplicate it, but couldn't, so I probably did something else
wrong.
P.s. a lazarus made with DEBUG=1 GPFs on startup.
More information about the Lazarus
mailing list