plugin mgp123 not compiled (and not properly loaded even compiled manually)

Weipeng He heweipeng at gmail.com
Thu Jun 19 04:41:54 PDT 2014


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.

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



More information about the gstreamer-devel mailing list