[gst-devel] Re: libgst.so needs -lm in head

Steve Baker stevebaker_org at yahoo.co.uk
Sat Sep 29 11:33:01 CEST 2001


My current temporary fix is:
diff -u -r1.84 configure.base
--- configure.base	2001/09/17 06:52:09	1.84
+++ configure.base	2001/09/29 18:18:24
@@ -205,7 +205,7 @@
   AC_SUBST(GLIB2_LIBS)
   AC_SUBST(GLIB2_CFLAGS)
 ], disabled, [
-  CORE_LIBS="$CORE_LIBS $GLIB2_LIBS"
+  CORE_LIBS="$CORE_LIBS $GLIB2_LIBS -lm"
   CORE_CFLAGS="$CORE_CFLAGS $GLIB2_CFLAGS"
 
   AC_DEFINE(USE_GLIB2)

since -lm only seems to be needed when using glib2

> On Sat, Sep 29, 2001 at 11:07:24AM -0700, vishnu at pobox.com wrote:
> > gstdparam.c uses both exp() & log().
> > 
> > Given the concerns about keeping the minimum feature set to a minimum,
> > is it possible to move the dparam stuff out of the main gst library?

gstdparammanager has to be in core as it is coupled with gstelement and
it has macros that any plugin might use.

I think there will eventually be a --disable-dparams option in configure
which can remove all evidence of dparams from a compile (except maybe a
couple of macro stubs).

As for use of log() and exp(), I arbitrarily decided that core would
contain dparam support for real-time linear and logarithm values.

If requested I could move real-time logarithm into libgstcontrol so we
no longer have the -lm dependency. 

Either that or I could add log(gfloat x) and exp(gfloat x)
implementations (which I should do whether it stays in core or not).

cheers


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com





More information about the gstreamer-devel mailing list