天天看点

mplayer cross compile 5

# !/bin/sh

ARGS=

#ARGS="$ARGS --cc=arm-linux-gcc"

ARGS="$ARGS --cc=arm_v5t_le-gcc"

ARGS="$ARGS --host-cc=gcc"

#ARGS="$ARGS --target=arm-linux"

ARGS="$ARGS --enable-cross-compile"

ARGS="$ARGS --enable-static"

ARGS="$ARGS --disable-libmpeg2"

ARGS="$ARGS --disable-freetype"

ARGS="$ARGS --disable-mencoder"

#ARGS="$ARGS --disable-decoder=libavcodec"

#ARGS="$ARGS --disable-demuxer=libmpdemux"

#ARGS="$ARGS --disable-libavcodec_a"

#ARGS="$ARGS --disable-libavcodec_so"

#ARGS="$ARGS --disable-libmpdemux"

#ARGS="$ARGS --disable-libmpdemux_so"

#ARGS="$ARGS --disable-libavformat_a"

#ARGS="$ARGS --disable-libavformat_so"

#ARGS="$ARGS --disable-win32"

ARGS="$ARGS --disable-dvdnav"

#ARGS="$ARGS --disable-streaming"

ARGS="$ARGS --disable-dvdread"

#ARGS="$ARGS --enable-fbdev"

ARGS="$ARGS --disable-fastmemcpy"

ARGS="$ARGS --enable-debug=1"

ARGS="$ARGS --disable-vidix"

echo "./configure $ARGS"

./configure $ARGS

#./configure --cc=arm-elf-gcc --host-cc=gcc --target=arm-linux

[[email protected] mplayer_svn]$ make

arm_v5t_le-gcc -Wundef -Wdisabled-optimization -Wdeclaration-after-statement -std=gnu99 -W -Wall -O2   -pipe -g1  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Ilibdvdread4 -I.  -D_REENTRANT    -c -o cpudetect.o cpudetect.c

cpudetect.c: In function `GetCpuFriendlyName':

cpudetect.c:241: warning: comparison between signed and unsigned

cpudetect.c: In function `sigill_handler_sse':

cpudetect.c:265: error: structure has no member named `eip'

cpudetect.c: At top level:

cpudetect.c:224: warning: unused parameter 'regs2'

cpudetect.c:251: warning: unused parameter 'signal'