Recent

Author Topic: [SOLVED] QT5 with latest Lazarus has undefined references  (Read 12880 times)

dbannon

  • Hero Member
  • *****
  • Posts: 2778
    • tomboy-ng, a rewrite of the classic Tomboy
Re: QT5 with latest Lazarus has undefined references
« Reply #30 on: April 14, 2021, 02:37:09 am »
For the record, zeljko has added a define in qtdefines.inc that, by default, disables this set of features.

It would be great if we could make this feature usable long term.

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

MarkMLl

  • Hero Member
  • *****
  • Posts: 6646
Re: QT5 with latest Lazarus has undefined references
« Reply #31 on: April 14, 2021, 09:42:21 am »
Trunk revision 64989 builds OK for Qt5 on the same test system that I was using earlier.

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

ChrisR

  • Full Member
  • ***
  • Posts: 247
Re: [SOLVED] QT5 with latest Lazarus has undefined references
« Reply #32 on: April 14, 2021, 03:11:58 pm »
Thanks dbannon and zeljko for solving this. Thanks to your help, QT5 is my default Lazarus Linux widgetset.

prof7bit

  • Full Member
  • ***
  • Posts: 161
Re: [SOLVED] QT5 with latest Lazarus has undefined references
« Reply #33 on: March 02, 2022, 09:01:36 am »
Today I'm getting an undefined reference again:

"lazarus undefined reference to `QGuiApplication_setFallbackSessionManagementEnabled'"


And this time it happens in the 2.2 fixes branch. I could previously build Lazarus release 2.2 and the subsequent 2.2-fixes without any problems until maybe a week or two ago (last time I tried and have not yet bisected the exact revision). In fact this is the first time ever since using Lazarus (since the early 0.9 days) that the distro supplied stable version of libqtpas is not bleeding edge enough to build stable lazarus, and not even with trunk I have ever experienced this.

May I suggest that we finally move libqt5pas into the Lazarus source tree (where the other qt5 widgetset code is living), maintain it ourselves and build it along with Lazarus?

PascalDragon

  • Hero Member
  • *****
  • Posts: 5444
  • Compiler Developer
Re: [SOLVED] QT5 with latest Lazarus has undefined references
« Reply #34 on: March 02, 2022, 09:14:58 am »
May I suggest that we finally move libqt5pas into the Lazarus source tree (where the other qt5 widgetset code is living), maintain it ourselves and build it along with Lazarus?

No, because this requires the presence of the Qt build system (GCC, cmake, etc.) as a dependency. Also when installing a Qt-based FPC application that library needs to be installable independent of Lazarus.

MarkMLl

  • Hero Member
  • *****
  • Posts: 6646
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

prof7bit

  • Full Member
  • ***
  • Posts: 161
Re: [SOLVED] QT5 with latest Lazarus has undefined references
« Reply #36 on: March 02, 2022, 09:35:25 am »
The breaking change happened in revision bd30173

Inside the 2.2 fixes branch!

It was to "fix" some obscure issue happening only on Manjaro-KDE (a bleeding edge experimental distribution that breaks at least once a week on its own because it is riding the bleeding tip of the KDE dev branch)

From the above revision onwards (after sideloading a newer qt5pas on my stable Ubuntu dev machine) I will no longer be able install any of my Lazarus created binaries on any of our 12 production machines downstairs (also Ubuntu LTS).

I'm now stuck at revision 201880a, the last one working on Ubuntu :-(

This should not happen in a fixes branch. I would not say anything if it happened in the main/trunk branch, but not in fixes.

« Last Edit: March 02, 2022, 09:40:19 am by prof7bit »

Templar

  • Newbie
  • Posts: 1
Re: [SOLVED] QT5 with latest Lazarus has undefined references
« Reply #37 on: September 19, 2022, 05:33:39 am »
also Ubuntu LTS

I tried .deb packages from https://launchpad.net/ubuntu/+source/libqtpas, version "2.6+2.2.0+dfsg1-3" for The Kinetic Kudu with my Kubuntu 22.04 (LTS), and it worked.

MarkMLl

  • Hero Member
  • *****
  • Posts: 6646
Re: [SOLVED] QT5 with latest Lazarus has undefined references
« Reply #38 on: September 19, 2022, 08:51:27 am »
Thanks for the confirmation, and welcome to the forum :-)

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

MitjaStachowiak

  • Newbie
  • Posts: 1
Re: [SOLVED] QT5 with latest Lazarus has undefined references
« Reply #39 on: October 06, 2022, 04:22:17 pm »
For solving the error with setFallbackSessionManagementEnabled, I just removed this procedure from lazarus/lcl/interfaces/qt5/qt56.pas

It is used in just one place in Lazarus, where it then can be removed, too. I think, this method is somehow deprecated > https://forum.qt.io/topic/125035/what-is-was-qguiapplication-setfallbacksessionmanagementenabled

zeljko

  • Hero Member
  • *****
  • Posts: 1591
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: [SOLVED] QT5 with latest Lazarus has undefined references
« Reply #40 on: October 10, 2022, 09:02:36 pm »
It's not deprecated for qt5, only qt6.

 

TinyPortal © 2005-2018