编译gstreamer-0.10.35

本文记录了GStreamer在Linux环境下从源码安装过程中遇到的问题及解决办法,包括依赖库缺失、编译错误等,并提供了具体的解决步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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.0                                           
sudo 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”选项去掉.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值