Thanks a lot to zeljko and cdbc for trying to help me.
You have old libQt5Pas
That seems to be the important point. But which version do I need? And
which version do I have? Synaptic says, I have (see attached packages.png):
- libqt5pas-dev: Installed Version = 2.6+2.0.8+dfsg-2
- libqt5pas1: Installed Version = 2.6+2.0.8+dfsg-2
I see there 2 different versions: 2.6 and 2.0.8 ???
But when I run these commands:
hg6@i3300:~$ cd /usr/lib/x86_64-linux-gnu
hg6@i3300:/usr/lib/x86_64-linux-gnu$ ls -al libQt5Pas.so*
lrwxrwxrwx 1 root root 18 Aug 15 2020 libQt5Pas.so -> libQt5Pas.so.1.2.6
lrwxrwxrwx 1 root root 18 Aug 15 2020 libQt5Pas.so.1 -> libQt5Pas.so.1.2.6
lrwxrwxrwx 1 root root 18 Aug 15 2020 libQt5Pas.so.1.2 -> libQt5Pas.so.1.2.6
-rw-r--r-- 1 root root 2717928 Aug 15 2020 libQt5Pas.so.1.2.6
hg6@i3300:/usr/lib/x86_64-linux-gnu$
I see a 3rd version "1.2.6" ??? Which version do I have really?
And which version would I need? This depends on the used Lazarus version?
- which version would I need for Lazarus 2.0.10 and FPC 3.2.0?
- which version would I need for Lazarus 2.2.4 and FPC 3.2.2?
- which version would I need for Lazarus 3.4 and FPC 3.2.2?
You can build your own see: "/opt/lazarus_340/lazarus/lcl/interfaces/qt5/cbindings/"
I have never done something similar. I read the instructions in "/opt/lazarus_340/lazarus/lcl/interfaces/qt5/cbindings/README.TXT" twice, but did not understand what to do. I want to avoid that direction.
... or use the unofficial https://github.com/davidbannon/libqt5pas/releases/latest
I read the informations in this link twice. My experience with installing something other than via Synaptic or "sudo apt install <package>" is near zero. But with enough help I can imagine to manage this, if there is no easier way (see "Conclusion" below).
edit: Regarding "undefined reference to `QTimer_singleShot3'", the below code in 'qtobjects.pas' will remedy that:
Thank you for this patch. But there was a 2nd error with Lazarus 3.4:
qtobject.inc(44,0) Error: linker: undefined reference to `QGuiApplication_setFallbackSessionManagementEnabled'and without fixing this too I think I could not use Lazarus version 3.4. I want to avoid that direction too.
Conclusion:For me as a beginner to all this stuff it would be the easiest, to keep my version of libQt5Pas and to use/install an appropriate Lazarus version. Please which Lazarus version(s) is/are suitable for my version of libQt5Pas? Thanks a lot.