plugin mgp123 not compiled (and not properly loaded even compiled manually)
Tim Müller
tim at centricular.com
Thu Jun 19 04:51:02 PDT 2014
On Thu, 2014-06-19 at 13:41 +0200, Weipeng He wrote:
Hi,
> I am trying to compile gst-plugins-bad from source on Pidora.
> At first, I used configure && make && make install. Everything is fine
> except several plugins are not compiled (including mpg123). Obviously
> there are external libraries missing. Then I downloaded the libmpg123
> source and compiled it.
>
> Now, here comes the question #1. When I try to configure gst-plugins-bad
> again, it still says libmpg123 not found and plugin mpg123 will not
> compiled. I am sure libmpg123.so is in /usr/local/lib and mpg123.h is in
> /usr/local/include.
Try:
$ export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
$ ./configure
Your errors mean it didn't link against the library when building the
plugin, which is unsurprising seeing that configure didn't find it.
Cheers
-Tim
> So, I went to directory ext/mpg123 and do make && make install. It was
> successfully compiled.
>
> Now, question #2. When i tried:
> $ gst-inspect-1.0 /usr/local/lib/gstreamer-1.0/libgstmpg123.so
>
> The plugin can't be properly loaded, giving the following output:
> (gst-plugin-scanner:29481): GStreamer-WARNING **: Failed to load plugin
> '/usr/local/lib/gstreamer-1.0/libgstmpg123.so':
> /usr/local/lib/gstreamer-1.0/libgstmpg123.so: undefined symbol: mpg123_new
>
> (gst-inspect-1.0:29480): GStreamer-WARNING **: Failed to load plugin
> '/usr/local/lib/gstreamer-1.0/libgstmpg123.so':
> /usr/local/lib/gstreamer-1.0/libgstmpg123.so: undefined symbol: mpg123_new
> Could not load plugin file: Opening module failed:
> /usr/local/lib/gstreamer-1.0/libgstmpg123.so: undefined symbol: mpg123_new
>
> And I also tryied:
> $ LD_PRELOAD=/usr/local/lib/libmpg123.so gst-inspect-1.0
> /usr/local/lib/gstreamer-1.0/libgstmpg123.so
> Then it gives the right result.
>
> I don't want to add "LD_PRELOAD=/usr/local/lib/libmpg123.so" for every
> run. How can I solve this?
> Thank you!
>
> Best,
> Weipeng
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
--
Tim Müller, Centricular Ltd - http://www.centricular.com
More information about the gstreamer-devel
mailing list