Hi!
This is my first message on this forum, so a quick intro: I'am Adrian, software engineer currently working on CNC systems. I am used to C++ language but got recently to work with FreePascal, so I am a total newbie with Lazarus and FPC. Nice to meet you all :-)
Goal:
I am trying to port a project (some 1/2M lines) from Delphi-11 to an ARM Stm32MP1, if you are not familiar with this chip, you may just imagine some Raspberry Pi.
I managed to create simple (working) examples with both Lazarus+LAMW and Firemonkey, but their API is quite different than Delphi-11, consequently, I am trying to make some simple Linux+LCL example to work on that target platform.
Environment:
Host:
+ Windows 10 or Linux (Debian Bullseye)
+ amd64
Target:
+ Android or Linux (custom Yocto distro)
+ Wayland, with Qt5 or GTK3
+ ARM Cortex7
What I achieved so far:
I successfully installed Lazarus and the ARM tool-chain through "FpcUpdDeluxe".
The problem:
The problem that blocks me since few days is that the Linux (created with Yocto) works with Wayland, not X11. And all the LCL framework seems to work with X11, not Wayland. The link stage fails with -lX11 not found
[[See image]]
Note: I copied most .so from the target linux, because installed with FPCUpDeluxe were not of a compatible version. This is probably not 100% correct.
I tried to create a new Linux with X11, but that capability was dropped years ago. Until now, I did not managed to build that image.
Searching how to have LCL working with Wayland was not a success neither.
Could I kindly ask you for guidance on how to have LCL working with Wayland for ARM target?
TLTR;
I am looking for help to make LCL working on a wayland linux distro on ARM architecture.