Recent

Author Topic: could Ardour's YTK be used as a GTK2 replacement?  (Read 11741 times)

Fred vS

  • Hero Member
  • *****
  • Posts: 3917
    • StrumPract is the musicians best friend
Re: could Ardour's YTK be used as a GTK2 replacement?
« Reply #60 on: March 27, 2026, 05:04:34 pm »
I really appreciate such efforts, but it is not a long term solution: be warned you are spending effort which may become obsolete very soon.
Stick to what needs to be done:GTK3(+) or Qt6 as default.

Hello Thaddy.

Actually, it's the exact opposite.
GTK3 and GTK4 will quickly become obsolete, whereas fifr's solution is timeless; it works on old distros as well as current and future ones. And since Wayland has no plans to get rid of XWayland, fifr's solution is perfect for both X11 and XWayland.
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

robert rozee

  • Sr. Member
  • ****
  • Posts: 372
Re: could Ardour's YTK be used as a GTK2 replacement?
« Reply #61 on: March 27, 2026, 05:20:05 pm »
[...] Do you really think a niche solution contributes to a real solution?

hi Thaddy,
    a solution that is agnostic to the installed widget-set seems to hardly be niche. in using YTK it is possible to create an ELF binary with Lazarus that (fingers crossed) only requires that X11 be present. i see Fred vS has posted a similar comment as i wrote this.

i say 'fingers crossed' in the sense that the remaining dynamic library dependencies of the generated ELF binary do still need to be closely examined to ensure that no "pieces of GTK" are still being made use of! testing will require finding a Linux distro that does not include any GTKx widget-set, create a VM running it, then copy into that VM a 'representative' set of ELF binaries created (outside of the VM) with Lazarus/FPC. if they run, all is good. if not, we may have a problem to resolve. it is important that Lazarus not be loaded into the VM, as doing so may pull in pieces of GTK as a dependency - thereby tainting it.

fifr: i also much appreciate your work; you have demonstrated what is possible. your comment, "I did not make any changes to fpc but only to the gtk2 package that is shipped with fpc. And I only removed deprecated functions that are not available in ytk and would lead to linking failures", in itself provides further useful information; that troublesome GTK2 package that is shipped with FPC is what kind-of kicked off the present discussion in dbannon's thread: https://forum.lazarus.freepascal.org/index.php/topic,73405.0.html


cheers,
rob   :-)
« Last Edit: March 27, 2026, 05:23:05 pm by robert rozee »

 

TinyPortal © 2005-2018