After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 540334 - Build fails without X in tests/examples/seek
Build fails without X in tests/examples/seek
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other Mac OS
: Normal normal
: 0.10.21
Assigned To: Stefan Sauer (gstreamer, gtkdoc dev)
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-06-26 14:44 UTC by Richard Hult
Modified: 2008-06-27 07:55 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Richard Hult 2008-06-26 14:44:38 UTC
There is some X11 dependent code added to test/examples/seek/ recently, that is built when GTK+ is available, it should probably also check for which GTK+ target is used:

Making all in seek
gcc -DHAVE_CONFIG_H -I. -I../../..   -I/opt/gtk/include -D_REENTRANT -I/opt/gtk/include/gstreamer-0.10 -I/opt/gtk/include/glib-2.0 -I/opt/gtk/lib/glib-2.0/include -I/opt/gtk/include/libxml2     -g   -DGST_DISABLE_DEPRECATED -I/opt/gtk/include/gtk-2.0 -I/opt/gtk/lib/gtk-2.0/include -I/opt/gtk/include/atk-1.0 -I/opt/gtk/include/cairo -I/opt/gtk/include/pango-1.0 -I/opt/gtk/include/glib-2.0 -I/opt/gtk/lib/glib-2.0/include -I/opt/gtk/include/freetype2 -I/opt/gtk/include -I/opt/gtk/include/libpng12 -I/opt/gtk/include/pixman-1   -I../../../gst-libs -O0 -gstabs+3 -std=gnu89 -MT seek.o -MD -MP -MF .deps/seek.Tpo -c -o seek.o seek.c
seek.c:30:22: error: gdk/gdkx.h: No such file or directory
Comment 1 Stefan Sauer (gstreamer, gtkdoc dev) 2008-06-27 07:41:35 UTC
This should fix it. Would be good to know how to make that work in a portable way still.

2008-06-27  Stefan Kost  <ensonic@users.sf.net>

	* tests/examples/seek/seek.c:
	  Include config.h and check if we have X. Remove XInitThread(), don't
	  think its needed. Fixes: #540334.

Comment 2 Richard Hult 2008-06-27 07:49:37 UTC
Thanks!

If you want to run any X specific things with gtk+ you could always check the windowing defines (GDK_WINDOWING_X11 for example).

Btw, there's a warning left after the change:

cc1: warnings being treated as errors
seek.c:110: warning: ‘embed_xid’ defined but not used


Comment 3 Stefan Sauer (gstreamer, gtkdoc dev) 2008-06-27 07:55:55 UTC
Thanks. Now it should work :)