GNOME Bugzilla – Bug 540334
Build fails without X in tests/examples/seek
Last modified: 2008-06-27 07:55:55 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
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.
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
Thanks. Now it should work :)