打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
编译gstreamer相关
把编译完的配置从config.log里拷出来,去掉双引号了,记得加上

gstreamer统一目录是/home/gstreamer,编译后统一安装在/home/gstreamer/install文件夹里,所以设置pkgconfig就只用设置一个地址
export PKG_CONFIG_LIBDIR=/home/gstreamer/install/lib/pkgconfig

然后开始编译
/home/gstreamer/gstreamer-0.10.21/

$ ./configure --disable-nls --disable-static --enable-binary-registry--disable-loadsave --with-html-dir=/tmp/dump--prefix=/home/gstreamer/gstreamer-0.10.21/../install --host=arm-linuxLDFLAGS=-L/home/gstreamer/install/lib/ -L/home/gstreamer/install/lib/-lglib-2.0 -lgio-2.0 -lgobject-2.0 -lgthread-2.0 -lgmodule-2.0 -lxml2CFLAGS=-I/home/gstreamer/install/include/-I/home/gstreamer/install/include/glib-2.0/-I/home/gstreamer/install/lib/glib-2.0/include

/home/gstreamer/gst-plugins-base-0.10.21/
$ ./configure --host=arm-linux--prefix=/home/gstreamer/gst-plugins-base-0.10.21/../install--disable-static --with-html-dir=/tmp/dumpCFLAGS=-I/home/gstreamer/install/lib/glib-2.0/include-I/home/gstreamer/install/include/glib-2.0-I/home/gstreamer/install/include/liboil-0.3/liboil-I/home/gstreamer/install/include/gstreamer-0.10/gst-I/home/gstreamer/install/include/gio-unix-2.0/gio-I/home/gstreamer/install/include/libxml2/libxmlLDFLAGS=-L/home/gstreamer/install/lib/-L/home/gstreamer/install/lib/gstreamer-0.10-L/home/gstreamer/install/lib/python2.5/site-packages--with-pkg-config-path=/home/gstreamer/install/lib/pkgconfig--disable-x --disable-xvideo --disable-xshm --disable-gnome_vfs--disable-cdparanoia --disable-libvisual --disable-alsa --disable-ogg--disable-oggtest --disable-pango --disable-vorbis --disable-vorbistest

/home/gstreamer/gst-plugins-good-0.10.11/
$ ./configure --host=arm-linux--prefix=/home/gstreamer/gst-plugins-good-0.10.11/../install--disable-nls --disable-static --with-html-dir=/tmp/dump--with-plugins=avi,qtdemuxCFLAGS=-I/home/gstreamer/install/lib/glib-2.0/include-I/home/gstreamer/install/include/glib-2.0-I/home/gstreamer/install/include/liboil-0.3/liboil-I/home/gstreamer/install/include/gstreamer-0.10/gst-I/home/gstreamer/install/include/gio-unix-2.0/gio-I/home/gstreamer/install/include/libxml2/libxmlLDFLAGS=-L/home/gstreamer/install/lib/-L/home/gstreamer/install/lib/gstreamer-0.10-L/home/gstreamer/install/lib/python2.5/site-packages --disable-x--disable-xshm --disable-xvideo --disable-esd --disable-shout2

/home/gstreamer/gst-plugins-ugly-0.10.10/
$ ./configure --host=arm-linux--prefix=/home/gstreamer/gst-plugins-ugly-0.10.10/../install--disable-nls --disable-static --with-html-dir=/tmp/dump--with-plugins=asfdemuxCFLAGS=-I/home/gstreamer/install/lib/glib-2.0/include-I/home/gstreamer/install/include/glib-2.0-I/home/gstreamer/install/include/liboil-0.3/liboil-I/home/gstreamer/install/include/gstreamer-0.10/gst-I/home/gstreamer/install/include/gio-unix-2.0/gio-I/home/gstreamer/install/include/libxml2/libxmlLDFLAGS=-L/home/gstreamer/install/lib/-L/home/gstreamer/install/lib/gstreamer-0.10-L/home/gstreamer/install/lib/python2.5/site-packages

/home/gstreamer/gst-plugins-bad-0.10.9/
$ ./configure --host=arm-linux--prefix=/home/gstreamer/gst-plugins-bad-0.10.9/../installCFLAGS=-I/home/gstreamer/install/lib/glib-2.0/include-I/home/gstreamer/install/include/glib-2.0-I/home/gstreamer/install/include/liboil-0.3/liboil-I/home/gstreamer/install/include/gstreamer-0.10/gst-I/home/gstreamer/install/include/gio-unix-2.0/gio-I/home/gstreamer/install/include/libxml2/libxmlLDFLAGS=-L/home/gstreamer/install/lib/-L/home/gstreamer/install/lib/gstreamer-0.10-L/home/gstreamer/install/lib/python2.5/site-packages --disable-nls--disable-static --with-html-dir=/tmp/dump --disable-apexsink--disable-sdl

/home/gstreamer/glib-2.18.3
$ ./configure --cache-file=arm.cache --host=arm-linux --prefix=/home/gstreamer/glib-2.18.3/install
arm.cache的内容在前面的文章里写了。家里用X86_64编译的,把posix那2个设置为no,可以编译过了。也没有WARNING提示了。

/home/gstreamer/libxml2-2.6.24/
$ ./configure --host=arm-linux --prefix=/home/gstreamer/libxml2-2.6.24/../install/

/home/gstreamer/liboil-0.3.15/
$ ./configure --host=arm-linux--prefix=/home/gstreamer/liboil-0.3.15/../install/ --disable-static--with-html-dir=/tmp/dumpCFLAGS=-I/home/gstreamer/install/lib/glib-2.0/include-I/home/gstreamer/install/include/glib-2.0LDFLAGS=-L/home/gstreamer/install/lib/
修改的configure文件在前面文章里写了

这里的编译都是不带额外的plugins,比如没有把mad加进去

运行时设置环境变量GST_PLUGINS_PATH为包含plugin的地址
在没有设置该环境变量时,运行/home/gstreamer/gstreamer-0.10.21/tests/examples/helloworld/.libs下的helloworld程序会报错:

# ./helloworld a
**
ERROR:helloworld.c:59:main: assertion failed: (filesrc)
Aborted

本来是件简单的事情,设置环境变量就行了,但是网上没搜到解决办法,加入了gstreamer的QQ群,也没人告诉我。有个人倒是算热心回答我问题,但是他觉得这里不应该出错,他不会在这里出错。那么他们怎么把有哪些plugin告诉gstreamer的?可能办法不一样吧。结果我找到一篇"GStreamer Plugin Writer's Guide(0.10.21.1)",Chapter 9. Building aTest Application才知道要设置GST_PLUGIN_PATH
-
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
SUSE10.2环境下gstreamer安装全记录
GStreamer
GStreamer rtsp拉流播放
glib安装
c Ubuntu系统下GTK安装
Coding Chase
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服