您的位置:首页 > 运维架构 > Linux

交叉编译gst-plugins

2009-08-13 14:30 197 查看
--------------------------------------------------------------------------------------

#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/li
4000
b/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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  plugins gtk api linux path xml