I’m trying to add Xwayland to torizon-minimal, t the moment, I can successfully compile and run Weston without XWayland. I previously performed this integration with Colibri. However, when attempting to follow the same procedure with Verdín, it fails to compile cairo (I’m adding the error messages). It’s worth noting that it only fails when adding x11 to DISTRO_FEATURES.
Could you please assist me in figuring out the issue?
Hi!
It seems some GLX symbols are missing, which makes sense as it’s explicitly removed from NXP’s BSP (refer to meta-freescale/recipes-graphics/xwayland/xwayland_%.bbappend).
Can I ask what are the exact modifications you’re introducing to the distro? It should be something similar as it’s done in meta-toradex-distro/conf/distro/tdx-xwayland.conf.
As you mentioned, the modifications made to the distribution involve two aspects. First, in meta-toradex-torizon/conf/distro/torizon.conf
which ends up being very similar to tdx-xwayland.conf.
In meta-toradex-torizon/conf/distro/include/torizon.conf , only the following was modified:
DISTRO_FEATURES:append = " virtualizationstateless-system opengl vulkan ldconfig wayland x11 alsa"
DISTRO_FEATURES:remove = " 3g irda pcmcia nfc ptest multiarch pulseaudio"
#DISTRO_FEATURES:imx-generic-bsp:remove = "opengl"
# No need for x11 even for native
#DISTRO_FEATURES_NATIVE:imx-generic-bsp:remove = "x11"
#DISTRO_FEATURES_NATIVESDK:imx-generic-bsp:remove = "x11"
Please comment this line and let me know if it works for you (I just tried the build with the exact same configurations you provided above, which are correct).
We’ll also review that .inc file to better support this use-case.