gst-plugins-base-0.10.32: GST_DISABLE_XML=1 doesn't work in gstsubparse.c

bcxa sz bcxa.sz at gmail.com
Tue Aug 16 21:06:05 PDT 2011


With some close looking, I suspect this may be due to my build issue.

in gst-plugins-base-0.10.32/configure
==========================================================================
GST_CONFIGPATH=`$PKG_CONFIG --variable=includedir
gstreamer-0.10`"/gst/gstconfig.h"

  grep >/dev/null "#undef GST_DISABLE_XML" $GST_CONFIGPATH
  if test $? = 0; then
    GST_DISABLE_XML=0
  else
    GST_DISABLE_XML=1
  fi

 It should search the gstreamer-0.10.32/gst/gstconfig.h to find
whether have "#undef GST_DISABLE_XML". And look at the
gstreamer-0.10.32/gst/gstconfig.h:
=========================================================================
/**
 * GST_DISABLE_XML:
 *
 * Configures the use libxml2. This setting is derived from the settings of
 * %GST_DISABLE_LOADSAVE and %GST_DISABLE_REGISTRY (in the xml registry case).
 */
/* #undef GST_DISABLE_XML */

Code is there. So it means that GST_DISABLE_XML should be 0, not 1.
Unless, the gstconfig.h is not found. This is what I suspected.

Then I configure gst-plugins-base-0.10.32 again and found:
========================================================
grep: /usr/include/gstreamer-0.10/gst/gstconfig.h: No such file or directory
grep: /usr/include/gstreamer-0.10/gst/gstconfig.h: No such file or directory
grep: /usr/include/gstreamer-0.10/gst/gstconfig.h: No such file or directory
grep: /usr/include/gstreamer-0.10/gst/gstconfig.h: No such file or directory
grep: /usr/include/gstreamer-0.10/gst/gstconfig.h: No such file or directory
grep: /usr/include/gstreamer-0.10/gst/gstconfig.h: No such file or directory
grep: /usr/include/gstreamer-0.10/gst/gstconfig.h: No such file or directory
grep: /usr/include/gstreamer-0.10/gst/gstconfig.h: No such file or directory


On Wed, Aug 17, 2011 at 10:11 AM, bcxa sz <bcxa.sz at gmail.com> wrote:
> Hi Tim,
>
> On Tue, Aug 16, 2011 at 6:41 PM, Tim-Philipp Müller <t.i.m at zen.co.uk> wrote:
>> On Tue, 2011-08-16 at 18:35 +0800, bcxa sz wrote:
>>
>>> And in gstconfig.h, I didn't see these flags are set and all is
>>> commented like below.
>>> ====================================================================
>>> /* trick gtk-doc into believing these symbols are defined (yes, it's ugly) */
>>> #if 0
>>> #define GST_DISABLE_GST_DEBUG 1
>>> #define GST_DISABLE_LOADSAVE 1
>>> #define GST_DISABLE_PARSE 1
>>> #define GST_DISABLE_TRACE 1
>>> #define GST_DISABLE_ALLOC_TRACE 1
>>> #define GST_DISABLE_REGISTRY 1
>>> #define GST_DISABLE_PLUGIN 1
>>> #define GST_DISABLE_XML 1
>>> #define GST_DISABLE_LOADSAVE_REGISTRY 1
>>> #define GST_HAVE_GLIB_2_8 1
>>> #endif
>>
>> Checked further down? there should be something like:
>>
>> /**
>>  * GST_DISABLE_XML:
>>  *
>>  * Configures the use libxml2. This setting is derived from the settings
>> of
>>  * %GST_DISABLE_LOADSAVE and %GST_DISABLE_REGISTRY (in the xml registry
>> case).
>>  */
>> /* #undef GST_DISABLE_XML */
>>
>
> Yes, I saw this piece of code and it is commented. And after this,
>
> /***** Deal with XML stuff, we have to handle both loadsave and registry *****/
> /* FIXME: move include to where we need it */
> /*#if (! (defined(GST_DISABLE_LOADSAVE) && defined(GST_DISABLE_REGISTRY)) )*/
> #ifndef GST_DISABLE_XML
> #ifndef GST_DISABLE_DEPRECATED
> # include <libxml/parser.h>
> #endif
> #else
>  /* FIXME: 0.11 (replace by GST_DISABLE_XML) */
> # define GST_DISABLE_LOADSAVE_REGISTRY
> #endif
>
> But I still can not see where GST_DISABLE_XML defined.
>
> And I have one question on how GST_DISABLE_XML is set, check which condition.
>
> I looked at the gstreamer on Fedor14. Fedora14 is also use libxml2 but
> why GST_DISABLE_XML = 0?
>
> My embedded system is also use libxml2 but GST_DISABLE_XML = 1.
>
> Sorry, I am not familiar with gstreamer auto configure. And any
> document on this?
>>
>> -Tim
>>
>>
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>
>


More information about the gstreamer-devel mailing list