分享

GStreamer编译总结

 开花结果 2012-04-16

将gstreamer及其插件编译好并安装在如下目录中:

/home/user/gstreamer/install

1. 下载glib源码

(a) ./configure --prefix=/home/user/gstreamer/install

(b) make

(c) make install

在编译glib过程中,可能需要下载一些其他库的,如gettext等,按提示安装上这些库就可以了。

2. 下载xml源码

(a) ./configure --prefix=/home/user/gstreamer/install

(b) make

(c) make install

3. 下载gstreamer源码

(a)  export PKG_CONFIG_PATH=/home/user/gstreamer/install/lib/pkgconfig ./configure --prefix=/home/user/gstreamer/install

(b) make

(c) make install

在编译gstreamer时,如果出现glib-genmarshal:命令找不到,则在(a)步骤前加入:export PATH=/home/user/gstreamer/install/bin:$PATH,如果你系统中以前装过了glib-dev则在你系统bin下 会有glib的一些文件,编译gstreamer时,先是找系统bin目录下的文件,如果你未装,则必须在编译前将home/user /gstreamer/install/bin加入到环境变量中

4. 下载gst-plugins-base

(a)  export PKG_CONFIG_PATH=/home/user/gstreamer/install/lib/pkgconfig ./configure --prefix=/home/user/gstreamer/install

(b) make

(c) make install

5. 下载gst-plugins-good

(a)  export PKG_CONFIG_PATH=/home/user/gstreamer/install/lib/pkgconfig ./configure --prefix=/home/user/gstreamer/install

(b) make

(c) make install

6. 下载gst-plugins-bad

(a)  export PKG_CONFIG_PATH=/home/user/gstreamer/install/lib/pkgconfig ./configure --prefix=/home/user/gstreamer/install

(b) make

(c) make install

7. 下载gst-plugins-ugly

(a)  export PKG_CONFIG_PATH=/home/user/gstreamer/install/lib/pkgconfig ./configure --prefix=/home/user/gstreamer/install

(b) make

(c) make install

..................


最后你就可以用自己编译好的库来运行自己写的player了

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多