compile errors was Re: [gst-devel] Re: Funny colours in mpeg movies (fwd)
Lee Brown
leejr at i-plus.net
Fri Feb 9 10:00:03 CET 2001
On Fri, 09 Feb 2001, Dennis Smit wrote:
> > I'm new here. I tried compiling 0.1.0 last night and it fails.
> > Is this known problem? Should I get the code via cvs?
>
> Please mail the compile errors to the list so we can analyse.
>
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lo
cal/lib/glib/include -I/usr/local/include -D_REENTRANT -I/usr/local/lib/glib/inc
lude -I/usr/local/include -I/usr/X11R6/include -I/opt/gnome/include/gnome-xml -O
6 -Wall -c gst.c
rm -f .libs/gst.lo
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/lib/glib/include -I/usr/local/incl
from gst.c:28:
../gst/gstcaps.h:27: gnome-xml/parser.h: No such file or directory
In file included from ../gst/gstcaps.h:28,
from gsttype.h:28,
from gst.c:28:
../gst/gstprops.h:28: gnome-xml/parser.h: No such file or directory
In file included from gst.c:29:
gstplugin.h:28: gnome-xml/parser.h: No such file or directory
In file included from gstplugin.h:31,
from gst.c:29:
../gst/gstelement.h:27: gnome-xml/parser.h: No such file or directory
In file included from ../gst/gstelement.h:30,
from gstplugin.h:31,
from gst.c:29:
../gst/gstpad.h:27: gnome-xml/parser.h: No such file or directory
I think I understand the problem. The problem is that several of
the gst header files include
#include <gnome-xml/parser.h>
This means that the CFLAGS should include
CFLAGS = $(GNOME_CFLAGS) $(CFLAGS)
in the configure.in file. Otherwise the include file is not found (unless it
is already in a searched directory, e.g. /usr/include , as I suspect yours
is... mine is in /opt/gnome/include)
However some directories redefine CFLAGS
and this causes compile errors in them(e.g. plugins/mpeg2/parse/Makefile.am)
so problems remain in those directories. For those Makefile.am you could change
INCLUDES = $(GLIB_CFLAGS) $(GTK_CFLAGS) -I$(top_srcdir) -I$(top_srcdir)/include
LDADD = $(GLIB_LIBS) $(GTK_LIBS) $(top_srcdir)/gst/libgst.la
to
INCLUDES = $(GLIB_CFLAGS) $(GTK_CFLAGS) $(GNOME_CFLAGS) -I$(top_srcdir)
-I$(top_srcdir)/include
LDADD = $(GLIB_LIBS) $(GTK_LIBS) $(GNOME_LIBS) -I$(top_srcdir)
$(top_srcdir)/gst/libgst.la
Another way of solving the problem would be to use the XML_FLAGS and change
#include <gnome-xml/parser.h>
to
#include <parser.h>
plugins/mpeg2/parse/Makefile.am and the like would still need to be changed.
INCLUDES = $(GLIB_CFLAGS) $(GTK_CFLAGS) -I$(top_srcdir) -I$(top_srcdir)/include
LDADD = $(GLIB_LIBS) $(GTK_LIBS) $(top_srcdir)/gst/libgst.la
to
INCLUDES = $(GLIB_CFLAGS) $(GTK_CFLAGS) $(XML_CFLAGS) -I$(top_srcdir)
-I$(top_srcdir)/include
LDADD = $(GLIB_LIBS) $(GTK_LIBS) $(XML_LIBS) -I$(top_srcdir)
$(top_srcdir)/gst/libgst.la
Please get back to me on this , because I'm dying to get this up and running.
Lee
> >
> > Thanks ahead,
> > lee
> >
>
> Greetings
>
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> http://lists.sourceforge.net/lists/listinfo/gstreamer-devel
--
Lee Brown Jr.
leejr at i-plus.net
More information about the gstreamer-devel
mailing list