将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 ..................
|
|
来自: 开花结果 > 《Gstreamer》