Recent

Author Topic: Compiling Qt6 project on Linux Mint 20 (Ubuntu 20.04)  (Read 4287 times)

Thaddy

  • Hero Member
  • *****
  • Posts: 19398
  • Glad to be alive.
Re: Compiling Qt6 project on Linux Mint 20 (Ubuntu 20.04)
« Reply #15 on: June 19, 2026, 10:49:39 am »
It is not obsolete, but Qt6 is a bit more stable, at least to me. It is an observation/opinion, not a fact.
This opinion is merely reached by all Wayland issues all over the forum.
(Half of which caused by not understanding Wayland)
« Last Edit: June 19, 2026, 10:55:14 am by Thaddy »
objects are fine constructs. You can even initialize them with constructors.

robert rozee

  • Sr. Member
  • ****
  • Posts: 400
Re: Compiling Qt6 project on Linux Mint 20 (Ubuntu 20.04)
« Reply #16 on: June 19, 2026, 04:46:44 pm »
I wish the Lazarus Project options Compile screen just had the choices (regardless of the Lazarus Project and Ubuntu versions):

Code: Text  [Select][+][-]
  1. Make compatible with:
  2.     [x] Glibc_2.31  [ ] Glibc_2.34  [ ] ....
  3.     [x] libQt5pas 1.2.6  [ ] libQt5pas 1.2.8 .....
  4.     [ ] libQt6pas ....

I suppose it all relies on too many system files for that to be possible though.

Yes, I agree its less than desirable !  With the GLib issue Its the same with other development platforms and, apparently, no one else has come up with a better solution. A small team here tried very hard to find a general solution but it seemed too complicated to me, search the forum.


since someone else has conveniently resurrected this thread... see here:
https://forum.lazarus.freepascal.org/index.php/topic,64731.0.html

"attached is a patch for FPC 3.2.2 [...] to enforce glibc BASE symbol versioning. this is 'yet another approach', where the compiler itself is patched to substitute BASE versioned glibc symbols for unversioned glibc symbols."

the patch is extremely simple, and there is no good reason why it should not be included in the .deb distributions of FPC for Linux. it completely solves the glibc symbol versioning problem. once applied to FPC, it can then be used to create a version of the Lazarus IDE's elf binary that is glibc symbol version agnostic.

i created this patch around 2 and a half years ago, and yet still the muppets in charge have not rolled it out   >:(


cheers,
rob   :-)
« Last Edit: June 19, 2026, 04:49:48 pm by robert rozee »

Thaddy

  • Hero Member
  • *****
  • Posts: 19398
  • Glad to be alive.
Re: Compiling Qt6 project on Linux Mint 20 (Ubuntu 20.04)
« Reply #17 on: June 19, 2026, 08:31:28 pm »
i created this patch around 2 and a half years ago, and yet still the muppets in charge have not rolled it out   >:(
Then create a patch that works and with tests. Those are usually accepted, even without discusson (I know, had to learn that too)
You did not do either, so don't complain. >:(

Wallace and Gromit.
« Last Edit: June 19, 2026, 08:36:51 pm by Thaddy »
objects are fine constructs. You can even initialize them with constructors.

Fred vS

  • Hero Member
  • *****
  • Posts: 3952
    • StrumPract is the musicians best friend
Re: Compiling Qt6 project on Linux Mint 20 (Ubuntu 20.04)
« Reply #18 on: June 19, 2026, 08:35:45 pm »
the patch is extremely simple, and there is no good reason why it should not be included in the .deb distributions of FPC for Linux. it completely solves the glibc symbol versioning problem. once applied to FPC, it can then be used to create a version of the Lazarus IDE's elf binary that is glibc symbol version agnostic.

i created this patch around 2 and a half years ago, and yet still the muppets in charge have not rolled it out   >:(


And if people dont want to apply your patch, you may use fpc-ootb.
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

Thaddy

  • Hero Member
  • *****
  • Posts: 19398
  • Glad to be alive.
Re: Compiling Qt6 project on Linux Mint 20 (Ubuntu 20.04)
« Reply #19 on: June 19, 2026, 08:38:25 pm »
(The patch was bad Fred. Not your fault, nor mine)
objects are fine constructs. You can even initialize them with constructors.

Fred vS

  • Hero Member
  • *****
  • Posts: 3952
    • StrumPract is the musicians best friend
Re: Compiling Qt6 project on Linux Mint 20 (Ubuntu 20.04)
« Reply #20 on: June 19, 2026, 08:46:53 pm »
(The patch was bad Fred. Not your fault, nor mine)

fpc-ootb does not use Rob's fix; it directly assigns the correct version of the glibc symbols used by fpc since its inception to each unit using glibc.

Furthermore, it has been thoroughly tested on both older and newer operating systems.
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: 400
Re: Compiling Qt6 project on Linux Mint 20 (Ubuntu 20.04)
« Reply #21 on: June 20, 2026, 02:06:05 am »
The patch was bad Fred. Not your fault, nor mine

Thaddy: the patch is just a few lines of code, nothing complicated. are you capable of coming up with a better solution?

yes - i am putting this forward as a challenge. show us how you would do it, if you indeed can.


rob.
« Last Edit: June 20, 2026, 02:07:47 am by robert rozee »

Thaddy

  • Hero Member
  • *****
  • Posts: 19398
  • Glad to be alive.
Re: Compiling Qt6 project on Linux Mint 20 (Ubuntu 20.04)
« Reply #22 on: June 20, 2026, 12:15:05 pm »
@robert rozee

I have over 80% commit rate of my suggested contributions to compiler and rtl. I don't have to prove myself.
They are small, but quite a few over the years.

If you suggest a Qt6 patch, just ask, but I won't do any work on a deprecated GTK2.
« Last Edit: June 20, 2026, 12:19:41 pm by Thaddy »
objects are fine constructs. You can even initialize them with constructors.

robert rozee

  • Sr. Member
  • ****
  • Posts: 400
Re: Compiling Qt6 project on Linux Mint 20 (Ubuntu 20.04)
« Reply #23 on: June 20, 2026, 12:35:03 pm »
I have over 80% commit rate of my suggested contributions to compiler and rtl. I don't have to prove myself.
[...]
If you suggest a Qt6 patch, just ask, but I won't do any work on a deprecated GTK2.

Thaddy: the patch, applied to FPC, is to enforce glibc BASE symbol versioning, the fact that this (or some variation thereof) is needed to get Qt6 over the line is secondary.

from your response i assume that you lack the ability to create the same functionality yourself; as i said before, the patch is quite short and straightforward. before you go claiming "the patch was bad", you need to be able to (a) provide evidence as to why it is 'bad', and (b) provide a 'non-bad' alternative.


rob.
« Last Edit: June 20, 2026, 01:49:50 pm by robert rozee »

 

TinyPortal © 2005-2018