Recent

Author Topic: This worries me about our current GTK2 standard  (Read 2508 times)

cdbc

  • Hero Member
  • *****
  • Posts: 2505
    • http://www.cdbc.dk
Re: This worries me about our current GTK2 standard
« Reply #30 on: November 15, 2025, 05:39:16 pm »
Hi Curt
Yes, I too think it's your *buntu, that's too old, or at least Qt5.
In that case you have to patch the API, so that it doesn't expect those symbols, with a bit of careful fiddling, that's absolutely doable  8)
Look at my example zip, it has some of them, as far as I can see, then it's just a matter of doing the rest in the same style... Remember to back up the files you touch beforehand!!!
...And ofc. you'll need writing rights in /usr/lib/lazarus/lcl/interfaces/qt5/*
Albeit - temporarily  ;D
Just take it easy, it's not that hard...
I ran Qt5 for a couple of years this way, 'cause our fearless leader in PCLinuxOS is a wee bit conservative -- It has to work! -- so I had an older Qt5 on my machines.
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE6/QT6 -> FPC Release -> Lazarus Release &  FPC Main -> Lazarus Main

Curt Carpenter

  • Hero Member
  • *****
  • Posts: 687
Re: This worries me about our current GTK2 standard
« Reply #31 on: November 15, 2025, 06:32:55 pm »
Used synaptic package manager to install llibqt5pas-dev on my Ubuntu24 64bit system this morning -- and changing an application from gtk2 to QT5 widget set worked seamlessly.   

So it seems my problem is between Ubuntu18 and the current version of libqt5pas-dev.  One more reason I really need to migrate permanently to the 64bit box I guess.

Thanks again for everyone's help. 
 


PeterBB

  • Jr. Member
  • **
  • Posts: 88
Re: This worries me about our current GTK2 standard
« Reply #32 on: November 24, 2025, 10:37:18 am »
But how long will it take for major dists like Debian/Ubuntu/Fedore/Suse/etc.. to begin thinking about retiring GTK2?

For Debian, its ongoing;
https://lists.debian.org/debian-gtk-gnome/2025/11/msg00014.html

"I think we should send a debian-devel email in December announcing
our goal for the final stage of the gtk2 removal."



Regards,
Peter

dbannon

  • Hero Member
  • *****
  • Posts: 3605
    • tomboy-ng, a rewrite of the classic Tomboy
Re: This worries me about our current GTK2 standard
« Reply #33 on: November 24, 2025, 11:46:40 am »
Yes, I reckon it was two years ago I had a msg from debian reporting a bug against my app. It was not a fatal one but a bug never the less. So I moved over to Qt5 there and then for Debian. But I still make a gtk2 package available from github for people who want it.
Davo

Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

Thaddy

  • Hero Member
  • *****
  • Posts: 18475
  • Here stood a man who saw the Elbe and jumped it.
Re: This worries me about our current GTK2 standard
« Reply #34 on: November 24, 2025, 01:58:36 pm »
Not enough people are acutely aware that gtk2 will disappear from most serious distro's or have already disappeared.
The fact that in ubuntu 24 you can still do this:
Code: Bash  [Select][+][-]
  1. sudo nano /etc/gdm3/custom.conf
  2. #uncomment #WaylandEnable=false
  3. WaylandEnable=false
save and reboot. Will certainly disappear.

The above gives you full X, not xwayland. Expects Gnome.
« Last Edit: November 24, 2025, 02:04:14 pm by Thaddy »
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.

dbannon

  • Hero Member
  • *****
  • Posts: 3605
    • tomboy-ng, a rewrite of the classic Tomboy
Re: This worries me about our current GTK2 standard
« Reply #35 on: November 25, 2025, 12:24:28 pm »
Not enough people are acutely aware that gtk2 will disappear from most serious distro's or have already disappeared.
That is definitely true. But the necessary libraries will remain in repos for some time. So, they can be installed, but over time, will probably become unreliable because no one is bothering to test. Try running a gtk(1) app if you can find one.

And, because of the mad race to get rid of gtk2, its a bad look to have your flagship product shipped with gtk2. Lazarus, for example. But if the Lazarus Devs change the downloadable binary to, say, Qt5, all those "long term" distros won't have a suitable libqt5pas in their repo. Oh !



Quote
WaylandEnable=false
I am not sure what that means. Its still available in U2410 but as far as I can see does nothing. gtk2 apps seem to run in that mode exactly the same as they do otherwise. Same bugs in poweroff for example. On my working laptop, running Mate (and therefore lightdm) there is no option to disable (or, of course, enable) Wayland.

gtk2 is on its way out. Wayland is on its way in. Both events are inevitable but generally unrelated IMHO ??

Davo

Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

Thaddy

  • Hero Member
  • *****
  • Posts: 18475
  • Here stood a man who saw the Elbe and jumped it.
Re: This worries me about our current GTK2 standard
« Reply #36 on: November 25, 2025, 12:58:30 pm »
Well,partly agree, but choose Qt6 and don't be surprised if GTK2 is NOT in future distro's because it is unmaintained. That is my worry.
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.

zeljko

  • Hero Member
  • *****
  • Posts: 1810
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: This worries me about our current GTK2 standard
« Reply #37 on: November 25, 2025, 08:29:52 pm »
Used synaptic package manager to install llibqt5pas-dev on my Ubuntu24 64bit system this morning -- and changing an application from gtk2 to QT5 widget set worked seamlessly.   

So it seems my problem is between Ubuntu18 and the current version of libqt5pas-dev.  One more reason I really need to migrate permanently to the 64bit box I guess.

Thanks again for everyone's help.

If you cannot find adequate libqt5pas for your ubuntu 18, you can use qt4 (qt widgetset) which should work oob with older distros. Qt ws is still maintained by me in lazarus.

Curt Carpenter

  • Hero Member
  • *****
  • Posts: 687
Re: This worries me about our current GTK2 standard
« Reply #38 on: November 25, 2025, 11:29:09 pm »
Thanks -- I will check that out.  I've started to seriously transfer my projects to the 64bit system now, so it may be a while before I try it.

 

TinyPortal © 2005-2018