[MPlayer-users] mplayer compile for arm?

Dennis Borgmann dennis.borgmann at googlemail.com
Fri Mar 25 15:05:50 CET 2011


Hi,

this configure-line did the trick:

./configure --enable-cross-compile --cc=arm-linux-gcc --as=arm-linux-as --host-cc=gcc --target=arm-linux --prefix=$TGT --disable-network --disable-x11 \
--disable-gui --disable-armv6 --disable-armv6t2 --disable-armvfp --disable-neon --disable-iwmmxt --disable-libmpeg2 --disable-libmpeg2-internal --disable-mencoder --disable-tga --disable-pnm \
--disable-md5sum --disable-yuv4mpeg --disable-tv --disable-ftp --disable-real --disable-xanim --disable-v4l2 --disable-dvb --disable-fbdev --disable-dvdnav --disable-libdvdcss-internal \
--disable-dvdread-internal --disable-vcd --disable-tremor-internal --disable-faad-internal --disable-ossaudio --disable-mp3lib --enable-static --extra-cflags="-mcpu=arm920t -O3" --disable-libvorbis

Thanks anyway!

Dennis


Alexander Stein schrieb:
> Hello,
>
> On Thursday 24 March 2011, 13:59:34 Dennis Borgmann wrote:
>   
>> I have been trying to compile mplayer for ARM for some days now without
>> success. I cannot find any information about it on the internet, that
>> could help me out. I'd be pleased to just have a binary, but I even
>> couldn't find any of such. My target is a AT91-SAM9260. I am working
>> with MPlayer-1.0rc4. I do not need video, I just need audio, and of
>> audio, I only need the ability of mplayer to playback mp3-files.
>>
>> This is my command to get to compile mplayer:
>>
>> export CFLAGS="-mcpu=arm920t -O3"
>> make clean
>> CFLAGS=$CFLAGS ./configure --enable-cross-compile --cc=arm-linux-gcc \
>> --as=arm-linux-as --host-cc=gcc --target=arm-linux --prefix=$TGT \
>> --disable-network --disable-x11 --disable-gui --enable-armv5te \
>> --disable-armv6 --disable-armv6t2 --disable-armvfp --disable-neon \
>> --disable-iwmmxt --disable-libmpeg2 --disable-libmpeg2-internal \
>> --disable-mencoder --disable-tga --disable-pnm --disable-md5sum \
>> --disable-yuv4mpeg --disable-tv --disable-bitmap-font --disable-ftp \
>> --disable-real --disable-xanim --disable-v4l2 --disable-dvb \
>> --disable-fbdev --disable-dvdnav --disable-libdvdcss-internal \
>> --disable-dvdread-internal --disable-vcd --disable-tremor-internal \
>> --disable-faad-internal --disable-ossaudio --disable-mp3lib
>> make
>>     
>
> Well, I can't say much about audio, as I don't use it. But compiling for arm 
> shouldn't be a problem at all.
> I use ptxdist to build my target rootfs and this is from the config.log ( hope 
> the linbreak doesn't corrupted too much):
>   
>> configuration: --prefix=/usr --disable-runtime-cpudetection --enable-cross-
>>     
> compile --cc=arm-none-linux-gnueabi-gcc --as=arm-none-linux-gnueabi-as --
> ar=arm-none-linux-gnueabi-ar --host-cc=gcc --ranlib=arm-none-linux-gnueabi-
> ranlib --language=en --target=arm-none-linux-gnueabi --extra-cflags=-isystem 
> /ptxdist/myboard/platform-myboard/sysroot-target/include -isystem 
> /ptxdist/myboard/platform-myboard/sysroot-target/usr/include --extra-libs=-
> L/ptxdist/myboard/platform-myboard/sysroot-target/lib -
> L/ptxdist/myboard/platform-myboard/sysroot-target/usr/lib -Wl,-rpath-link -
> Wl,/ptxdist/myboard/platform-myboard/sysroot-target/lib -Wl,-rpath-link -
> Wl,/ptxdist/myboard/platform-myboard/sysroot-target/usr/lib --enable-iconv --
> disable-vidix --disable-vidix-pcidb --disable-dhahelper --disable-
> svgalib_helper --disable-gl --disable-matrixview --disable-dga2 --disable-dga1 
> --disable-vesa --disable-svga --disable-sdl --disable-kva --disable-aa --
> disable-caca --disable-ggi --disable-ggiwmh --disable-direct3d --disable-
> directx --disable-dxr2 --disable-dxr3 --disable-ivtv --disable-v4l2 --disable-
> dvb --disable-mga --disable-xmga --disable-xvmc --disable-vdpau --disable-vm 
> --disable-xinerama --disable-xshape --disable-mlib --disable-3dfx --disable-
> tdfxfb --disable-s3fb --disable-wii --disable-directfb --disable-zr --disable-
> bl --disable-tdfxvid --disable-xvr100 --disable-tga --disable-pnm --disable-
> md5sum --disable-yuv4mpeg --disable-corevideo --disable-quartz --disable-
> mencoder --enable-mplayer --disable-gui --disable-gtk1 --disable-largefiles --
> disable-termcap --disable-termios --disable-langinfo --disable-lirc --disable-
> lircc --disable-joystick --disable-apple-remote --disable-apple-ir --disable-
> vm --disable-xf86keysym --disable-radio --disable-radio-capture --disable-
> radio-v4l2 --disable-radio-bsdbt848 --disable-tv-bsdbt848 --disable-pvr --
> disable-rtc --disable-network --disable-winsock2_h --disable-smb --disable-
> live --disable-nemesi --disable-librtmp --disable-vcd --disable-bluray --
> disable-dvdnav --disable-dvdread --disable-dvdread-internal --disable-
> libdvdcss-internal --disable-cdparanoia --disable-cddb --disable-freetype --
> disable-fontconfig --disable-unrarexec --disable-menu --disable-sortsub --
> disable-fribidi --disable-enca --disable-maemo --disable-macosx-finder --
> disable-macosx-bundle --disable-inet6 --disable-gethostbyname2 --disable-ftp 
> --disable-vstream --disable-w32threads --disable-ass-internal --disable-ass --
> disable-rpath --disable-gif --disable-png --disable-libcdio --disable-liblzo 
> --disable-win32dll --disable-qtx --disable-xanim --disable-real --disable-xvid 
> --disable-xvid-lavc --disable-x264 --disable-x264-lavc --disable-libdirac-lavc 
> --disable-libschroedinger-lavc --disable-libvpx-lavc --disable-libnut --
> disable-libpostproc_a --disable-libpostproc_so --disable-tremor-internal --
> disable-tremor-low --disable-tremor --disable-libvorbis --disable-speex --
> disable-libgsm --disable-theora --disable-faad --disable-faad-internal --
> disable-faad-fixed --disable-faac --disable-faac-lavc --disable-ladspa --
> disable-libbs2b --disable-libdv --disable-mpg123 --disable-mad --disable-
> mp3lame --disable-mp3lame-lavc --disable-toolame --disable-twolame --disable-
> xmms --disable-libdca --disable-mp3lib --disable-liba52 --disable-musepack --
> disable-libopencore_amrnb --disable-libopencore_amrwb --disable-libopenjpeg --
> disable-alsa --disable-ossaudio --disable-arts --disable-esd --disable-pulse 
> --disable-jack --disable-openal --disable-nas --disable-sgiaudio --disable-
> sunaudio --disable-kai --disable-dart --disable-win32waveout --disable-
> coreaudio --disable-select --disable-mmx --disable-mmxext --disable-3dnow --
> disable-3dnowext --disable-sse --disable-sse2 --disable-ssse3 --disable-shm --
> disable-altivec --disable-armv5te --disable-armv6t2 --disable-armvfp --
> disable-neon --disable-fastmemcpy --disable-hardcoded-tables --disable-big-
> endian --disable-debug --disable-profile --disable-sighandler --disable-crash-
> debug --disable-dynamic-plugins --disable-tv-v4l1 --enable-tv-v4l2 --disable-
> xv --disable-x11 --enable-fbdev --enable-tv --enable-jpeg --enable-libmpeg2 --
> enable-libmpeg2-internal --disable-iwmmxt --disable-armv6
>
>   
>> Compile output stops at compiling libavformat:
>>
>> (...)
>> AS    arm/mpegvideo_armv5te_s.o
>> arm/mpegvideo_armv5te_s.S: Assembler messages:
>> arm/mpegvideo_armv5te_s.S:43: Error: selected processor does not support
>> `ldrd r4,[r0,#0]'
>>     
>
> I guess --enable-armv5te doesn't work together with -mcpu=arm920t, but I'm not 
> sure.
>
> HTH
> Alexander
>   



More information about the MPlayer-users mailing list