[Lazarus] Files not found when rebuilding the IDE

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Nov 28 11:21:13 CET 2014


On Thu, 27 Nov 2014 09:27:54 +0100
"hdv at gmail" <hdv.jadev at gmail.com> wrote:

> Hi,
> 
> After a couple of years away I am trying to pick up Lazarus again. Have
> to admit I seem to have lost a lot of the things I was at least somewhat
> knowledgeable in. Ah, well, I keep on trying...
> 
> One of those things has to do with rebuilding the IDe after adding
> components. There's two things I can't seem to grasp.
> 
> The first has to do with lpk files. I'd like to add AnchorDocking, but
> when I look in /usr/lib/lazarus/1.2.4/components/anchordocking/design I
> do not see a lpk file. Am I missing something? Or is my version of
> Lazarus not complete? 

There should be a file 
/usr/lib/lazarus/1.2.4/components/anchordocking/design/anchordockingdsgn.lpk
otherwise it is incomplete.

> I am using lazarus as installed by the package
> manger on a current Debian testing system.

You might want to try the debian packages on our sourceforge page:

http://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20amd64%20DEB/Lazarus%201.2.6/

 
> The other thing pops up when I want to rebuild the IDE. Building project
> is no problem (well, that is for the simple projects I tried 'til now).
> I get an error that the file staticpackages.inc can not be found. It
> does however exist in my ~/.lazarus directory and has proper rights. So
> I am thinking paths. But what path do I need to configure in the options
> dialog?

The IDE generates a file ~/.lazarus/idemake.cfg on every IDE build.
That should contain the include path (-Fi/home/user/.lazarus) as last
line.
Does it?


> I found some article on the problem with Linux systems and the
> impossibility of writing outside of your own home directory and thought
> it might have to do something with that.

That is a security feature and existed since the beginning of time.
System wide programs are installed outside the users home directories.
For example in /usr/lib/lazarus/.
You can install Lazarus either system wide or only for your user. You
can install multiple versions at various places.
When you install your own packages the IDE has to create some new files
and put them into ~/.lazarus/bin. This creates your own custom IDE.


> So I tried "startlazarus', but
> that does not seem to change anything (as far as I can see). The error
> message about still pops up.

startlazarus is just a wrapper that checks if you have your own
custom IDE and starts that instead of the system wide.
It has no effect on the building itself.

 
> Can someone please enlighten me? I'd appreciate it very much. I did try
> the site and the wiki, but maybe my search foo is lacking or I might be
> too dense, because I did not find pointers there that helped me solve this.


Mattias




More information about the Lazarus mailing list