Recent

Author Topic: Component authoring: how to do it in cross platform way?  (Read 7145 times)

ssamayoa

  • Full Member
  • ***
  • Posts: 163
Component authoring: how to do it in cross platform way?
« on: March 26, 2007, 09:46:08 pm »
Hi.

I'm interested on port/write some components to use it on lazarus but I want to do in "cross platform" (win/lin) way.

I did some Kylix/D7 components but there was CLX layer.

Is LCL as CLX?

Where can I start?

Some pointers please, I have a lot of Delphi development experience but I'm very (very very very) beginer on Laz.

Regards.

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
RE: Component authoring: how to do it in cross platform way?
« Reply #1 on: March 26, 2007, 11:10:39 pm »
Yes, you can assume that everything in the LCL is available on both linux (with gtk1 or gtk2) and windows. In that respect the LCL is like the CLX.

ssamayoa

  • Full Member
  • ***
  • Posts: 163
RE: Component authoring: how to do it in cross platform way?
« Reply #2 on: March 27, 2007, 01:14:36 am »
mmm...

If I write components using gtk I guess I need to deploy gtk related artifacts such dlls and configuration files, isnt?

antonio

  • Hero Member
  • *****
  • Posts: 605
RE: Component authoring: how to do it in cross platform way?
« Reply #3 on: March 27, 2007, 03:34:04 am »
I suppose yes. And...

ssamayoa

  • Full Member
  • ***
  • Posts: 163
RE: Component authoring: how to do it in cross platform way?
« Reply #4 on: March 27, 2007, 04:07:14 am »
What I like about Delphi and Lazarus in Windows is the very low "over head" of stuff at deploy time: just the exe plus some or none dlls. With my Delphi applications I only need the exe file, midas.dll and gds32.dll (I use Firebird thru IBX). Packed (in zip) there is less that 4Mb to download (If the average user could use 7z I would package on it).

But adding more dlls will be a bigegr (then longer time) to download.

May be is time to break some paradigms, almost all people I known and use my programs have a ADSL Internet connection.

Time to make more intelligent installers.

Regards.

RudieD

  • Full Member
  • ***
  • Posts: 234
RE: Component authoring: how to do it in cross platform way?
« Reply #5 on: March 30, 2007, 05:38:49 pm »
U can compile the same code and then bind them to gtk1/gtk2/win/qt/carbon/... what ever wiget set supports all the components that you use. So .... if some one wants to install your app and they have gtk1, ... give them the gtk1 compiled app same goes for the rest. With Kylix you could only install on a system with qt ?
The FRED Trainer. (Training FRED with Lazarus/FPC)

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
RE: Component authoring: how to do it in cross platform way?
« Reply #6 on: March 30, 2007, 10:22:12 pm »
Just to be more clear, if you are deploying to windows, you should set the widgetset to win32, so you don´t have to deploy anything except for the executable.

On Linux, unlike windows, there exists no standard library that will always be present. Most of the time (95% or more) gtk will be present, so that should do it. And if the person doesn´t have gtk installed, well it´s free =) just install it

 

TinyPortal © 2005-2018