Ubuntu10.10源代码安装gstreamer-0.10.29
我的Ubuntu10.10是完全新的,没有进行任何开发安装。
1. 下载gstreamer-0.10.29.tar.bz2
2. 解压gstreamer-0.10.29.tar.bz2到/home/zhupan/目录下
3. 切换到/home/zhupan/gstreamer-0.10.29#目录
4. root@zhupan-desktop:/home/zhupan/gstreamer-0.10.29# ./configure
5. 出错:checking for bison... no
configure: error: Could not find bison
6. 解决错误:
root@zhupan-desktop:/home/zhupan/gstreamer-0.10.29# apt-get install bison
(安装了bison和m4)
7. root@zhupan-desktop:/home/zhupan/gstreamer-0.10.29# ./configure
8. 出错:
checking bison version 2.4.1 >= 1.875... yes
checking for flex... no
configure: error: Could not find flex
9. 解决错误:
root@zhupan-desktop:/home/zhupan/gstreamer-0.10.29# apt-get install flex
10. root@zhupan-desktop:/home/zhupan/gstreamer-0.10.29# ./configure
a) 出错:
i.
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.18 to compile.
b) 解决错误:
i. 源代码安装glib-2.22.5
1. root@zhupan-desktop:/home/zhupan/glib-2.22.5# ./configure
a) 报错:
configure: error:
*** You must have either have gettext support in your C library, or use the
*** GNU gettext library. (http://www.gnu.org/software/gettext/gettext.html
b) 解决:
i. 尝试 apt-get install gettex,错误,提示:E: 无法找到软ttex
ii. 下载gettext-0.16.1安装
1. 切换到gettext目录执行
a) ./configure
b) Make
c) Make install
2. 一切顺利
2. root@zhupan-desktop:/home/zhupan/glib-2.22.5# ./configure
3. root@zhupan-desktop:/home/zhupan/glib-2.22.5# make & make install
11. root@zhupan-desktop:/home/zhupan/gstreamer-0.10.29# ./configure
a) 报错
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.
b) 解决:
i. apt-get install libxml2
12. root@zhupan-desktop:/home/zhupan/gstreamer-0.10.29# ./configure
a) 报错
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.
b) 源码安装
i. root@zhupan-desktop:/home/zhupan/libxml2-2.7.7# ./configure
1. bin/rm: cannot remove `libtoolT': No such file or directory
Done configuring
ii. root@zhupan-desktop:/home/zhupan/libxml2-2.7.7# make & make install
c) 问题解决
13. root@zhupan-desktop:/home/zhupan/gstreamer-0.10.29# ./configure
14. root@zhupan-desktop:/home/zhupan/gstreamer-0.10.29# make & make install
15. 安装完成。
./configure 后的结果如下:
Configuration
Version : 0.10.30
Source code location : .
Prefix : /usr/local
Compiler : gcc
Package name : GStreamer source release
Package origin : Unknown package origin
Documentation (manuals) : no
Documentation (API) : no
Debug Logging : yes
Pipeline XML load/save : yes
Command-line parser : yes
Option parsing in gst_init : yes
Tracing subsystem : yes
Allocation tracing : yes
Plugin registry : yes
Plugin support : yes
Network support : yes
Unit testing support : yes
Debug : yes
Profiling : no
Building examples : yes
Building test apps : yes
Building tests that fail : no
http://wiki.huihoo.com/index.php?title=GStreamer
http://www.cnblogs.com/phinecos/archive/2009/06/07/1498166.html
http://groups.google.com/group/prajnashi/web/git-repositories
prajnashi:
To clone latest source code, run following command
$ repo init -u git://github.com/prajnashi/android-gst-manifest.git
$ repo sync
All the modifications and patches to build GStreamer for Android are stored in git repositories here : http://cgit.freedesktop.org/~bilboed/
Youcan easily checkout all of those repositories (both the upstreamAndroid ones and the modified gstreamer ones) by using a modifiedmanifest.
repo init -u git://anongit.freedesktop.org/~bilboed/android-manifest
And then carry on the build as explained in the link at the top of this page ( repo sync; make).
'no-opencore' experimental branch
Thereis also an alternate (experimental so far) branch of the manifestswhich removes the dependency on opencore and replaces it as much aspossible by GStreamer. You may try it by using the 'no-opencore' branchof the manifest.
repo init -u git://anongit.freedesktop.org/~bilboed/android-manifest -b no-opencore
Or if you already have been using that manifest repository you can just do:
repo init -b no-opencore