The following code is based on the old master's documents and Wang DA's notes:
The following uses a arm-linux-gcc4.3.2 to run on my 6410 Development Board (Feiling ok6410a) through: required information can be downloaded in my space
1. Compile the libmad decoding library first:
Download source http://cdnetworks-kr-1.dl.sourceforge.net/project/mad/libmad/0.15.1b/libmad-0.15.1b.tar.gz
(1)
. /Configure -- enable-FPM = arm -- Host = arm-Linux -- disable-shared -- disable-debugging -- prefix =/usr/local/ARM/4.3.2/ARM-None-Linux- gnueabi/lib cc =/usr/local/ARM/4.3.2/bin/ARM-Linux-gcc
(Note: If the command line option "-Fforce-Mem" is displayed"
Solution: VI makefile
Find the string containing "-Fforce-Mem" and delete it.
The reason is that the GCC 3.4 or later version has been removed, so the above error will occur !)
(2)
Make
(3)
Make install
2. Re-compile mplayer (RC2)
(1)
. /Configure -- cc = arm-Linux-GCC -- target = arm-Linux-enable-static -- prefix =/tmp/mplayer-rc2 -- disable-win32dll -- disable-dvdread -- enable-fbdev -- disable- mencoder -- disable-live -- disable-mp3lib -- enable-mad -- enable-libavcodec_a -- language = en_us -- disable-armv5te
-- Disable-armv6 -- With-extraincdir =/usr/local/ARM/4.3.2/ARM-None-Linux-gnueabi/lib/include -- With-extralibdir =/usr/local/ARM/4.3.2 /ARM-None-Linux-gnueabi/lib -- Host-CC = GCC -- enable-ossaudio -- disable-ivtv
(2)
Make
Note:
----------------------------------------------------------------------------
Dsputil_arm_s.s error: Selected processor does not support 'pld [R1]'
Modify the MPlayer-1.0rc2/libavcodec/armv4l/dsputil_arm_s.s and add it above:
# Ifndef have_pld
. Macro PLD Reg
. Endm
# Endif
----------------------------------------------------------------------------
Motion_comp_arm_s.s error: Selected processor does not support 'pld [R1]'
Modify the MPlayer-1.0rc2/libmp eg2/motion_comp_arm_s.s and add it above:
# Ifndef have_pld
. Macro PLD Reg
. Endm
# Endif
(3)
If no error occurs, generate mplayer and copy it to the Development Board root file system/usr/local. After NFS is mounted to the root file system, run the following command on the Super Terminal:
CD/usr/local
./Mplayer./yishengyouni.mp4 to play the./yishengyouni.mp4 file.
You can use QT to create an interface for mplayer ~~
**************************************** **************************************** **************
A description of mplayer configuration parameters from the network is provided.
-- Host-CC = GCC -- cc = arm-Linux-GCC -- target = arm-Linux // The host editor is GCC, and the cross-editing environment is arm-Linux-GCC.
-- Enable-fbdev // enable framebuffer to support. Arm Development Board required
-- Enable-static // static compilation. After compilation is successful, you only need to copy the EXE file.
-- Disable-dvdread -- disable-dvdna v -- disable-dvdread-Internal // all associated with the DVD. ignore this.
-- Disable-libdvdcss-Internal // if this parameter is not added, an error occurs in earlier versions of mplayer.
-- Disable-live // disable streaming media. We cannot use it.
-- Disable-mp3lib -- enable-mad // close the default MP3 decoding library and use the libmad we just compiled
-- Disable-win32dll // disable Win32 dynamic link library support
-- Disable-mencoder // This function is not required for cross-Compiling of mencoder.
-- Disable-ivtv // if it is not added, an error occurs in the ivtv file.
-- Enable-libavcodec_a // enable static libavcodec Decoding
-- Prefix =/usr/local/mplayer 2> & 1 | tee logfile // not explained