Recent

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

dbannon

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

MarkMLl

  • Hero Member
  • *****
  • Posts: 4719
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: 236
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: 151
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: 4282
  • 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: 4719
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: 151
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 »

 

TinyPortal © 2005-2018