Recent

Author Topic: qt5: can't install trunk lazarus  (Read 1480 times)

zoltanleo

  • Sr. Member
  • ****
  • Posts: 499
qt5: can't install trunk lazarus
« on: October 08, 2024, 05:41:07 pm »
Hi all

I try install trunk fpc/lazarus on OpenSuse 15 x64 by FpcupDeluxe with qt5 framework

Code: Pascal  [Select][+][-]
  1. fpc hash: e91c8040eaaf56e3e6e85edebba4cea98407289f
  2. laz hash: 8b9b6cd85d28fa7ef10f1952179dacdeb2fda5ba

I get error:
Code: Pascal  [Select][+][-]
  1. Start of compile error summary.
  2. /home/leyba/lazarus/laz_qt5/lazarus/ide/lazarus.pp(170,1) Error: (9013) Error while linking
  3. Start of compile error summary.
  4. /home/leyba/lazarus/laz_qt5/lazarus/ide/lazarus.pp(170,1) Fatal: (10026) There were 1 errors compiling module, stopping
  5. /home/leyba/lazarus/laz_qt5/lazarus/ide/lazarus.pp(170,1) Error: (9013) Error while linking
  6. Start of compile error summary.
  7. Fatal: (1018) Compilation aborted
  8. make: *** [Makefile:3120: ide] ?????? 2
  9. Start of compile error summary.
  10. Error: /home/leyba/lazarus/laz_qt5/fpc/bin/x86_64-linux/ppcx64 returned an error exitcode
  11. Start of compile error summary.
  12. Error: (lazarus) Build IDE: stopped with exit code 2
  13. Start of compile error summary.
  14. Error: (lazbuild) Building IDE: Building IDE failed
  15. Start of compile error summary.
  16. ERROR: Lazarus Native Installer (BuildModuleCustom: UserIDE): lazbuild returned error code 51

Can anyone explain why I'm getting this error?
Win10 LTSC x64/Deb 12 amd64(gtk2)/Kubuntu(qt5)/Darwin Cocoa (Sonoma):
Lazarus x32_64 (trunk); FPC(trunk), FireBird 3.0.11; IBX by TonyW

Sorry for my bad English, I'm using translator ;)

cdbc

  • Hero Member
  • *****
  • Posts: 1656
    • http://www.cdbc.dk
Re: qt5: can't install trunk lazarus
« Reply #1 on: October 08, 2024, 06:14:09 pm »
Hi
I just installed yesterday, and found out that my 'libqt5pas.so' was too old, so I had to compile a new, from the bindings in '.../qt5/c-bindings/*
Maybe you have the same problem?!?
After that, it compiled just fine....
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6 up until Jan 2024 from then on it's: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 3.0

zoltanleo

  • Sr. Member
  • ****
  • Posts: 499
Re: qt5: can't install trunk lazarus
« Reply #2 on: October 08, 2024, 09:20:47 pm »
Hi
I just installed yesterday, and found out that my 'libqt5pas.so' was too old, so I had to compile a new, from the bindings in '.../qt5/c-bindings/*
Maybe you have the same problem?!?
After that, it compiled just fine....
Regards Benny
Hi Benny

Thank U for answer. I had a desire to build lib Qt5 on my own.  I was doubtful because I recently built qt lazarus with "old" libraries successfully. It is a pity that dbannon stopped collecting packages from qt5
Win10 LTSC x64/Deb 12 amd64(gtk2)/Kubuntu(qt5)/Darwin Cocoa (Sonoma):
Lazarus x32_64 (trunk); FPC(trunk), FireBird 3.0.11; IBX by TonyW

Sorry for my bad English, I'm using translator ;)

cdbc

  • Hero Member
  • *****
  • Posts: 1656
    • http://www.cdbc.dk
Re: qt5: can't install trunk lazarus
« Reply #3 on: October 08, 2024, 10:07:59 pm »
Hi
I've tried to upload the new one I have to my GitLab account, had a misc repo doing nothing...
You can try that if you like...
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6 up until Jan 2024 from then on it's: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 3.0

cdbc

  • Hero Member
  • *****
  • Posts: 1656
    • http://www.cdbc.dk
Re: qt5: can't install trunk lazarus
« Reply #4 on: October 08, 2024, 10:26:26 pm »
Hi
Remember the links, see attached screenshot...
There must be 3 symlinks to the library.
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6 up until Jan 2024 from then on it's: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 3.0

vfclists

  • Hero Member
  • *****
  • Posts: 1146
    • HowTos Considered Harmful?
Re: qt5: can't install trunk lazarus
« Reply #5 on: October 09, 2024, 05:09:52 am »
Hi
Remember the links, see attached screenshot...
There must be 3 symlinks to the library.
Regards Benny

What desktop and window manager is that?
Lazarus 3.0/FPC 3.2.2

cdbc

  • Hero Member
  • *****
  • Posts: 1656
    • http://www.cdbc.dk
Re: qt5: can't install trunk lazarus
« Reply #6 on: October 09, 2024, 05:41:22 am »
Hi
KWin -> KDE -> Breeze Dark -> Oxygen
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6 up until Jan 2024 from then on it's: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 3.0

dbannon

  • Hero Member
  • *****
  • Posts: 3156
    • tomboy-ng, a rewrite of the classic Tomboy
Re: qt5: can't install trunk lazarus
« Reply #7 on: October 09, 2024, 12:36:37 pm »
..... It is a pity that dbannon stopped collecting packages from qt5

Kek ??  I believe that both my Qt5 and Qt6 packages are up to date ?  Is there a problem ??



Ubuntu 24.04 and Debian Trixie have up to date Qt5 libraries. And, joy of joy, Debian have responded very favorably to a suggestion that its time they had Qt6 in there too.

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

zoltanleo

  • Sr. Member
  • ****
  • Posts: 499
Re: qt5: can't install trunk lazarus
« Reply #8 on: October 09, 2024, 05:03:14 pm »
..... It is a pity that dbannon stopped collecting packages from qt5

Kek ??  I believe that both my Qt5 and Qt6 packages are up to date ?  Is there a problem ??



Ubuntu 24.04 and Debian Trixie have up to date Qt5 libraries. And, joy of joy, Debian have responded very favorably to a suggestion that its time they had Qt6 in there too.

Davo

Hi, Davo

I didn't mean to offend you. I assumed that you probably lost interest in the qt5 branch because the latest release is marked as released in 2023. I hesitated to install these packages because I decided that the libraries had changed. As Benny wrote above.

As a result: on debian, I compiled the qt5 libraries again and still built lazarus.

But I was unable to install packages from qmake on openSUSE 15 on my own, so the question remains open. I will try to build libraries according to your instructions
Win10 LTSC x64/Deb 12 amd64(gtk2)/Kubuntu(qt5)/Darwin Cocoa (Sonoma):
Lazarus x32_64 (trunk); FPC(trunk), FireBird 3.0.11; IBX by TonyW

Sorry for my bad English, I'm using translator ;)

dbannon

  • Hero Member
  • *****
  • Posts: 3156
    • tomboy-ng, a rewrite of the classic Tomboy
Re: qt5: can't install trunk lazarus
« Reply #9 on: October 10, 2024, 12:44:21 am »

I didn't mean to offend you. I assumed that you probably lost interest in the qt5 branch because the latest release is marked as released in 2023. I hesitated to install these packages because I decided that the libraries had changed. As Benny wrote above.
Absolutely no offense taken !  The qt5 libraries are up to date. I have a script running on Github that watches the version numbers and alerts me if they change. The Qt5 one is still on 1.2.15.

zeljko sometimes changes the binding but that does not always require a library rebuild. When he makes a change that needs new libraries, he rev'es the version number.


Quote

As a result: on debian, I compiled the qt5 libraries again and still built lazarus.

But I was unable to install packages from qmake on openSUSE 15 on my own, so the question remains open. I will try to build libraries according to your instructions

If you built (a qt5) Lazarus, you must have the libraries in place already ?  Just what goes wrong when you try to install the Libraries ?  I don't remember which OS Z assumes with the qmake script, unfortunately, different linux systems put libraries in different places. Please check that the target directory actually exists (and, of course, it needs to be done as root).

The rpm libraries (from github) should install OK on OpenSUSE but you do need to copy the key from my repo into your system, instruction on the githup site. I don't test OpenSUSE as often as I should, not my favorite OS !

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

vfclists

  • Hero Member
  • *****
  • Posts: 1146
    • HowTos Considered Harmful?
Re: qt5: can't install trunk lazarus
« Reply #10 on: October 10, 2024, 03:51:53 am »
I tried to install the 6.2.8 version on my Bullseye system but I think it is too new.

Which version of libQt6Pas works on Debian 11 Bullseye?
« Last Edit: October 10, 2024, 02:28:02 pm by vfclists »
Lazarus 3.0/FPC 3.2.2

dbannon

  • Hero Member
  • *****
  • Posts: 3156
    • tomboy-ng, a rewrite of the classic Tomboy
Re: qt5: can't install trunk lazarus
« Reply #11 on: October 10, 2024, 11:58:56 am »
Which version of libQt6Pas works on Debian 11 Bullseye?

There is only one major version of libqt6pas, all releases (0..8 ) require the same minimum Qt6 libraries.

Firstly, what, if any version of Qt6 is available for Bullseye ? The Debian package website is not talking to me at present. You can build your own but its not for the faint hearted.

edit: bullseye does not have a repo available Qt6.

Ubuntu 20.04, about the same age as Bullseye, was NOT suitable. There is/was a PPA that that worked however.

From memory, Z chose the "6.2.8" style version number because it was originally based on Qt6 6.2. But I'd need to look that up to be honest.

Davo
« Last Edit: October 10, 2024, 12:17:27 pm by dbannon »
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

zoltanleo

  • Sr. Member
  • ****
  • Posts: 499
Re: qt5: can't install trunk lazarus
« Reply #12 on: October 11, 2024, 07:38:58 am »
I installed Fedora KDE 40 for experimentation. It uses the Qt6 framework. I built the libraries myself using qmake
Code: Pascal  [Select][+][-]
  1. ln -s libQt6Pas.so.6.2.8 libQt6Pas.so
  2. ln -s libQt6Pas.so.6.2.8 libQt6Pas.so.6
  3. ln -s libQt6Pas.so.6.2.8 libQt6Pas.so.6.2

and installed them

Code: Pascal  [Select][+][-]
  1. $ sudo make install
  2. [sudo] password for leyba:
  3. /usr/bin/qmake -install qinstall -exe libQt6Pas.so.6.2.8 /usr/lib64/libQt6Pas.so.6.2.8
  4. strip --strip-unneeded /usr/lib64/libQt6Pas.so.6.2.8
  5. ln -f -s libQt6Pas.so.6.2.8 /usr/lib64/libQt6Pas.so
  6. ln -f -s libQt6Pas.so.6.2.8 /usr/lib64/libQt6Pas.so.6
  7. ln -f -s libQt6Pas.so.6.2.8 /usr/lib64/libQt6Pas.so.6.2

then I tried to build lazarus in the terminal, but got the error
Code: Pascal  [Select][+][-]
  1. export PATH="$PATH:/home/leyba/lazarus/laz_qt/fpc/bin/x86_64-linux/"
  2. cd/home/leyba/lazarus/laz_qt/lazarus
  3.  
  4. make bigide LCL_PLATFORM=qt6
  5. make -C packager/registration
  6. make[1]: Entering directory '/home/leyba/lazarus/laz_qt/lazarus/packager/registration'
  7. /usr/bin/rm -f ../units/x86_64-linux/fcllaz.ppu
  8. /home/leyba/lazarus/laz_qt/fpc/bin/x86_64-linux/ppcx64 -MObjFPC -Scghi -O1 -g -gl -l -vewnhibq -Fu. -FE. -FU../units/x86_64-linux -Cg -Fl/usr/lib/gcc/x86_64-redhat-linux/14 -dx86_64 fcllaz.pas
  9. Free Pascal Compiler version 3.3.1-16634-ge7cf7538cd [2024/10/09] for x86_64
  10. Copyright (c) 1993-2024 by Florian Klaempfl and others
  11. (1002) Target OS: Linux for x86-64
  12. (3104) Compiling fcllaz.pas
  13. Fatal: (10022) Can't find unit system used by fcllaz
  14. Fatal: (1018) Compilation aborted
  15. make[1]: *** [Makefile:3453: fcllaz.ppu] Error 1
  16. make[1]: Leaving directory '/home/leyba/lazarus/laz_qt/lazarus/packager/registration'
  17. make: *** [Makefile:3102: registration] Error 2

I can't figure out what the reason is yet. :o
Win10 LTSC x64/Deb 12 amd64(gtk2)/Kubuntu(qt5)/Darwin Cocoa (Sonoma):
Lazarus x32_64 (trunk); FPC(trunk), FireBird 3.0.11; IBX by TonyW

Sorry for my bad English, I'm using translator ;)

dbannon

  • Hero Member
  • *****
  • Posts: 3156
    • tomboy-ng, a rewrite of the classic Tomboy
Re: qt5: can't install trunk lazarus
« Reply #13 on: October 11, 2024, 08:14:20 am »
Worked fine for me on Debian Bookworm.

Code: [Select]
$> make bigide LCL_PLATFORM=qt6
Maybe you need to test if you can build a gtk2 version there ?

By the way, you do NOT need to be running a Qt6 IDE to build Qt6 apps.  I tend to build a gtk2 IDE just because it needs one less command line parameter !

In you project, open ProjectOptions->Additions&Overrides and select Add WidgetType.  You almost certainly need several build modes anyway ....

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

TRon

  • Hero Member
  • *****
  • Posts: 3623
Re: qt5: can't install trunk lazarus
« Reply #14 on: October 11, 2024, 08:21:02 am »
Code: [Select]
export PATH="$PATH:/home/leyba/lazarus/laz_qt/fpc/bin/x86_64-linux/"
That already tells me something is off.

What fpc,cfg file is your compiler using ? The make option OPT="your fpc options" allows to provide the compiler options f.e. -vt or -va to get a better understanding of what the compiler is actually doing.

For sure the compiler is not configured correctly, and it shows that by telling that it is unable to find the system unit.
This tagline is powered by AI (AI advertisement: Free Pascal the only programming language that matters)

 

TinyPortal © 2005-2018