[MPlayer-users] Re: How to compile mplayer with enable-armv5te&iwmmxt
dmantipov
dmantipov at yandex.ru
Fri Jan 26 19:28:31 CET 2007
Hello.
1. 'Error: selected processor does not support...' means this is a problem with your compiler, not with MPlayer. Go to libavcodec and compile armv4l/dsputil_iwmmxt.c with '--save-temps -fverbose-asm', then look at the beginning of assembly output. With my cross compiler, it looks like the following (gcc 3.4.3):
@ GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
@ options passed: -fpreprocessed -march=iwmmxt -mtune=iwmmxt
@ -mfloat-abi=soft -mfpu=vfp -auxbase -O4 -Wdeclaration-after-statement
@ -ffast-math -fomit-frame-pointer -fverbose-asm
@ options enabled: -feliminate-unused-debug-types -fdefer-pop
@ -fomit-frame-pointer -foptimize-sibling-calls -funit-at-a-time
@ -fcse-follow-jumps -fcse-skip-blocks -fexpensive-optimizations
@ -fthread-jumps -fstrength-reduce -funswitch-loops -fpeephole -fforce-mem
@ -ffunction-cse -fkeep-static-consts -fcaller-saves -freg-struct-return
@ -fweb -fgcse -fgcse-lm -fgcse-sm -fgcse-las -floop-optimize
@ -fcrossjumping -fif-conversion -fif-conversion2 -frerun-cse-after-loop
@ -frerun-loop-opt -fdelete-null-pointer-checks -fschedule-insns
@ -fschedule-insns2 -fsched-interblock -fsched-spec -fsched-stalled-insns
@ -fsched-stalled-insns-dep -fbranch-count-reg -funwind-tables
@ -freorder-blocks -freorder-functions -frename-registers -fcprop-registers
@ -fcommon -fverbose-asm -fregmove -foptimize-register-move
@ -fargument-alias -fstrict-aliasing -fmerge-constants
@ -fzero-initialized-in-bss -fident -fpeephole2 -ffinite-math-only
@ -fguess-branch-probability -funsafe-math-optimizations -march=iwmmxt
@ -mtune=iwmmxt -mfpu=vfp -mfloat-abi=soft
Note '-march=iwmmxt' and '-mtune=iwmmxt' here. If your assembly output doesn't include these options, add them to CFLAGS while configuring MPlayer. If you're compiling the kernel for your board yourself, check the compiler flags used to compile the kernel (for 2.6, you need to run 'make V=1' to see command lines) and try to add the same '-march=', '-mcpu=' and '-mtune=' to CFLAGS for mplayer.
2. Use -enable-iwmmxt and try an attached patch (against the latest SVN trunk) - it should fix armv4l/mpegvideo_armv5te.c and other stuff needed.
3. Ask the similar questions in mplayer-dev-eng@, not in mplayer-users@ :-).
Good luck,
Dmitry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: arm.patch
Type: application/octet-stream
Size: 2849 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20070126/d09b3eea/attachment.obj>
More information about the MPlayer-users
mailing list