随笔-104  评论-133  文章-4  trackbacks-0
SDL:
./configure --host=arm-none-linux-gnueabi --disable-video-qtopia --disable-video-dummy --disable-video-dga --disable-arts --disable-esd --disable-cdrom --disable-nasm --disable-video-x11 --enable-video-fbcon --enable-input-tslib --prefix=/home/luofc/work/toolchain/arm-2007q3/arm-none-linux-gnueabi

directfb:
1、configure
修改 MODULEDIR=$libdir/$MODULEDIRNAME 为 MODULEDIR=/lib/$MODULEDIRNAME
2、配置编译
export PKG_CONFIG_PATH=/home/luofc/work/toolchain/arm-2007q3/arm-none-linux-gnueabi/lib/pkgconfig
./configure --host=arm-none-linux-gnueabi --prefix=/home/luofc/work/toolchain/arm-2007q3/arm-none-linux-gnueabi --with-gfxdrivers=none --with-inputdrivers=tslib --enable-png=no --enable-jpeg=no --disable-tiff --enable-zlib --enable-sdl=no --enable-vnc=no --enable-gif=no --disable-x11

mplayer:
1、mplayer对于嵌入式下directfb的检测有问题,需要修改configure文件
1)修改
#include <directfb_version.h>为#include <directfb/directfb_version.h>
2)添加
--with-directfb-config=PATH path to directfb*-config

--with-directfb-config=*)
    _directfbconfig=`echo $ac_option | cut -d '=' -f 2`
    ;;

if test "$_directfb" = yes ; then
  echocheck "check for directfb"

  if test -z "$_directfbconfig" ; then
      die "please set the --with-gtk-config"
  else
    _inc_extra="$_inc_extra `$_directfbconfig --cflags 2>&1`"
    _libs_mplayer="$_libs_mplayer `$_directfbconfig --libs 2>&1`"
    echores "$_directfb (using $_directfbconfig)"
  fi
fi

2、配置编译
./configure --cc=arm-none-linux-gnueabi-gcc --host-cc=gcc --target=arm-linux --enable-cross-compile --disable-win32dll --disable-dvdread --enable-fbdev --disable-mencoder --disable-mp3lib --disable-live --enable-freetype --enable-ass --enable-directfb --with-freetype-config=/home/luofc/work/toolchain/arm-2007q3/arm-none-linux-gnueabi/bin/freetype-config --with-sdl-config=/home/luofc/work/toolchain/arm-2007q3/arm-none-linux-gnueabi/bin/sdl-config --with-directfb-config=/home/luofc/work/toolchain/arm-2007q3/arm-none-linux-gnueabi/bin/directfb-config


posted on 2009-07-16 10:36 lfc 阅读(2229) 评论(0)  编辑 收藏 引用
只有注册用户登录后才能发表评论。