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