Tuesday, March 06, 2007

Mplayer on Arm linux

http://lists.arm.linux.org.uk/pipermail/linux-arm/2005-February/009391.html

The following is my working note, I really got runnable binary, but the description is some ambiguously as I am not good at English.
So, good luck :-)


fetch tarball from
http://www1.mplayerhq.hu/MPlayer/releases/MPlayer-1.0pre5try2.tar.bz2

untar it, and compile on x86 platform, we need this step because we
need codec-cfg(a executable binary)

./configure
cd libavcodecs
ln -s ../config.h config.h
cd ../libmpcodecs
ln -s ../config.h config.h
make

rename codec-cfg to sth else, for example codec-cfg.x86

and now we compile for ARM
./configure --enable-static --prefix=./install --enable-runtime-cpudetection --cc=arm-linux-gcc --as=arm-linux-as --target=arm-linux --enable-fbdev --enable-ossaudio --disable-mpdvdkit --disable-tv --disable-tv-v4l --disable-tv-v4l2 --disable-tv-bsdbt848 --disable-dvdread --disable-libavformat --disable-x11 --enable-linux-devfs --disable-sdl --disable-mencoder --enable-mad --enable-libavcodec --disable-win32
make

when the ERROR occurs, rename codec-cfg.x86 back to codec-cfg and continue with "make"

/********************/
I found the codec-cfg is wrong.
we should run
"make codec-cfg CC=gcc"
first and then run
"make"
/********************/


No comments: