mplayer_r29702 cross compile

来源:互联网 发布:2016淘宝刷单新规 编辑:程序博客网 时间:2024/05/01 11:02

# !/bin/sh
ARGS=
#ARGS="$ARGS --cc=arm-linux-gcc"
ARGS="$ARGS --cc=arm_v5t_le-gcc"
ARGS="$ARGS --as=arm_v5t_le-as"
ARGS="$ARGS --host-cc=gcc"
ARGS="$ARGS --target=arm-v4l-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-armvfp"
#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"
#ARGS="$ARGS --disable-win32"
ARGS="$ARGS --enable-fbdev"
ARGS="$ARGS --disable-live"
ARGS="$ARGS --disable-dvdread-internal"

echo "./configure $ARGS"
./configure $ARGS
#./configure --cc=arm-elf-gcc --host-cc=gcc --target=arm-linux

 

 

copy dsputil_arm_s.o from MPlayer-1.0rc2/libavcodec/armv4l

 

compile OK, but error while running:

 

# mplayer_29702 f35b.wmv                                                       
MPlayer SVN-r29702-3.4.3 (C) 2000-2009 MPlayer Team                            
Terminal type `linux' is not defined.                                          
                                                                               
Playing f35b.wmv.                                                              
ASF file format detected.                                                      
[asfheader] Audio stream found, -aid 1                                         
[asfheader] Video stream found, -vid 2                                         
VIDEO:  [WMV2]  320x240  24bpp  1000.000 fps  542.2 kbps (66.2 kbyte/s)        
==========================================================================     
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family               
[wmv2 @ 0x5e03b0]codec type or id mismatches                                   
Could not open codec.                                                          
                                                                               
                                                                               
MPlayer interrupted by signal 11 in module: init_video_codec                   
- MPlayer crashed by bad usage of CPU/FPU/RAM.                                 
  Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and         
  disassembly. Details in DOCS/HTML/en/bugreports_what.html#bugreports_crash.  
- MPlayer crashed. This shouldn't happen.                                      
  It can be a bug in the MPlayer code _or_ in your drivers _or_ in your        
  gcc version. If you think it's MPlayer's fault, please read                  
  DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and 
  won't help unless you provide this information when reporting a possible bug.
#

 

 

MP3 file can be played.

 

 

原创粉丝点击