Recent

Author Topic: When will Linuxes have the new version of libQt5Pas?  (Read 2307 times)

AlexTP

  • Hero Member
  • *****
  • Posts: 1838
    • UVviewsoft
When will Linuxes have the new version of libQt5Pas?
« on: February 28, 2022, 09:44:47 am »
I use Lazarus latest dev version. And I got linker errors for CudaText Qt5 build - because linker cannot find newly added libQt5Pas import (added this week by Zeljko).

Error: /home/user/lazarus/lcl/interfaces//qt5/qtobject.inc:42: undefined reference to `QGuiApplication_setFallbackSessionManagementEnabled'

SUBJ?
(I use Ubuntu)
« Last Edit: March 02, 2022, 03:44:53 pm by AlexTP »

Zvoni

  • Hero Member
  • *****
  • Posts: 1255
Re: When Linuxes will have new version of libQt5Pas?
« Reply #1 on: February 28, 2022, 10:24:39 am »
Weird.....
QGuiApplication_setFallbackSessionManagementEnabled --> https://doc.qt.io/qt-5/qguiapplication.html#setFallbackSessionManagementEnabled

That said: i looked through the (available) c++-sourcecode (qguiapplication_c.h) and couldn't find it there either

EDIT: Found something:
https://code.woboq.org/qt5/qtbase/src/gui/kernel/qguiapplication.cpp.html#_ZN15QGuiApplication35setFallbackSessionManagementEnabledEb
« Last Edit: February 28, 2022, 10:30:52 am by Zvoni »
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

zeljko

  • Hero Member
  • *****
  • Posts: 1264
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: When Linuxes will have new version of libQt5Pas?
« Reply #2 on: March 01, 2022, 08:57:44 am »
IMO, distros are build only libQt5Pas with lazarus stable editions. You are using trunk, so build libQt5Pas on your own. There's no other way atm.

Thaddy

  • Hero Member
  • *****
  • Posts: 11763
Re: When Linuxes will have new version of libQt5Pas?
« Reply #3 on: March 01, 2022, 09:18:14 am »
IMO, distros are build only libQt5Pas with lazarus stable editions. You are using trunk, so build libQt5Pas on your own. There's no other way atm.
Indeed, you need to build trunk, although fpcupdeluxe makes this very easy fro beginners.
Black themes should be banned.

dbannon

  • Hero Member
  • *****
  • Posts: 2045
    • tomboy-ng, a rewrite of the classic Tomboy
Re: When Linuxes will have new version of libQt5Pas?
« Reply #4 on: March 01, 2022, 10:04:35 am »
IMO, distros are build only libQt5Pas with lazarus stable editions. You are using trunk, so build libQt5Pas on your own. There's no other way atm.

I suspect the distros would accept libqt5pas as a separate application that could have a stable release any time Zeljko indicated. That would not get it into distros already released but would reduce the time lag in some cases.

Davo
Lazarus 2, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng

dbannon

  • Hero Member
  • *****
  • Posts: 2045
    • tomboy-ng, a rewrite of the classic Tomboy
Re: When Linuxes will have new version of libQt5Pas?
« Reply #5 on: March 01, 2022, 12:06:30 pm »
OK, I have rushed out some debs and rpms for the new 1.2.10 libs.

https://github.com/davidbannon/libqt5pas/releases

I have not tested the packaging, sorry, travelling and don't have whats needed. So, someone may like to test and report back.

Davo
Lazarus 2, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng

zeljko

  • Hero Member
  • *****
  • Posts: 1264
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: When Linuxes will have new version of libQt5Pas?
« Reply #6 on: March 01, 2022, 04:29:39 pm »
Thanks @dbannon, that is one solution - packaging independent rpms and debs :)

zeljko

  • Hero Member
  • *****
  • Posts: 1264
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: When Linuxes will have new version of libQt5Pas?
« Reply #7 on: March 01, 2022, 04:30:40 pm »
Maybe adding packages link to the Qt5 widgetset wiki page would be good thing.

dbannon

  • Hero Member
  • *****
  • Posts: 2045
    • tomboy-ng, a rewrite of the classic Tomboy
Re: When Linuxes will have new version of libQt5Pas?
« Reply #8 on: March 02, 2022, 01:06:57 am »
Maybe adding packages link to the Qt5 widgetset wiki page would be good thing.

its actually mentioned there already but maybe now we will be needing it again, a bit more, I will make it a touch more prominent. I guess we will see a new Lazarus in a few months and distros like Debian will be using 1.2.9 for another two years.

Davo

Edit - updated the wiki a bit, see https://wiki.freepascal.org/Qt5_Interface
« Last Edit: March 02, 2022, 02:07:09 am by dbannon »
Lazarus 2, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng

prof7bit

  • Full Member
  • ***
  • Posts: 151
Re: When Linuxes will have new version of libQt5Pas?
« Reply #9 on: March 02, 2022, 11:57:21 am »
As long as I can remember Lazarus (even Trunk) and with it all Lazarus compiled applications have been working with the libqt4/5pas that came from the Linux distribution.

Up until yesterday I could just declare libqt5pas a normal dependency of my apps and have it installed automatically from their repository.

I would very much like to keep it that way and not introduce API breaking changes in the middle of a fixes branch.

Please revert this heavily breaking change in fixes, apply it in main only, so users can continue to deploy their applications without needing to ship their own versions of distro packages.
« Last Edit: March 02, 2022, 12:53:40 pm by prof7bit »

AlexTP

  • Hero Member
  • *****
  • Posts: 1838
    • UVviewsoft
Re: When Linuxes will have new version of libQt5Pas?
« Reply #10 on: March 02, 2022, 01:32:37 pm »
Quote
I would very much like to keep it that way and not introduce API breaking changes in the middle of a fixes branch.
Support!

MarkMLl

  • Hero Member
  • *****
  • Posts: 4693
Re: When Linuxes will have new version of libQt5Pas?
« Reply #11 on: March 02, 2022, 02:21:04 pm »
Quote
I would very much like to keep it that way and not introduce API breaking changes in the middle of a fixes branch.
Support!

Sounds reasonable to me.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

dbannon

  • Hero Member
  • *****
  • Posts: 2045
    • tomboy-ng, a rewrite of the classic Tomboy
Re: When will Linuxes have the new version of libQt5Pas?
« Reply #12 on: March 03, 2022, 12:17:15 am »
While I share concern about api changes, to be fair we must recognize that Lazarus 2.2.0 is the (stable) release version. Main/Trunk/Fixes is development.

The real issue will crop up when the next Lazarus release is in sight, will it contain this new content ?  History indicates it will. There is two parts to the new content, the code in LCL that does something new (?) and, separately, the new content that ends up in libQt5Pas. Our problem is they both arrive at the same time and most distributions have some lag time, some have quite a lot of lag time.

Concentrating on getting the libQt5Pas changes visible BEFORE the lcl changes might be more productive.

Or, as I mentioned previously, having a formal release of libQt5Pas as a standalone product, well ahead of Lazarus might help.

Davo
Lazarus 2, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng

prof7bit

  • Full Member
  • ***
  • Posts: 151
Re: When will Linuxes have the new version of libQt5Pas?
« Reply #13 on: March 03, 2022, 08:53:36 am »
While I share concern about api changes, to be fair we must recognize that Lazarus 2.2.0 is the (stable) release version. Main/Trunk/Fixes is development.
Fixes is supposed to be a stable branch, it is not supposed to receive new features or breaking changes and it is not a development branch, development happens in main, a stable branch should only contain fixes that will after some time be consolidated in a new minor version. If 2.2.0 is compatible with my system then I expect 2.2.1 to be compatible also, this is the whole point of keeping old stable branches and not do any development there.

Quote
Or, as I mentioned previously, having a formal release of libQt5Pas as a standalone product, well ahead of Lazarus might help.

It is a completely separate product, it is just not maintained by the Lazarus team but by somebody else.

As I said earlier, it is fine to make breaking changes in trunk, it would still make things harder for most people to use it, but this would be ok because the development branch is not supposed to be used for productive work, so it won't matter very much if applications created by the main branch can only be run on machines that have been prepared in a special way and not by ordinary users.

But the fixes branch is considered stable and should be suitable for production.

zeljko

  • Hero Member
  • *****
  • Posts: 1264
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: When will Linuxes have the new version of libQt5Pas?
« Reply #14 on: March 03, 2022, 09:42:09 am »
Sorry guys, you're right. I've sent an email to Maxim to revert Qt5 merges (session fallback and pixmapcache related) from fixes_2_2.

 

TinyPortal © 2005-2018