[Lazarus] Compiling LCL units via commandline
reinierolislagers at gmail.com
Wed Jul 25 13:26:01 CEST 2012
On 25-7-2012 13:01, luciano de souza wrote:
> Having reported it in a forum, I member told me about lazbuild. I
> should manually create a XML file with the project settings and try to
> compile again. The same error about circular reference is raised.
Probably because your fpc.cfg is processed by lazbuild as well..
> Yes, Lazbuild can be used. But I confess this option strongliy upset
> me. Lazbuild calls several routines and after all calls FPC. If you
> imagine the screen reader reads all the output, not having a way to
> jump the unneeded information, you will evaluate how slow can be the
> compilation using Lazbuild. The output of FPC is not so verbose, so
> it's prefferable to use FPC without Lazbuild.
Most Lazarus users probably use the IDE, which is obviously an issue.
Lazbuild would seem to be the perfect solution then because it is kept
up to date with Lazarus changes.
Perhaps it's a good idea to change lazbuild to use a switch (e.g.
--quiet or -q) to output less details?
Also, it may be possible to adapt lazbuild to be able to compile your
example program (and similar programs) without need for creating an .lpi
or .lpr file.
Alternatively, perhaps some wrapper program could be made that does that
and calls lazbuild --quiet
More information about the Lazarus