[Lazarus] Problems with Lazarus
Mattias Gaertner
nc-gaertnma at netcologne.de
Tue Feb 19 10:12:51 CET 2013
On Tue, 19 Feb 2013 10:17:59 +0200
Johann Spies <johann.spies at gmail.com> wrote:
> My endeavour to return to Pascal is getting to the point of frustration:
>
> 1. Although I found that sometimes I have to tell Lazarus to scan the
> fpcsource to be able to find installed units, it still happens that from
> time to time I cannot compile something because a unit cannot be found.
>
> Today it is "*Can't find unit AvgLvlTree ... check if package LazUtils is
> in the dependencies"
>
> I have read the wiki and FAQ about this type of problems but that did not
> help at all.
>
> Both fpc and lazarus cannot find the unit despite the fact that I did a
> rerun of fpcmkcfg adn despite that the following shows the unit is there:
>
>
> locate -i avglvltree
> /home/js/.lazarus/lib/LazUtils/lib/x86_64-linux/avglvltree.o
> /home/js/.lazarus/lib/LazUtils/lib/x86_64-linux/avglvltree.ppu
> /usr/share/lazarus/1.0.6/components/lazutils/avglvltree.pas
> /usr/share/lazarus/1.0.6/components/lazutils/lib/x86_64-linux/avglvltree.o
> /usr/share/lazarus/1.0.6/components/lazutils/lib/x86_64-linux/avglvltree.ppu
> /usr/share/lazarus/1.0.6/docs/xml/lazutils/avglvltree.xml
> /usr/share/lazarus/1.0.6/test/lazutils/testavglvltree.pas
> js at artikel ~/p/pascal> sudo fpcmkcfg > /tmp/fpc.cfg
A common mistake is to add too many paths to the unit search paths
("Other unit files"), so the compiler finds multiple units with the same
name.
Your Lazarus project should only contain search paths of your own
directories, not to the LCL, not to the FPC sources and not to any
other package. For most projects this means the "Other unit files" is
empty.
Make sure your fpc.cfg contains only -Fu lines pointing to directories
containing ppu files, no directory with sources (.pas,.pp).
You can clean up using menu item Run / Clean up Build
files. This will delete the ppu files created by experiments or
former configuration mistakes.
> *2. My second problem is not that serious but Lazarus as an editor is
> extremely slow. It reminds me of the reason why I do not use Eclipse for
> other projects and normally prefer Emacs or Vim. Unfortunately the fpc-ide
> is not debug-enabled and I do not know how to enable it. I have recompiled
> the sources and according to what I understand of the configuration in the
> sources debug should be enabled.
>
> There must be some way to get around these type of frustrations. Any help?
>
> Regards
> Johann
>
>
> PS. I am working with Lazarus 1.0.6 and fpc-2.6.0-7 on Debian. I have
> downloaded the packages from the Lazarus site and removed all standard
> Debian freepascal-related packages from my system.
On some Linux the QT version is faster. Unfortunately there is no
debian package for that. But compiling it is easy.
Mattias
More information about the Lazarus
mailing list