Hi,
We are trying to run an application (Electron) that uses the library gtk+3 on the iMX8MMini on Yocto 4.14.78. We are getting an error “undefined symbol: gdk_x11_display_get_xdisplay”. This application runs OK on the iMX8MQ running the same OS version, but is throwing that error on the Mini.
Comparing the library dependencies for the library gtk+3 using the command “ldd /usr/lib/libgtk-3.so.0” on both the MQ and the Mini, we can see that the libgtk-3.0 library on the Mini has a much smaller dependencies list compared to the one on the MQ (attached images). Specifically, all the X11 backend was not included in the libgtk-3.so.0 on the IMX8MM.
Examining the run.do_configure file in the gtk+3 in the build folder, I notice that the the MQ version contains the flag "--enable-x11-backend" while the MM version contains the flag "--disable-x11-backend".
In the meta-freescale/recipes-graphics/gtk+ folder, we see a gtk+3.append file that contains the following:
DEPENDS_append_imxgpu2d = " virtual/egl"
PACKAGECONFIG_remove_imxgpu2d = " \
${@bb.utils.contains("DISTRO_FEATURES", "wayland", "x11", "", d)} \
"
Can you please explain why all the X11 backend was included for the IMX8MQ and not IMX8MM? If this cannot be enabled, please suggest any solutions for this.
Thanks,
Quang