Recent

Author Topic: Deploy Lazarus components without sources  (Read 7674 times)

EasyTEF Team

  • New Member
  • *
  • Posts: 26
Deploy Lazarus components without sources
« on: March 30, 2011, 01:11:08 pm »
Hi everyone!

In Delphi, when I create a component, I need a package (.dpk) to compile and install it. Same way as Lazarus (.lpk).

Delphi's package output is a binary file (.bpl) that can be installed by itself, without needing of it sources, that means that I can deploy Delphi components without it sources.

Is there a way to do the same with Lazarus, ie, deploy Lazarus components without it sources?

Thanx!
« Last Edit: March 30, 2011, 03:20:51 pm by EasyTEF Team »

DirkS

  • Sr. Member
  • ****
  • Posts: 251

TurboRascal

  • Hero Member
  • *****
  • Posts: 672
  • "Good sysadmin. Bad programmer."™
Re: Deploy Lazarus components without sources
« Reply #2 on: March 30, 2011, 01:45:23 pm »
Yet I believe that might be quite a hard task because of ABI changes betveen FPC and LCL versions...

I guess you should provide binaries for every Lazarus and FPC versions combination that's likely to occur, but that might be too much work and different files to distribute, so you should choose the most likely targets. Remember, binary component packages for Delphi are also distributed with different files for each version.

That's from the technical side, but I guess all those problems might be moot since Lazarus IDE is GPL licensed, so I'm not sure you could really legally offer binary-only components for it (they must be linked with it, and I don't see licence exceptions allowing that?)
Regards, ArNy the Turbo Rascal
-
"The secret is to give them what they need, not what they want." - Scotty, STTNG:Relics

eny

  • Hero Member
  • *****
  • Posts: 1665
Re: Deploy Lazarus components without sources
« Reply #3 on: March 30, 2011, 02:08:03 pm »
That's from the technical side, but I guess all those problems might be moot since Lazarus IDE is GPL licensed, so I'm not sure you could really legally offer binary-only components for it (they must be linked with it, and I don't see licence exceptions allowing that?)
Sure you can; you just can't publish the component under the GPL license nor can it be incorporated in the FPC/Lazarus base.
All posts based on: Win11; stable Lazarus 4_4  (x64) 2026-02-12 (unless specified otherwise...)

fabienwang

  • Sr. Member
  • ****
  • Posts: 449
  • Lazarus is the best
    • My blog
Re: Deploy Lazarus components without sources
« Reply #4 on: March 30, 2011, 03:31:45 pm »
GPL licence has exceptions (section 7) and components or programs that we code with Lazarus can use any Licence :)
I'm using Arch Linux.
Known for: CPickSniff, OpenGrabby
Contributed to: LazPaint

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12770
  • FPC developer.
Re: Deploy Lazarus components without sources
« Reply #5 on: March 30, 2011, 04:41:45 pm »
GPL licence has exceptions (section 7) and components or programs that we code with Lazarus can use any Licence :)

That goes for the generated applications.  However the designtime code (that often uses the entire components code) links to a GPL app. (lazarus). But this only comes into effect, when you start distributing the Lazarus IDE with the commercial component prelinked. (and contrary to urban myth, BPLs change nothing in the licensing picture. Linking is linking, static or dynamic)

See also http://wiki.freepascal.org/licensing

The following URL is more or an analysis of the packages (BPL) feature, and how it would apply to FPC/Lazarus. Due to multitude of platforms and versions, I don't think Delphi's binary package model will ever be realistic for Delphi: http://wiki.freepascal.org/packages
« Last Edit: March 31, 2011, 12:48:17 pm by marcov »

TurboRascal

  • Hero Member
  • *****
  • Posts: 672
  • "Good sysadmin. Bad programmer."™
Re: Deploy Lazarus components without sources
« Reply #6 on: March 31, 2011, 12:50:39 am »
GPL licence has exceptions (section 7) and components or programs that we code with Lazarus can use any Licence :)

You must be thinking of the VCL's LGPL licence... I was talking of the IDE's GPL...
Regards, ArNy the Turbo Rascal
-
"The secret is to give them what they need, not what they want." - Scotty, STTNG:Relics

 

TinyPortal © 2005-2018