Recent

Author Topic: LCL on framebuffer (without X)  (Read 1414 times)

pleumann

  • Jr. Member
  • **
  • Posts: 95
LCL on framebuffer (without X)
« on: August 03, 2023, 04:04:35 pm »
Hello,

is it possible to build a Lazarus app for a Linux (embedded) system that does not run a full-blown X server? Can the LCL render directly into the framebuffer?

Cheers
Joerg

Thaddy

  • Hero Member
  • *****
  • Posts: 16157
  • Censorship about opinions does not belong here.
Re: LCL on framebuffer (without X)
« Reply #1 on: August 03, 2023, 05:11:47 pm »
I only used the framebuffer directly with FPC on Raspberry Pie's.
(I wrote some demo's that are possibly still available from the RPI websites somewhere, translated C code to Freepascal.)
But, probably, yes, although it might prove to be a mammoth task.
In effect writing a kind of X. But Possible.

A good starting point is possibly the custom drawn widget set.
« Last Edit: August 03, 2023, 05:14:06 pm by Thaddy »
If I smell bad code it usually is bad code and that includes my own code.

lagprogramming

  • Sr. Member
  • ****
  • Posts: 407
Re: LCL on framebuffer (without X)
« Reply #2 on: August 03, 2023, 08:16:49 pm »
Have a look at MSEide/MSEgui. For now it can't do that either but compared to LCL's customdrawn, MSEgui is much closer to achieving that.
https://github.com/mse-org/mseide-msegui
Unfortunately, at the moment, unlike LCL, MSEgui is not able to save forms to bitmaps, which is something very important for MSEgui. Much more important than it is for LCL.

zeljko

  • Hero Member
  • *****
  • Posts: 1668
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: LCL on framebuffer (without X)
« Reply #3 on: August 03, 2023, 09:16:07 pm »
Qt5 an qt6 ws should support framebuffer via platform integration driver

pleumann

  • Jr. Member
  • **
  • Posts: 95
Re: LCL on framebuffer (without X)
« Reply #4 on: August 06, 2023, 01:12:59 pm »
Thanks for the responses!

The application already exists using LCL, so a complete rewrite using a different UI library is probably not an option.

We'll have a look at the Qt and custom widgets options.

Google also got me some references to "GTK on frame buffer", but they are all very old (like, 10 years or so). Is that still a thing or has it ever been?

 

TinyPortal © 2005-2018