[fpc-pascal] Cross platform question about lpi file content
Michael Van Canneyt
michael at freepascal.org
Thu Oct 1 10:52:02 CEST 2020
On Wed, 30 Sep 2020, Sven Barth via fpc-pascal wrote:
> Lazarus is not Delphi. In Delphi this worked, because on Windows the GUI
> libraries are always available and Windows doesn't care if you use UI
> code in a "console" binary. On other systems (especially Linux and BSD)
> this might not be the case however, thus linking against e.g. GTK or Qt
> (which the LCL does depending on the widgetset) would just lead to
> "library not found" errors at the point you'd start the application. And
> trust me, on a headless system you don't *want* to install a complete
> X11 or Wayland stack just to get your program working. That is why the
> NOGUI widgetset was introduced. To give units that require GUI access
> (like some parts of Indy) the chance to work in CLI applications. Though
> of course it's even better to get rid of such dependencies, but Indy is
> big and thus one probably needs to adjust/rewrite quite some of their
> units to make sure that there are no unnecessary GUI dependencies...
I think this rewrite of Indy has already happened quite some time ago:
Indy works without GUI in Delphi as well. I use it in server applications on
headless servers.
Michael.
More information about the fpc-pascal
mailing list