From d37822173d6de981698ebe42753ca34f6eb9ab21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sat, 5 Mar 2016 11:38:46 +0200 Subject: [PATCH] gtk: examples: #define GST_USE_UNSTABLE_API and link with X11_LIBS X11_LIBS is needed for XInitThreads() and without the #define we get warnings about the GL API being still unstable. --- tests/examples/gtk/Makefile.am | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tests/examples/gtk/Makefile.am b/tests/examples/gtk/Makefile.am index 71441b453f..adf5e3178a 100644 --- a/tests/examples/gtk/Makefile.am +++ b/tests/examples/gtk/Makefile.am @@ -16,10 +16,12 @@ gtkglsink_CFLAGS = $(GTK3_CFLAGS) \ $(GST_PLUGINS_BAD_CFLAGS) \ $(GST_PLUGINS_BASE_CFLAGS) \ $(GST_CFLAGS) \ - $(GL_CFLAGS) + $(GL_CFLAGS) \ + -DGST_USE_UNSTABLE_API gtkglsink_LDADD = $(GTK3_LIBS) \ $(GST_LIBS) \ - $(GL_LIBS) + $(GL_LIBS) \ + $(X11_LIBS) glliveshader_SOURCES = glliveshader.c glliveshader_CFLAGS = $(GTK3_CFLAGS) \ @@ -28,10 +30,12 @@ glliveshader_CFLAGS = $(GTK3_CFLAGS) \ $(GST_PLUGINS_BAD_CFLAGS) \ $(GST_PLUGINS_BASE_CFLAGS) \ $(GST_CFLAGS) \ - $(GL_CFLAGS) + $(GL_CFLAGS) \ + -DGST_USE_UNSTABLE_API glliveshader_LDADD = $(GTK3_LIBS) \ $(GST_LIBS) \ $(GL_LIBS) \ - $(top_builddir)/gst-libs/gst/gl/libgstgl-$(GST_API_VERSION).la + $(top_builddir)/gst-libs/gst/gl/libgstgl-$(GST_API_VERSION).la \ + $(X11_LIBS) endif endif