[Lazarus] Compiling LCL units via commandline
Reinier Olislagers
reinierolislagers at gmail.com
Wed Jul 25 15:22:54 CEST 2012
On 25-7-2012 13:39, luciano de souza 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?
If you adapted fpc.cfg, and that doesn't work, that may interfere with
lazbuild or Lazarus.
Rather than deleting it, you should undo the changes.
You could run fpmkcfg to create a new one if you want to, something like:
cd /d c:\freepascal\fpc\2.6.0\bin\i386-win32
fpcmkcfg -d basepath=C:\freepascal\fpc\2.6.0 -o .\fpc.cfg
> 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?
No I mean that there will need to be development effort for this.
> 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.
If your problem is that you get too much verbose output with lazbuild,
generating the lpi file is not going to help you, I think.
As far as I know, there is currently no functionality in lazbuild to
suppress output messages - but I haven't looked harder than the options
list to be honest.
I noticed your demo project which is a .pas file. Lazbuild won't compile
that without an lpi file at least. I thought that it would be a good
idea to either:
1. adapt lazbuild so that it can compile regular fpc pas files as well, or
2. create a utility program that generates an lpi (and perhaps an
Obviously, the second option is easier to do, but perhaps the first one
is more elegant.
> But before choosing definetely Lazbuild, let me ask you: configuring
> properly fpc.cfg, there's no way to compile a project using LCL?
Sorry, I have not tried that.
Perhaps somebody else and has some suggestions to make.
Regards,
Reinier
More information about the Lazarus
mailing list