GNOME Bugzilla – Bug 770924
Fail to build without wayland support
Last modified: 2016-09-07 15:37:00 UTC
Recent commit 3068fc1 breaks the build on systems without wayland support by including gdkwayland.h unconditionally. Fortunately, it is not required and we can simply use gdk.h instead. browser-plugin/EvBrowserPluginMain.cpp:25:10: fatal error: 'gdk/gdkwayland.h' file not found
Created attachment 334870 [details] [review] browser-plugin: Replace gdkwayland.h include with gdk.h GDK_WINDOWING_WAYLAND macro is defined in gdkconfig.h, not gdkwayland.h, so including gdk.h is sufficient. This also fixes build on systems not supporting Wayland.
Comment on attachment 334870 [details] [review] browser-plugin: Replace gdkwayland.h include with gdk.h Ah, sorry about this. Thanks for the patch, I've just pushed it.
The patch broke gnome continuous build, so I guess we really need to include gdkwayland.h. Maybe something changed in GTK+ because it also built fine for me here.
I've reverted the patch for now.
It fails to build in my machine, too. I am rebuilding GTK+ to check if related to that (it behind 138 commits from origin/master). Anyhow, if that were the issue, we would need to bump the GTK requirement.
I think gtk+ needs to be build with --enable-wayland-backend, which kind of defeat the purpose of the include.
ebassi suggested we just need to include first gdk.h and then include gdkwayland inside a #if GDK_WINDOWING_WAYLAND block. I'll fix it.
Pushed a new patch.
That makes sense. Thanks for fixing the issue.