hhbgk@hhbgk:~/gstreamer-0.10.35$./configure
出现下面的错误
checking for inet_aton... yes
checking for GLIB... no
configure: No package 'glib-2.0' found
No package 'gobject-2.0' found
No package 'gthread-2.0' found
No package 'gmodule-no-export-2.0' found
configure: error: This package requires GLib >= 2.22 to compile.
hhbgk@hhbgk:~/gstreamer-0.10.35$ sudo apt-get install glib-2.0
执行:
sudo apt-get install glib-2.0sudo apt-get install libglib2.0-dev
接着出错:
checking for GLIB... yes
checking for GLIB_ONLY... yes
checking for XML... no
no
configure: error:
Need libxml2 and development headers/files to build GStreamer.
You can do without libxml2 if you pass --disable-loadsave to
configure, but that breaks ABI, so don't do that unless you
are building for an embedded setup and know what you are doing.
执行:
sudo apt-get install libxml2-dev
然后,执行
make
make install
执行
hhbgk@hhbgk:~/gstreamer-0.10.35/tests/examples/helloworld$ ./helloworld /home/hhbgk/text_music.mp3
(lt-helloworld:8807): GStreamer-WARNING **: Failed to load plugin '/usr/local/lib/gstreamer-0.10/libgstplaybin.so': /usr/lib/x86_64-linux-gnu/libgstbase-0.10.so.0: undefined symbol: gst_caps_is_strictly_equal
'playbin2' gstreamer plugin missing
安装
sudo apt-get install libgstreamer-plugins-base0.10-dev
安装libmad插件 (libmad-0.15.1b.tar.gz)
出现错误:
cc1: error: unrecognized command line option “-fforce-mem”
把libmad configure之后的Makefile内容中的“-fforce-mem”选项去掉.