Forum > Lazarus Extra Components

Can't build a project group

(1/1)

tk:
Hi,
just started experimenting with new project groups and I can't compile all projects that I've inserted into project group.
When I click on the project group name (top level node) and then click on Compile button following messages appear:


--- Code: ---Compile Project DLL1, build mode "Debug": Exit code 2, Errors: 2
Error: (lazarus) invalid Lazarus directory "": directory lcl not found
Error: (lazarus) Building failed: D:\Data\DLL1.lpi
--- End code ---

DLL1.lpi is one of the currently closed projects.
Wiki http://wiki.lazarus.freepascal.org/Project_Groups says:
When compiling a non active project the external tool lazbuild is called and output is shown in the Messages window. Hints/Warnings/Errors of files outside the active project or its packages might be interpreted wrong by the IDE.

But all projects from the project group compile fine when opened in Lazarus independently.

Is it a bug in Lazarus?
I would expect the same behavior as in Delphi.
Mean to be able to batch build all inserted projects with project dependency options exactly like they are in Delphi.
(in Delphi when I double click on Debug configuration for primary project all dependent projects compile in Debug mode as welll; the same for Release configuration etc.)


apeoperaio:
I know this is an old topic. But I cannot find any answer. There is a way to compile all projects included in a Project Group?

MarkMLl:

--- Quote from: apeoperaio on November 29, 2023, 02:43:04 pm ---I know this is an old topic. But I cannot find any answer. There is a way to compile all projects included in a Project Group?

--- End quote ---

Yes.

Oh all right :-) Select top node of tree, check that the status pane identifies a .lpg rather than .lpi and use "Compile Clean".

MarkMLl

Navigation

[0] Message Index

Go to full version