The Mplayer compilation process in RedHatEnterpriseLinux6 is very disturbing. Here is a special record: # wgethttp: // www1.mplayerhq. hu/MPlayer/releases/secrets #./configure # make error: libmp code
The Mplayer compilation process in Red Hat Enterprise Linux 6 is very disturbing. Let's take a note:
First
# Wget http://www1.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc4.tar.bz2
# Tar-zxvf MPlayer-1.0rc4.tar.bz2
#./Configure
# Make
Error:
Libmp codecs/vd_mpng.c: In function 'pngreadfn ':
Libmp codecs/vd_mpng.c: 77: error: dereferencing pointer to incomplete type
Libmp codecs/vd_mpng.c: In function 'decode ':
Libmp codecs/vd_mpng.c: 114: error: dereferencing pointer to incomplete type
Libmp codecs/vd_mpng.c: 131: error: dereferencing pointer to incomplete type
Make: *** [libmp codecs/vd_mpng.o] Error 1
After searching for half a day, I finally got confused on Google. Baidu is a bit unappealing:
Bug 354965-media-video-mplayer fails to compile against media-libs-libpng-1_5_x
It turned out to be a BUG. You can only use the latest version.
# Svn checkout svn: // svn. mplayerhq. hu/mplayer/trunk mplayer
#./Configure
There is an error message
No FFmpeg checkout, press enter to download one with git or CTRL + C to abort
Solution:
You may need to install git client and press enter during the above warning time
Press enter to automatically install git to obtain FFmpeg.
#./Configure no way. Use configure again
Error
Error: yasm not found, use -- yasm = ''if you really want to compile
Description: YASM is not found.
# Git clone git: // github.com/yasm/yasm.git
Or
# Wget http://www.tortall.net/projects/yasm/releases/yasm-1.1.0.tar.gz
Install yasm and re-enter mplayer
# Make-j 2
My machine is E5300 dual-core
# Make install
Successful
# Svn update
# Ldconfig
# Mplayer -- help
Finished!
# Mencoder-of lavf-ovc lavc-lavcopts vcodec = flv: vbitrate = 500-lavfopts format = flv-srate 22050-oac mp3lame-lavcopts acodec = mp3: abitrate = 56 Gb/s. mpg-o PrettyGirlWillGotMarried. flv-ofps 16
Error
MPlayer was compiled without libmp 3lame support.
Lame Not Installed
# Wget http://sourceforge.net/projects/lame/files/lame/3.98.4/lame-3.98.4.tar.gz
# Tar-zxvf lame-3.98.4.tar.gz
# Cd lame-3.98.4
#./Configure -- enable-shared
# Make & make install
Re-compile the Mplayer.
Haha, compression rate 50%