From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Seiderer Date: Tue, 14 Mar 2017 21:25:44 +0100 Subject: [Buildroot] [PATCH 2/3] libgtk3: gdk-wayland backend depends on libX11 In-Reply-To: <20170314114628.10147-2-Vincent.Riera@imgtec.com> References: <20170314114628.10147-1-Vincent.Riera@imgtec.com> <20170314114628.10147-2-Vincent.Riera@imgtec.com> Message-ID: <20170314212544.59e4eb22@gmx.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hello Vicente, On Tue, 14 Mar 2017 11:46:27 +0000, Vicente Olivert Riera wrote: > Otherwise it will fail to compile with an error like this one: > > [Vincent: paths shortened for readability] > > CC gdkglcontext-wayland.lo > In file included from /usr/include/epoxy/egl_generated.h:11:0, > from /usr/include/epoxy/egl.h:44, > from gdkglcontext-wayland.h:32, > from gdkglcontext-wayland.c:24: > /usr/include/EGL/eglplatform.h:119:22: fatal error: X11/Xlib.h: No such > file or directory > #include > ^ > compilation terminated. > make[6]: *** [Makefile:682: gdkglcontext-wayland.lo] Error 1 > Qt has a similare build failure solved by -DQT_EGL_NO_X11 which is used by qt5base-5.8.0/src/platformsupport/eglconvenience/qt_egl_p.h: #ifdef QT_EGL_NO_X11 # define MESA_EGL_NO_X11_HEADERS // MESA # define WIN_INTERFACE_CUSTOM // NV #endif // QT_EGL_NO_X11 #ifdef QT_EGL_WAYLAND # define WAYLAND // NV #endif // QT_EGL_WAYLAND #include #include Maybe something similare (define MESA_EGL_NO_X11_HEADERS) works for the gdk-wayland backend? Regards, Peter > Signed-off-by: Vicente Olivert Riera > --- > package/libgtk3/Config.in | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/package/libgtk3/Config.in b/package/libgtk3/Config.in > index 738f865..9e0721d 100644 > --- a/package/libgtk3/Config.in > +++ b/package/libgtk3/Config.in > @@ -62,11 +62,15 @@ comment "Wayland GDK backend needs an OpenGL EGL backend provided by mesa3d w/ h > depends on !BR2_PACKAGE_MESA3D_OPENGL_EGL || \ > !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17 > > +comment "Wayland GDK backend needs libX11 support" > + depends on !BR2_PACKAGE_XLIB_LIBX11 > + > config BR2_PACKAGE_LIBGTK3_WAYLAND > bool "Wayland GDK backend" > default y > depends on BR2_PACKAGE_HAS_LIBEGL_WAYLAND > depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17 > + depends on BR2_PACKAGE_XLIB_LIBX11 > select BR2_PACKAGE_WAYLAND > select BR2_PACKAGE_WAYLAND_PROTOCOLS > select BR2_PACKAGE_LIBXKBCOMMON