Recent

Author Topic: Can't build a project group  (Read 4205 times)

tk

  • Sr. Member
  • ****
  • Posts: 368
Can't build a project group
« on: May 18, 2016, 05:14:41 pm »
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: [Select]
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

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

  • Sr. Member
  • ****
  • Posts: 281
Re: Can't build a project group
« Reply #1 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?

MarkMLl

  • Hero Member
  • *****
  • Posts: 8025
Re: Can't build a project group
« Reply #2 on: November 29, 2023, 05:22:14 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?

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
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

 

TinyPortal © 2005-2018