Recent

Author Topic: Yocto Recipe for libQt5Pas  (Read 10281 times)

BasePointer

  • New Member
  • *
  • Posts: 17
Re: Yocto Recipe for libQt5Pas
« Reply #15 on: October 24, 2024, 11:58:53 am »
Here is the latest libqt5pas.bb (1.2.15) file for yocto (tested on scarthgap):

Code: Text  [Select][+][-]
  1. #
  2. # Build libQt5Pas
  3. #
  4.  
  5. SUMMARY = "libQt5Pas for Lazarus Applications"
  6. SECTION = "libs"
  7. LICENSE = "LGPLv3"
  8. LIC_FILES_CHKSUM = "file://COPYING.TXT;md5=0fb089d6440776fe0018324658b22403"
  9.  
  10. inherit qmake5
  11.  
  12. PV = "1.2.15+git${SRCPV}"
  13. PR = "r0"
  14.  
  15. SRCREV = "b2c682d1a61ed39160da4c497646d703de908041"
  16. SRC_URI = "git://gitlab.com/freepascal.org/lazarus/lazarus.git;branch=main"
  17. SRC_URI[sha256sum] = "e6729420f888b24026c65cbb50aed4e72c07f8a523125eac079a1c6bafd41513"
  18.  
  19. S = "${WORKDIR}/git/lcl/interfaces/qt5/cbindings"
  20.  
  21. DEPENDS += "qtbase qtx11extras"
  22. RDEPENDS_${PN} += "qtwayland libmd libgssglue zstd krb5 keyutils"
  23.  

Yocto will also add all dependencies required by a lazarus application once it is included by an image in Yocto.

dbannon

  • Hero Member
  • *****
  • Posts: 3156
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Yocto Recipe for libQt5Pas
« Reply #16 on: October 24, 2024, 12:42:39 pm »
Thanks for the good work BasePointer. Two questions -

1) Seems your solution is Wayland based ?  Have you tested things like the ability to read or write a Window's position from your programme ? Show the System Tray icon ?  Lots of others but those are easy tests.

2) Being Linux and aarch64, did you try the pre-compiled LibQt5Pas from (specifically) https://github.com/davidbannon/libqt5pas/releases/download/v1.2.15/libqt5pas_1_2_15-1_arm64.tar.gz
?
I'd expect if to work, and it does work with xcb. But would not be too shocked if it did not !

Good work there 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

BasePointer

  • New Member
  • *
  • Posts: 17
Re: Yocto Recipe for libQt5Pas
« Reply #17 on: October 26, 2024, 07:07:00 am »
Hi Davo,

Yes my embedded system uses linux kernel 6.11 with wayland, weston desktop and Qt5.15.13 libraries. I dont have any x libraries installed.
I have just checked quickly if the Form1.Left and Form1.Top are reported correctly.
And the answer is no. They are always same even I move the form. (is this a known bug?)
I have also noticed that ShowMessage() appears on a random position on the form and not getting modal.
For sure I will do more tests and let you know.

It is also good to know that you have libqt5pas binaries compiled for aarch64.
Your compiled binary also worked fine on my system.

Thank you.
BP.
« Last Edit: October 26, 2024, 07:11:49 am by BasePointer »

dbannon

  • Hero Member
  • *****
  • Posts: 3156
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Yocto Recipe for libQt5Pas
« Reply #18 on: October 26, 2024, 10:48:35 am »
I have just checked quickly if the Form1.Left and Form1.Top are reported correctly.
And the answer is no. They are always same even I move the form. (is this a known bug?)
A know Wayland bug.

Quote
I have also noticed that ShowMessage() appears on a random position on the form and not getting modal.
Does sound very Wayland-ish but I have not experienced that exact one.

Given its an embedded system, I guess your options are limited.

Hope it all works out !

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

zeljko

  • Hero Member
  • *****
  • Posts: 1653
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Yocto Recipe for libQt5Pas
« Reply #19 on: October 26, 2024, 02:17:03 pm »
It's not wayland bug, but detail implementation. There's no wayland protokol to move window programatically. Bit scary, but it is so :)

dbannon

  • Hero Member
  • *****
  • Posts: 3156
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Yocto Recipe for libQt5Pas
« Reply #20 on: October 28, 2024, 11:32:08 pm »
It's not wayland bug, but detail implementation. There's no wayland protokol to move window programatically. Bit scary, but it is so :)

Yes, but that is just because they have not added it yet isn't ? Surly its going to be added some time in the future (to the protocol, to the implementation) ? (I desperately hope so.)

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

zeljko

  • Hero Member
  • *****
  • Posts: 1653
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Yocto Recipe for libQt5Pas
« Reply #21 on: October 29, 2024, 07:27:12 am »
I hope so  :)

 

TinyPortal © 2005-2018