交叉编译gstreamer

参考博文:
http://blog.csdn.net/dyzhu/article/details/4316177
http://blog.chinaunix.net/uid-24159092-id-3250304.html

交叉编译环境:Codesourcery
系统环境:ubuntu 10.04 LTS

安装gstreamer之前还要装点别的。

1.安装glib:
http://vdisk.weibo.com/s/szqb7VVjeJv5
glib-2.28.6.tar.bz2
#tar zxvf glib-2.26.0.tar.gz
#cd glib-2.26.0
#CC=arm-none-linux-gnueabi-gcc ./configure --build=i686-linux --host=arm-none-linux-gnueabi --prefix=/root/arm glib_cv_stack_grows=no glib_cv_uscore=no ac_cv_func_posix_getpwuid_r=yes ac_cv_func_posix_getgrgid_r=yes ac_cv_lib_rt_clock_gettime=no glib_cv_monotonic_clock=yes CFLAGS=”-I/root/arm/zlib/include -I/root/arm/dbus/include” LDFLAGS=”-L/root/arm/zlib/lib -L/root/arm/dbus/lib”
#make
#make install

下面是一些可能出错的地方
出错1:cannot find ldbus-1
http://vdisk.weibo.com/s/szqb7VVjeICk  
expat-2.0.1.tar.gz
http://vdisk.weibo.com/s/szqb7VVjeITT
dbus-1.2.24.tar.gz
expat安装
#tar zxvf expat-2.0.1.tar.gz
#cd expat-2.0.1
#./configure --host=arm-none-linux-gnueabi --prefix=/arm/expat  CC=arm-none-linux-gnueabi-gcc
#make
#make install
dbus安装
#tar zxvf dbus-1.2.24.tar.gz 
#cd dbus-1.2.24
#./configure --prefix=/root/arm/dbus --host=arm-none-linux-gnueabi --with-x=no ac_cv_have_abstract_sockets=yes "CC=arm-linux-gcc  -I/usr/local/expat/include -L/usr/local/expat/lib"
#make
#make install
出错2:zlib
http://vdisk.weibo.com/s/szqb7VVjeIKd
zlib-1.2.3.tar.gz
#tar zxvf zlib-1.2.3.tar.gz
#cd zlib-1.2.3
#CC=arm-none-linux-gnueabi-gcc ./configure --prefix=/root/arm
#make
#make install
出错3:configure出现找不到glib-compile-**
#./configure --prefix=/usr/glib
#make
#make install
把/usr/glib/bin下的glib-compile-**拷贝到/usr/bin下。再configure
出错4:make出现GLib-Genmarshal-WARNING **: unknown type: VARIANT
把/usr/glib/bin下的glib-genmarshal拷贝到/usr/bin下。再make
参考: http://blog.163.com/cl2006ky@126/blog/static/87195173201171582658521/

2.安装libxml2
http://vdisk.weibo.com/s/szqb7VVjeITM
libxml2-2.6.26.tar.gz
#tar zxvf libxml2-2.6.26
#cd libxml2-2.6.26
#CC=arm-none-linux-gnueabi-gcc ./configure --build=i686-linux --host=arm-none-linux-gnueabi --prefix=/root/arm
#make
#make install

3.安装bison
http://vdisk.weibo.com/s/szqb7VVjeILZ
bison-2.4.1.tar.bz2
#tar zxvf bison-2.4.1.tar.bz2
#cd bison-2.4.1
#./configure --prefix=/usr
#make
#make install

4.apt-get install flex

5.安装gstreamer
http://vdisk.weibo.com/s/szqb7VVjeIAU
gstreamer-0.11.1.tar.zip
解压后进入目录执行:
#CC=arm-none-linux-gnueabi-gcc  PKG_CONFIG_PATH=/root/arm/lib/pkgconfig ./configure --build=i686-linux --host=arm-none-linux-gnueabi --prefix=/root/arm CFLAGS=-I/root/arm/include --disable-registry --disable-loadsave --disable-gtk-doc ac_cv_func_register_printf_function=no --disable-tests --disable-valgrind --disable-debug --disable-gst-debug
#make
#make install

你可能感兴趣的:(QT)