]> code.ossystems Code Review - openembedded-core.git/commit
gtk+3: Do not try to initialize GL without libgl
authorJussi Kukkonen <jussi.kukkonen@intel.com>
Wed, 21 Oct 2015 13:25:31 +0000 (16:25 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 24 Oct 2015 11:17:40 +0000 (12:17 +0100)
commitf9540f50ea661e260ec2b82436238cfb989e23c5
tree91f54154905645e93fc74c68a614d9f8310134ef
parenta40e69508e66268e0743502334797374dee31125
gtk+3: Do not try to initialize GL without libgl

Gdk initialization ends up calling epoxy GLX api, which calls exit()
if libGL.so.1 is not present. In practice this prevents all GTK+
applications from starting if GLX is not present.

If opengl and x11 distro features are set, make gtk+3 RDEPEND on libgl.
If opengl and x11 distro features are not set, use #ifdef to prevent
the GL initialization.

Remove libgl dependency from gtk3-demo: it can now run without
libgl (although trying to run the glarea demo will exit in that case).

[YOCTO #8529]

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-gnome/gtk+/gtk+3.inc
meta/recipes-gnome/gtk+/gtk+3/Do-not-try-to-initialize-GL-without-libGL.patch [new file with mode: 0644]
meta/recipes-gnome/gtk+/gtk+3_3.16.6.bb