[Lazarus] Lazarus and Graphics32 library packages
nc-gaertnma at netcologne.de
Sat Jan 5 11:01:28 CET 2013
On Sat, 5 Jan 2013 11:25:23 +0200
Juha Manninen <juha.manninen62 at gmail.com> wrote:
> On Sat, Jan 5, 2013 at 3:13 AM, Mattias Gaertner
> <nc-gaertnma at netcologne.de> wrote:
> > Codetools do not care if a file is reachable multiple times. fpc
> > does, because of its ppu files.
> > Make sure both packages do not share any source directory.
> They share the source directory but not any source files.
Are you sure? The error indicates that they share unit
> The package .lpk files are in "Packages" directory below the source directory.
> I thought it is allowed. Is it not?
You can put the lpk where ever you want.
> > What exactly is the bug?
> If the rule is against sharing source directories between packages,
> then it is a feature, not a bug.
> I am still wondering why such rule is needed.
First of all:
The rule is only a recommendation, it is not forced by the IDE. There
are cases where it makes sense to share a directory (e.g. historical
reasons, other build systems). The IDE should detect such things and
Two packages are compiled with different sets of
options, so fpc might recompile the shared unit, which means all
depending units must be recompiled as well, creating a logical circle.
If you can not split the sources of the two lpk and both lpk should
always be compiled exactly the same, then it is probably easier to merge
the two lpk into one.
More information about the Lazarus