Recent

Author Topic: Because LCL is not pure, it can't compile everywhere.  (Read 9259 times)

Blestan

  • Sr. Member
  • ****
  • Posts: 461
Re: Because LCL is not pure, it can't compile everywhere.
« Reply #15 on: August 27, 2016, 09:22:38 am »
GUI on a NON GUI OS ???? and blameing lazarus/fpc for that is a  complete nonsense ... lazarus is cross platform not bare metal :)))
Speak postscript or die!
Translate to pdf and live!

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: Because LCL is not pure, it can't compile everywhere.
« Reply #16 on: August 27, 2016, 09:43:03 am »
There is Ultibo.
https://ultibo.org/
Bare metal GUI with FPC/Lazarus on ARM.
Catch: RPi only !

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: Because LCL is not pure, it can't compile everywhere.
« Reply #17 on: August 27, 2016, 11:14:52 am »
I tried to cross compile a new LCL application project with arm-linux-gnueabihf- cross compiler to linux embeded(not ubuntu, it's linux of no GUI).
it failed anyhow.
It is because of widgetset gtk gtk2 and qt can't compile on that target.

Use the customdrawn widgetset, it supports anything with X11:

http://wiki.lazarus.freepascal.org/Custom_Drawn_Interface

Graeme

  • Hero Member
  • *****
  • Posts: 1428
    • Graeme on the web
Re: Because LCL is not pure, it can't compile everywhere.
« Reply #18 on: August 28, 2016, 01:22:28 am »
X11 is OK.
Then there is some hope. ;-)

Quote
But fpGUI is far from LCL,
By design. Simply because fpGUI had no requirement or design goal to be a VCL (Delphi) clone. That meant I could do things different and better. There was no backwards compatibility issues to worry about either.

Quote
its behavior like message processing is wierd
Then maybe their is something you don't understand. Messaging in fpGUI is implement as designed by the FPC team and it uses the message feature from the Object Pascal language syntax. Nothing weird or odd about that. LCL does exactly the same.

Quote
and it needs hard work to porting to
On the contrary, I found it actually very easy to port VCL or LCL components to fpGUI, and I've done so many times. The reason being, fpGUI is 100% cross-platform, so you don't need IFDEF's in your application or component code, you don't need platform specific API calls etc. I'm not the only one that has experienced the ease of porting VCL or LCL components to fpGUI - others have done so too. fpGUI's code repository even contains some of those contributions.
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

Graeme

  • Hero Member
  • *****
  • Posts: 1428
    • Graeme on the web
Re: Because LCL is not pure, it can't compile everywhere.
« Reply #19 on: August 28, 2016, 01:31:26 am »
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

Thaddy

  • Hero Member
  • *****
  • Posts: 14204
  • Probably until I exterminate Putin.
Re: Because LCL is not pure, it can't compile everywhere.
« Reply #20 on: August 28, 2016, 07:29:27 am »
And there is a fpGUI port for Ultibo too. As far as I understand Ultibo doesn't use X11 at all.

  https://ultibo.org/forum/viewtopic.php?f=10&t=38&start=10
  https://ultibo.org/forum/viewtopic.php?f=10&t=38&p=121#p121

That's correct. ULTIBO uses the videocore direct and only uses the videocore provided libaries. Afaik this will only work on the computer running the software and not via any kind of remoting.
At least: I don't know of that. I guess the port uses either vc mailbox or fb's.
I will have to try and look...Ultibo is really nice to play with on the Raspberry Pi.
Specialize a type, not a var.

 

TinyPortal © 2005-2018