Saturday, 2024-06-15

piggz[m]ViGe: ping16:55
rinigusmal and piggz: I think qtwayland compilation fails on SFOS 4.6 since `pkg-config --cflags egl` is missing -DEGL_NO_X11. According to logs at https://build.sailfishos.org/build/sailfishos:chum:testing/4.5.0.24_i486/i586/qtbase/_log , that define is present in 4.5.x.y18:20
rinigusI think that adding -DQT_EGL_NO_X11 to qt config could fix it as well. just don't know where to add it to make it stick and be defined throughout all qt projects18:22
malrinigus: what provides that egl, mesa?18:57
piggz[m]takes us back to this commit https://gitlab.freedesktop.org/mesa/mesa/-/commit/6202a13b71e18dc31ba7e2f4ea915b67eacc1ddb .... but adds the question, what defines USE_X11?18:58
malyeah18:59
rinigusmal: that I didn't check. Sfos repos :)19:01
malhttps://gitlab.freedesktop.org/mesa/mesa/-/commit/c71006726e20d7b6aa945947f4beb738566e05f619:03
malstill odd why building qt packages works fine in internal obs19:05
rinigusIf you check header files that we have on sfos, then they still use egl no x11. Haven't checked these commits19:06
rinigusAs I'm away from PC19:06
malhmm19:06
mal4.6 has mesa 23.1.919:07
maland that commit piggz linked was in earlier version19:08
malhmm19:09
malneed to look a bit more19:11
malrinigus: that might be a qt bug https://invent.kde.org/qt/qt/qtwayland/-/commit/2dc725c57bb12a99f141b3852f6db516ced1661b#39865ebda7d6d165ac17eccf58aa9ba7486c9f2219:21
malso a fix would be to patch src/hardwareintegration/client/wayland-egl/wayland-egl.pri in qtwayland to define QT_EGL_NO_X1119:25
malpiggz[m]: do you want to do that?19:26
malas an example many places in qtbase do this https://invent.kde.org/qt/qt/qtbase/-/blob/kde/5.15/src/plugins/platforms/eglfs/eglfs-plugin.pro#L819:30
rinigusif piggz will not do it tonight, I can look into it tomorrow. saw those platforms in qtbase earlier today, probably is easy to add/fix that to qtwayland too.20:17
piggz[m]Me is walking atm ;)20:22
piggz[m]ah, here it is https://invent.kde.org/qt/qt/qtbase/-/blob/dev/src/gui/opengl/platform/egl/qt_egl_p.h?ref_type=heads#L3621:49
malpiggz[m]: yes, that is why the patch I suggested works, it sets QT_EGL_NO_X11 which prevents that from happening21:58
piggz[m]yeah21:58
piggz[m]mal: this is it in the correct branch https://invent.kde.org/qt/qt/qtbase/-/blob/kde/5.15/src/platformsupport/eglconvenience/qt_egl_p.h?ref_type=heads#L6722:08

Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!