[Lazarus] Compiling LCL units via commandline

Mattias Gaertner nc-gaertnma at netcologne.de
Wed Jul 25 16:08:55 CEST 2012

On Wed, 25 Jul 2012 08:39:55 -0300
luciano de souza <luchyanus at gmail.com> wrote:

> let me see if I understood. If I avoid the fpc.cfg processing,
> probably the compilation will be successful. Should I simply remove
> fpc.cfg to avoid it?
> You say that Lazbuild could be adapted. What does it mean? Should I
> call some special commandline parameters or Lazbuild should be changed
> implying an development effort under Lazbuild?

A development effort of lazbuild.

> If the reply is that the code of Lazbuild should be changed, regarding
> I don't know the code of Lazbuild, I prefer to invest in an automatic
> routine to produce the XML file since it will be simpler for us.
> But before choosing definetely Lazbuild, let me ask you: configuring
> properly fpc.cfg, there's no way to compile a project using LCL?

The LCL contains the LCL, the LCLBase and LazUtils.
You have to add the three output directories to the unit search path.

You can add them to your fpc.cfg. Note that doing so hides some units
with the same name of the fpc installation.

Keep in mind: If you have already compiled with wrong search paths, fpc
may have already created ppu files all over the place. So you may
have to clean up your installation, which might mean reinstalling


More information about the Lazarus mailing list