Forum > Linux

[SOLVED] IDE cannot be built using QT6 with an FpcUpDeluxe install; Linker error

(1/3) > >>

dsiders:
Using:

* Operating System: openSUSE Tumbleweed 20241218
* KDE Plasma Version: 6.2.4
* KDE Frameworks Version: 6.9.0
* Qt Version: 6.8.1
* Graphics Platform: X11
* Lazarus 4.99 (rev main_4_99-652-gd9c3191562) FPC 3.2.2 x86_64-linux-gtk2 installed using FpcUpDeluxe 2.4.0e (today)
I cannot rebuild the IDE for the QT6 widgetset. GTK2 works fine. Previous installs using FpcUpDeluxe have worked since last March.

I notice during install with FpcUpDeluxe the log message about 'QT6 chicanery'. I also noticed the 2 file that have not been present in previous versionjs: libQt6Pas.so and libQt6Pas.so.6.

make bigide error is:


--- Code: Bash  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---(9015) Linking ../lazarus/usr/bin/ld: /lib64//libQt6Pas.so: undefined reference to `QString::isSimpleText() const@Qt_6/home/don/lazarus/lazarus/ide/lazarus.pp(170,1) Error: (9013) Error while linking/home/don/lazarus/lazarus/ide/lazarus.pp(170,1) Fatal: (10026) There were 1 errors compiling module, stoppingFatal: (1018) Compilation abortedError: /home/don/lazarus/fpc/bin/x86_64-linux/ppcx64 returned an error exitcodemake[2]: *** [Makefile:4399: lazarus] Error 1make[2]: Leaving directory '/home/don/lazarus/lazarus/ide'make[1]: *** [Makefile:4844: bigide] Error 2make[1]: Leaving directory '/home/don/lazarus/lazarus/ide'make: *** [Makefile:3133: idebig] Error 2 
So it seems the provided libQt6Pas files aren't compatible with Qt 6.8.1. But I'm no Linux expert, so I'm most likely wrong.

Any suggestions?

zeljko:
QString::isSimpleText() does not exist in Qt6 cbindings, also it does not exist in Qt6 library, so I guess that you have old sources to build libQt6Pas or mismatched sources of cbindings with Qt5.

zeljko:
Here you are: https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/40901
That function was in qt6 cbindings by mistake, but removed 8 months ago, so, you're using old bindings.
Note: You can always build libQt6Pas from trunk lazarus, it never breaks backward compatibility.

dsiders:

--- Quote from: zeljko on December 21, 2024, 09:40:52 am ---QString::isSimpleText() does not exist in Qt6 cbindings, also it does not exist in Qt6 library, so I guess that you have old sources to build libQt6Pas or mismatched sources of cbindings with Qt5.

--- End quote ---

No I do not. I have the Lazarus sources for 4.99 as mentioned in the original post. I checked. QString::isSimpleText() does not exist in the cpp source code. I can't, however. verify what is is in the mysterious libbQt6Pas.so files distributed in FpcUpDeluxe.

dsiders:

--- Quote from: zeljko on December 21, 2024, 09:44:38 am ---Here you are: https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/40901
That function was in qt6 cbindings by mistake, but removed 8 months ago, so, you're using old bindings.
Note: You can always build libQt6Pas from trunk lazarus, it never breaks backward compatibility.

--- End quote ---

I appreciate that is has been fized. Doesn't change the fact that FpcUpDeluxe has a linker error when building the IDE.


--- Quote from: zeljko on December 21, 2024, 09:44:38 am ---Note: You can always build libQt6Pas from trunk lazarus, it never breaks backward compatibility.

--- End quote ---

Um, no I can't. I looked at the readme. Not enough info there to accomplish the task. There is no script. So, no, I can't. And even if I could, there is no indication what needs to be done with the resulting output.

I guess I' have to stop using FpcUpDeluxe if it's not reliable.

Off to try install from source rpms.

Navigation

[0] Message Index

[#] Next page

Go to full version