交叉编译gst-plugins

来源:互联网 发布:全球经济现状 知乎 编辑:程序博客网 时间:2024/06/05 03:16

--------------------------------------------------------------------------------------

#export CROSS_COMPILE_PREFIX=/home/soeasy/nfsroot/target

liboil-0.3.14编译
#./configure --prefix=/install --host=arm-linux


编译gst-plugins-base-0.10.24

#LDFLAGS=" --sysroot=/home/soeasy/nfsroot/target -lglib-2.0 -lgobject-2.0 -lgthread-2.0 -lgmodule-2.0 -lxml2 " CPPFLAGS="-I/home/soeasy/nfsroot/target/usr/include -I/home/soeasy/nfsroot/target/usr/include/glib-2.0 -I/home/soeasy/nfsroot/target/usr/lib/glib-2.0/include -I/home/soeasy/nfsroot/target/usr/include/libxml2" CFLAGS="-I/home/soeasy/nfsroot/target/usr/include -I/home/soeasy/nfsroot/target/usr/include/glib-2.0 -I/home/soeasy/nfsroot/target/usr/lib/glib-2.0/include -I/home/soeasy/nfsroot/target/usr/include/libxml2" GLIB_CFLAGS="-I/home/soeasy/nfsroot/target/usr/include/glib-2.0 -I/home/soeasy/nfsroot/target/usr/lib/glib-2.0/include" GLIB_LIBS="-L/home/soeasy/nfsroot/target/usr/lib --sysroot=/home/soeasy/nfsroot/target -lglib-2.0 -lgobject-2.0 -lgthread-2.0 -lgmodule-2.0 -lxml2" GLIB_ONLY_CFLAGS=" -I/home/soeasy/nfsroot/target/usr/include/glib-2.0 -I/home/soeasy/nfsroot/target/usr/lib/glib-2.0/include  " GLIB_ONLY_LIBS="-L/home/soeasy/nfsroot/target/usr/lib/ --sysroot=/home/soeasy/nfsroot/target -lglib-2.0 -lgobject-2.0 -lgthread-2.0 -lgmodule-2.0 -lxml2" XML_CFLAGS="-I/home/soeasy/nfsroot/target/usr/include/libxml2"  ./configure --prefix=/install --host=arm-linux --disable-x --disable-xvideo --disable-ogg --disable-oggtest --disable-freetypetest --disable-vorbis --disable-vorbistest

修改config.status文件
#make; make install

编译gst-plugins-good-0.10.15
#LDFLAGS=" --sysroot=/home/soeasy/nfsroot/target -lglib-2.0 -lgobject-2.0 -lgthread-2.0 -lgmodule-2.0 -lxml2 " CPPFLAGS="-I/home/soeasy/nfsroot/target/usr/include -I/home/soeasy/nfsroot/target/usr/include/glib-2.0 -I/home/soeasy/nfsroot/target/usr/lib/glib-2.0/include -I/home/soeasy/nfsroot/target/usr/include/libxml2" CFLAGS="-I/home/soeasy/nfsroot/target/usr/include -I/home/soeasy/nfsroot/target/usr/include/glib-2.0 -I/home/soeasy/nfsroot/target/usr/lib/glib-2.0/include -I/home/soeasy/nfsroot/target/usr/include/libxml2" GLIB_CFLAGS="-I/home/soeasy/nfsroot/target/usr/include/glib-2.0 -I/home/soeasy/nfsroot/target/usr/lib/glib-2.0/include" GLIB_LIBS="-L/home/soeasy/nfsroot/target/usr/lib --sysroot=/home/soeasy/nfsroot/target -lglib-2.0 -lgobject-2.0 -lgthread-2.0 -lgmodule-2.0 -lxml2" GST_BASE_CFLAGS="-I/home/soeasy/nfsroot/target/usr/include/gstreamer-0.10 -I/home/soeasy/nfsroot/target/usr/include/glib-2.0 -I/home/soeasy/nfsroot/target/usr/lib/glib-2.0/include -I/home/soeasy/nfsroot/target/usr/include/libxml2" GST_PLUGINS_BASE_CFLAGS="-I/home/soeasy/nfsroot/target/usr/include/gstreamer-0.10 -I/home/soeasy/nfsroot/target/usr/include/glib-2.0 -I/home/soeasy/nfsroot/target/usr/lib/glib-2.0/include -I/home/soeasy/nfsroot/target/usr/include/libxml2" GST_CFLAGS="-I/home/soeasy/nfsroot/target/usr/include/gstreamer-0.10 -I/home/soeasy/nfsroot/target/usr/include/glib-2.0 -I/home/soeasy/nfsroot/target/usr/lib/glib-2.0/include -I/home/soeasy/nfsroot/target/usr/include/libxml2" GST_CONTROLLER_CFLAGS="-pthread -I/home/soeasy/nfsroot/target/usr/include/gstreamer-0.10 -I/home/soeasy/nfsroot/target/usr/include/glib-2.0 -I/home/soeasy/nfsroot/target/usr/lib/glib-2.0/include -I/home/soeasy/nfsroot/target/usr/include/libxml2" GTK_CFLAGS="-DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/home/soeasy/nfsroot/target/usr/include/gtk-2.0 -I/home/soeasy/nfsroot/target/usr/lib/gtk-2.0/include -I/home/soeasy/nfsroot/target/usr/include/atk-1.0 -I/home/soeasy/nfsroot/target/usr/include/cairo -I/home/soeasy/nfsroot/target/usr/inclu"/
"de/pango-1.0 -I/home/soeasy/nfsroot/target/usr/X11R6/include -I/home/soeasy/nfsroot/target/usr/include/glib-2.0 -I/home/soeasy/nfsroot/target/usr/lib/glib-2.0/include -I/home/soeasy/nfsroot/target/usr/include/freetype2 -I/home/soeasy/nfsroot/target/usr/include/libpng12  " ./configure --prefix=/install --host=arm-linux --disable-aalib --disable-aalibtest --disable-shout2 --disable-shout2test --disable-gdk_pixbuf --disable-cairo --disable-esd --disable-esdtest --disable-libcaca --disable-libdv --disable-dv1394 --disable-soup 

修改/usr/lib/libcairo.la文件, 将libdir='/usr/lib'改为libdir=$CROSS_COMPILE_PREFIX'/usr/lib'

修改config.status文件
#make; make install


export GST_PLUGIN_PATH=/usr/lib/gstreamer-0.10

编译libmad-0.15.1b
./configure --prefix=/install --host=arm-linux

编译libid3tag-0.15.1b
./configure --prefix=/install --host=arm-linux

编译gst-plugins-bad-0.10.13
LDFLAGS=" --sysroot=/home/soeasy/nfsroot/target -lglib-2.0 -lgobject-2.0 -lgthread-2.0 -lgmodule-2.0 -lxml2 " CPPFLAGS="-I/home/soeasy/nfsroot/target/usr/include -I/home/soeasy/nfsroot/target/usr/include/glib-2.0 -I/home/soeasy/nfsroot/target/usr/lib/glib-2.0/include -I/home/soeasy/nfsroot/target/usr/include/libxml2" CFLAGS="-I/home/soeasy/nfsroot/target/usr/include -I/home/soeasy/nfsroot/target/usr/include/glib-2.0 -I/home/soeasy/nfsroot/target/usr/lib/glib-2.0/include -I/home/soeasy/nfsroot/target/usr/include/libxml2" GLIB_CFLAGS="-I/home/soeasy/nfsroot/target/usr/include/glib-2.0 -I/home/soeasy/nfsroot/target/usr/lib/glib-2.0/include" GLIB_LIBS="-L/home/soeasy/nfsroot/target/usr/lib --sysroot=/home/soeasy/nfsroot/target -lglib-2.0 -lgobject-2.0 -lgthread-2.0 -lgmodule-2.0 -lxml2" GST_BASE_CFLAGS="-I/home/soeasy/nfsroot/target/usr/include/gstreamer-0.10 -I/home/soeasy/nfsroot/target/usr/include/glib-2.0 -I/home/soeasy/nfsroot/target/usr/lib/glib-2.0/include -I/home/soeasy/nfsroot/target/usr/include/libxml2" GST_PLUGINS_BASE_CFLAGS="-I/home/soeasy/nfsroot/target/usr/include/gstreamer-0.10 -I/home/soeasy/nfsroot/target/usr/include/glib-2.0 -I/home/soeasy/nfsroot/target/usr/lib/glib-2.0/include -I/home/soeasy/nfsroot/target/usr/include/libxml2" GST_CFLAGS="-I/home/soeasy/nfsroot/target/usr/include/gstreamer-0.10 -I/home/soeasy/nfsroot/target/usr/include/glib-2.0 -I/home/soeasy/nfsroot/target/usr/lib/glib-2.0/include -I/home/soeasy/nfsroot/target/usr/include/libxml2" GST_CONTROLLER_CFLAGS="-pthread -I/home/soeasy/nfsroot/target/usr/include/gstreamer-0.10 -I/home/soeasy/nfsroot/target/usr/include/glib-2.0 -I/home/soeasy/nfsroot/target/usr/lib/glib-2.0/include -I/home/soeasy/nfsroot/target/usr/include/libxml2" GTK_CFLAGS="-DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/home/soeasy/nfsroot/target/usr/include/gtk-2.0 -I/home/soeasy/nfsroot/target/usr/lib/gtk-2.0/include -I/home/soeasy/nfsroot/target/usr/include/atk-1.0 -I/home/soeasy/nfsroot/target/usr/include/cairo -I/home/soeasy/nfsroot/target/usr/inclu"/
"de/pango-1.0 -I/home/soeasy/nfsroot/target/usr/X11R6/include -I/home/soeasy/nfsroot/target/usr/include/glib-2.0 -I/home/soeasy/nfsroot/target/usr/lib/glib-2.0/include -I/home/soeasy/nfsroot/target/usr/include/freetype2 -I/home/soeasy/nfsroot/target/usr/include/libpng12  " ./configure --prefix=/install --host=arm-linux --disable-directfb --disable-sdl --disable-sdltest

修改config.status文件
#make; make install

编译gst-plugins-ugly-0.10.12
LDFLAGS=" --sysroot=/home/soeasy/nfsroot/target -lglib-2.0 -lgobject-2.0 -lgthread-2.0 -lgmodule-2.0 -lxml2 " CPPFLAGS="-I/home/soeasy/nfsroot/target/usr/include -I/home/soeasy/nfsroot/target/usr/include/glib-2.0 -I/home/soeasy/nfsroot/target/usr/lib/glib-2.0/include -I/home/soeasy/nfsroot/target/usr/include/libxml2" CFLAGS="-I/home/soeasy/nfsroot/target/usr/include -I/home/soeasy/nfsroot/target/usr/include/glib-2.0 -I/home/soeasy/nfsroot/target/usr/lib/glib-2.0/include -I/home/soeasy/nfsroot/target/usr/include/libxml2" GLIB_CFLAGS="-I/home/soeasy/nfsroot/target/usr/include/glib-2.0 -I/home/soeasy/nfsroot/target/usr/lib/glib-2.0/include" GLIB_LIBS="-L/home/soeasy/nfsroot/target/usr/lib --sysroot=/home/soeasy/nfsroot/target -lglib-2.0 -lgobject-2.0 -lgthread-2.0 -lgmodule-2.0 -lxml2" GST_BASE_CFLAGS="-I/home/soeasy/nfsroot/target/usr/include/gstreamer-0.10 -I/home/soeasy/nfsroot/target/usr/include/glib-2.0 -I/home/soeasy/nfsroot/target/usr/lib/glib-2.0/include -I/home/soeasy/nfsroot/target/usr/include/libxml2" GST_PLUGINS_BASE_CFLAGS="-I/home/soeasy/nfsroot/target/usr/include/gstreamer-0.10 -I/home/soeasy/nfsroot/target/usr/include/glib-2.0 -I/home/soeasy/nfsroot/target/usr/lib/glib-2.0/include -I/home/soeasy/nfsroot/target/usr/include/libxml2" GST_CFLAGS="-I/home/soeasy/nfsroot/target/usr/include/gstreamer-0.10 -I/home/soeasy/nfsroot/target/usr/include/glib-2.0 -I/home/soeasy/nfsroot/target/usr/lib/glib-2.0/include -I/home/soeasy/nfsroot/target/usr/include/libxml2" GST_CONTROLLER_CFLAGS="-pthread -I/home/soeasy/nfsroot/target/usr/include/gstreamer-0.10 -I/home/soeasy/nfsroot/target/usr/include/glib-2.0 -I/home/soeasy/nfsroot/target/usr/lib/glib-2.0/include -I/home/soeasy/nfsroot/target/usr/include/libxml2" GTK_CFLAGS="-DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/home/soeasy/nfsroot/target/usr/include/gtk-2.0 -I/home/soeasy/nfsroot/target/usr/lib/gtk-2.0/include -I/home/soeasy/nfsroot/target/usr/include/atk-1.0 -I/home/soeasy/nfsroot/target/usr/include/cairo -I/home/soeasy/nfsroot/target/usr/inclu"/
"de/pango-1.0 -I/home/soeasy/nfsroot/target/usr/X11R6/include -I/home/soeasy/nfsroot/target/usr/include/glib-2.0 -I/home/soeasy/nfsroot/target/usr/lib/glib-2.0/include -I/home/soeasy/nfsroot/target/usr/include/freetype2 -I/home/soeasy/nfsroot/target/usr/include/libpng12  " ./configure --prefix=/install --host=arm-linux

修改config.status文件
#make; make install

编译gst-ffmpeg-0.10.8
CC=arm_v5t_le-gcc AR=arm_v5t_le-ar RANLIB=arm_v5t_le-ranlib LDFLAGS=" --sysroot=/home/soeasy/nfsroot/target -lglib-2.0 -lgobject-2.0 -lgthread-2.0 -lgmodule-2.0 -lxml2 " CPPFLAGS="-I/home/soeasy/nfsroot/target/usr/include -I/home/soeasy/nfsroot/target/usr/include/glib-2.0 -I/home/soeasy/nfsroot/target/usr/lib/glib-2.0/include -I/home/soeasy/nfsroot/target/usr/include/libxml2" CFLAGS="-I/home/soeasy/nfsroot/target/usr/include -I/home/soeasy/nfsroot/target/usr/include/glib-2.0 -I/home/soeasy/nfsroot/target/usr/lib/glib-2.0/include -I/home/soeasy/nfsroot/target/usr/include/libxml2" GLIB_CFLAGS="-I/home/soeasy/nfsroot/target/usr/include/glib-2.0 -I/home/soeasy/nfsroot/target/usr/lib/glib-2.0/include" GLIB_LIBS="-L/home/soeasy/nfsroot/target/usr/lib --sysroot=/home/soeasy/nfsroot/target -lglib-2.0 -lgobject-2.0 -lgthread-2.0 -lgmodule-2.0 -lxml2" GST_BASE_CFLAGS="-I/home/soeasy/nfsroot/target/usr/include/gstreamer-0.10 -I/home/soeasy/nfsroot/target/usr/include/glib-2.0 -I/home/soeasy/nfsroot/target/usr/lib/glib-2.0/include -I/home/soeasy/nfsroot/target/usr/include/libxml2" GST_PLUGINS_BASE_CFLAGS="-I/home/soeasy/nfsroot/target/usr/include/gstreamer-0.10 -I/home/soeasy/nfsroot/target/usr/include/glib-2.0 -I/home/soeasy/nfsroot/target/usr/lib/glib-2.0/include -I/home/soeasy/nfsroot/target/usr/include/libxml2" GST_CFLAGS="-I/home/soeasy/nfsroot/target/usr/include/gstreamer-0.10 -I/home/soeasy/nfsroot/target/usr/include/glib-2.0 -I/home/soeasy/nfsroot/target/usr/lib/glib-2.0/include -I/home/soeasy/nfsroot/target/usr/include/libxml2" GST_CONTROLLER_CFLAGS="-pthread -I/home/soeasy/nfsroot/target/usr/include/gstreamer-0.10 -I/home/soeasy/nfsroot/target/usr/include/glib-2.0 -I/home/soeasy/nfsroot/target/usr/lib/glib-2.0/include -I/home/soeasy/nfsroot/target/usr/include/libxml2" GTK_CFLAGS="-DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/home/soeasy/nfsroot/target/usr/include/gtk-2.0 -I/home/soeasy/nfsroot/target/usr/lib/gtk-2.0/include -I/home/soeasy/nfsroot/target/usr/include/atk-1.0 -I/home/soeasy/nfsroot/target/usr/include/cairo -I/home/soeasy/nfsroot/target/usr/inclu"/
"de/pango-1.0 -I/home/soeasy/nfsroot/target/usr/X11R6/include -I/home/soeasy/nfsroot/target/usr/include/glib-2.0 -I/home/soeasy/nfsroot/target/usr/lib/glib-2.0/include -I/home/soeasy/nfsroot/target/usr/include/freetype2 -I/home/soeasy/nfsroot/target/usr/include/libpng12  " ./configure --prefix=/install --host=arm-linux --with-ffmpeg-extra-configure="--prefix=/install --disable-ffserver --disable-ffplay --enable-postproc --enable-gpl --enable-static --enable-shared --disable-encoder=flac --disable-decoder=cavs --disable-protocols --disable-devices --disable-network --enable-cross-compile         --target-os=linux --arch=arm --cross-prefix=arm-linux- --disable-ffmpeg --enable-swscale"

修改config.status文件
#make; make install

原创粉丝点击
热门问题 老师的惩罚 人脸识别 我在镇武司摸鱼那些年 重生之率土为王 我在大康的咸鱼生活 盘龙之生命进化 天生仙种 凡人之先天五行 春回大明朝 姑娘不必设防,我是瞎子 新电瓶车被偷了怎么办 汽车前风挡玻璃砸出洞怎么办 凯迪拉克xt5钥匙掉了怎么办 凯迪拉克xt5媒体不好用怎么办 晒黄的白鞋怎么办 白鞋子被晒黄了怎么办? 耐克空军一号白色发黄怎么办 空军一号破皮了怎么办 匡威鞋帆布破了怎么办 脚腕起疙瘩很痒怎么办 跑步后脚踝微疼怎么办 跑步跑得脚疼怎么办 nike air 鞋头脱胶怎么办 耐克空军一号磨脚怎么办 白鞋刷完变黄了怎么办 乔丹气垫坏了怎么办 气垫鞋气垫坏了怎么办 建行u盾忘记密码怎么办 工商银行u盾忘记密码怎么办 民生银行不给u盾怎么办 银行不给开u盾怎么办 有车有空想赚点外快怎么办 车被注册了滴滴怎么办 快手号手机丢了怎么办 手机号码不停收到验证码怎么办 手机网页滑动自动跳到最下面怎么办 网页一打开就跳至评论怎么办? 百度总出现重复的网页怎么办 苹果7一直处于系统升级页面怎么办 手机看百度文章总是跳转怎么办 美度舵手滑丝怎么办 小区房产证办不下来怎么办 美海军陆战队进驻台湾大陆怎么办? 束脚裤带子怎么办系 眼角弄伤了应该怎么办 浴盆下水盖坏了怎么办 冒险岛勋章多了怎么办 玉手镯取不下来怎么办?终极绝招! 陆金所收益低怎么办 陆金所登录密码忘记怎么办 陆金所理财逾期怎么办