building bad plugins

Chuck Crisler ccrisler at
Tue Apr 16 07:13:43 PDT 2013

I don't understand the error either. Here is a snippet of the output from
Make yesterday:

make -C vp8
make[3]: Entering directory
  CC     libgstvp8_la-gstvp8dec.lo
  CC     libgstvp8_la-gstvp8enc.lo
In file included from gstvp8utils.h:24,
                 from gstvp8enc.c:56:
/usr/include/vpx/vpx_codec.h:45:26: error: vpx_config.h: No such file or
make[3]: *** [libgstvp8_la-gstvp8enc.lo] Error 1
make[3]: Leaving directory
make[2]: *** [vp8] Error 2
make[2]: Leaving directory
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
make: *** [all] Error 2

Here is a snippet of gstvp8enc.c

#include "config.h"


#include <gst/tag/tag.h>
#include <string.h>

#include "gstvp8utils.h"
#include "gstvp8enc.h"

And here is gstvp8utils.h

#include <gst/gst.h>
#include <vpx/vpx_codec.h>

Clearly it is not protected. However, today it builds without error.

Thank you Tim.

On Mon, Apr 15, 2013 at 6:07 PM, Tim-Philipp Müller <t.i.m at> wrote:

> On Mon, 2013-04-15 at 16:54 -0400, Chuck Crisler wrote:
> > I am getting a compile error when trying to completely build
> > plugins-bad-0.10.20.
> 0.10.20 is from September 2010, is there any reason why you're building
> such an ancient version? It's not even the last 0.10 release..
> > The problem seems to be that HAVE_CONFIG_H is defined in the project
> > seemingly to mean that there is a config.h in the bad plugin root
> > directory that the gstreamer modules should include. Unfortunately in
> > VP8 the file vpx_codec.h also uses #ifdef HAVE_CONFIG_H to include
> > vpx_config.h, which looks like a generated file that isn't generated,
> > hence the error. What is the accepted way to get around this?
> This is a bug in libvpx, pretty rookie mistake really, I would be
> surprised if it wasn't fixed yet.
> But this has also been fixed in gst-plugins-bad by the following commit
> from May 2010:
> commit fd77b419a4cffab6f96c6228870693789ed30c12
> Author: Sebastian Dröge <sebastian.droege at>
> Date:   Thu May 20 09:56:25 2010 +0200
>     vp8: Undef HAVE_CONFIG_H before including libvpx headers
>     A public libvpx header includes private headers if this is
>     defined, causing compilation failures because the private headers
>     are not installed of course.
> which should be even in -bad 0.10.20 so I don't know what's going on.
> Cheers
>  -Tim
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the gstreamer-devel mailing list