Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2026-07

sourcecloser?

6 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mattias Gaertner
to Luca Olivetti
Luca Olivetti wrote
hello, if i use sourcecloser to distribute some of my components, the compiled PPUs depend only on the fpc version or also the lazarus version?

If it does not use any lazarus package, e.g. lazutils, then only the fpc version.

Mattias

Reply by email

Luca Olivetti
to Mattias Gaertner

El 17/7/26 a les 14:21, Mattias Gaertner via lazarus ha escrit:

Show quoted text 10 lines
On 7/17/26 11:48, Luca Olivetti via lazarus wrote: > hello, > > if i use sourcecloser to distribute some of my components, the > compiled PPUs depend only on the fpc version or also the lazarus version? If it does not use any lazarus package, e.g. lazutils, then only the fpc version.

I checked and they use

IDEIntf
LCL
LCLBase
LazUtils

so I guess they depend on lazarus too

Bye

Luca Olivetti Tel. +34 935883004 Ext. 3010 https://wetron.es https://wecobots.com

Reply by email

Mattias Gaertner
to Luca Olivetti
Luca Olivetti wrote 21 lines
El 17/7/26 a les 14:21, Mattias Gaertner via lazarus ha escrit: > > > On 7/17/26 11:48, Luca Olivetti via lazarus wrote: >> hello, >> >> if i use sourcecloser to distribute some of my components, the >> compiled PPUs depend only on the fpc version or also the lazarus >> version? > > If it does not use any lazarus package, e.g. lazutils, then only the > fpc version. I checked and they use ?IDEIntf ?LCL ?LCLBase ?LazUtils so I guess they depend on lazarus too

Yes.
The ppu checksums are pretty rigorous.

Mattias

Reply by email

Luca Olivetti
to Mattias Gaertner

El 17/7/26 a les 14:58, Mattias Gaertner via lazarus ha escrit:

Show quoted text 27 lines
On 7/17/26 14:53, Luca Olivetti via lazarus wrote: > El 17/7/26 a les 14:21, Mattias Gaertner via lazarus ha escrit: >> >> >> On 7/17/26 11:48, Luca Olivetti via lazarus wrote: >>> hello, >>> >>> if i use sourcecloser to distribute some of my components, the >>> compiled PPUs depend only on the fpc version or also the lazarus >>> version? >> >> If it does not use any lazarus package, e.g. lazutils, then only the >> fpc version. > > I checked and they use > > ??IDEIntf > ??LCL > ??LCLBase > ??LazUtils > > so I guess they depend on lazarus too Yes. The ppu checksums are pretty rigorous.

If the customer independently compiles from sources the same version of lazarus, using the same compiler I used, will the PPUs I generate with my copy of lazbuild work?

Side note: is there a way to script (under windows) the compilation of lazarus including extra packages (a mix of packages included with lazarus but not installed by default, local packages with sources or processed by sourcecloser and packages from the online package manager)?

Bye

Luca Olivetti Tel. +34 935883004 Ext. 3010 https://wetron.es https://wecobots.com

Reply by email

Mattias Gaertner
to Luca Olivetti
Luca Olivetti wrote
[...] If the customer independently compiles from sources the same version of lazarus, using the same compiler I used, will the PPUs I generate with my copy of lazbuild work?

The ppu checkums are computed from the unit interfaces, inlines and generics. So if the user compiles with options that changes those, it will break.

Side note: is there a way to script (under windows) the compilation of lazarus including extra packages (a mix of packages included with lazarus but not installed by default, local packages with sources or processed by sourcecloser and packages from the online package manager)?

Use lazbuild --build-ide to build the IDE.
Use the --add-package option to install a package.

I don't know if there is a command line tool to download packages via the OPM.

Mattias

Reply by email