GNOME Bugzilla – Bug 137004
gst-plugins-0.7.6 does not build due to X11 headers
Last modified: 2004-12-22 21:47:04 UTC
Getting the following: make[5]: Entering directory `/usr/src/gst-plugins/gst-plugins-0.7.6-build/gst-libs/gst/play' if /bin/sh ../../../libtool --mode=compile i386-linux-gcc -DHAVE_CONFIG_H -I. -I../../../../gst-plugins-0.7.6/gst-libs/gst/play -I../../.. -I../../../../gst-plugins-0.7.6/gst-libs -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -pthread -I/usr/include/gstreamer-0.8 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -DGST_DISABLE_DEPRECATED -Wall -Wno-sign-compare -g -O2 -MT libgstplay_0.8_la-play.lo -MD -MP -MF ".deps/libgstplay_0.8_la-play.Tpo" \ -c -o libgstplay_0.8_la-play.lo `test -f 'play.c' || echo '../../../../gst-plugins-0.7.6/gst-libs/gst/play/'`play.c; \ then mv -f ".deps/libgstplay_0.8_la-play.Tpo" ".deps/libgstplay_0.8_la-play.Plo"; \ else rm -f ".deps/libgstplay_0.8_la-play.Tpo"; exit 1; \ fi i386-linux-gcc -DHAVE_CONFIG_H -I. -I../../../../gst-plugins-0.7.6/gst-libs/gst/play -I../../.. -I../../../../gst-plugins-0.7.6/gst-libs -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -pthread -I/usr/include/gstreamer-0.8 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -DGST_DISABLE_DEPRECATED -Wall -Wno-sign-compare -g -O2 -MT libgstplay_0.8_la-play.lo -MD -MP -MF .deps/libgstplay_0.8_la-play.Tpo -c ../../../../gst-plugins-0.7.6/gst-libs/gst/play/play.c -fPIC -DPIC -o .libs/libgstplay_0.8_la-play.o In file included from ../../../../gst-plugins-0.7.6/gst-libs/gst/play/play.h:24, from ../../../../gst-plugins-0.7.6/gst-libs/gst/play/play.c:25: ../../../../gst-plugins-0.7.6/gst-libs/gst/xoverlay/xoverlay.h:27:22: X11/Xlib.h: No such file or directory In file included from ../../../../gst-plugins-0.7.6/gst-libs/gst/play/play.h:24, from ../../../../gst-plugins-0.7.6/gst-libs/gst/play/play.c:25: ../../../../gst-plugins-0.7.6/gst-libs/gst/xoverlay/xoverlay.h:52: error: parse error before "XID" ../../../../gst-plugins-0.7.6/gst-libs/gst/xoverlay/xoverlay.h:61: error: parse error before "XID" ../../../../gst-plugins-0.7.6/gst-libs/gst/xoverlay/xoverlay.h:72: error: parse error before "XID" ../../../../gst-plugins-0.7.6/gst-libs/gst/xoverlay/xoverlay.h:77: error: parse error before "XID" make[5]: *** [libgstplay_0.8_la-play.lo] Error 1 make[5]: Leaving directory `/usr/src/gst-plugins/gst-plugins-0.7.6-build/gst-libs/gst/play' Now many lines in that particular makefile do reference -I/usr/X11R6/include, but none of those are actually used to build play.c.
2004-03-12 Benjamin Otte <otte@gnome.org> * gst-libs/gst/xoverlay/xoverlay.c: (gst_x_overlay_set_xwindow_id), (gst_x_overlay_got_xwindow_id): * gst-libs/gst/xoverlay/xoverlay.h: replace XID with unsigned long to get rid of the xlibs dependency in XOverlay (fixes #137004)