I. document Preparation 1. main Program: MPlayer-1.0rc32.Codecs: essential-20071007.tar.bz23.Wincodecs: windows-essential-20071007.zip4. skin: KDE-0.3.tar.bz2 2. install the encoding package in the/usr/lib/codecs and/usr/lib/wincodecs directories. Create a folder first. (Or
I. Data Preparation
1. Main Program:MPlayer-1.0rc3
2. Codecs:Essential-20071007.tar.bz2
3. Wincodecs:Windows-essential-20071007.zip
4. Skin:KDE-0.3.tar.bz2
Ii. Installation ProcessTo install the encoding package in the/usr/lib/codecs and/usr/lib/wincodecs directories, create a folder first. (You can also specify a specific folder during the compilation process)
1. Install the source code package
# Mkdir/usr/lib/codecs
# Mkdir/usr/lib/wincodecs
# Tar jxvf essential-20071007.tar.bz2
# Unzip windows-essential-20071007.zip
# Mv essential-20071007/*/usr/lib/codecs
# Mv windows-essentials-20071007/*/usr/lib/wincodecs
2. Compile and install MPlayer
# Tar jxvf MPlayer-1.0rc1.tar.bz2
# Cd mplayer-1.0pre1
#./Configure -- prefix =/usr/local/-- enable-gui -- enable-freetype-- Codecsdir =/usr/lib/codecs/ -- Win32codecsdir =/usr/lib/wincodecs/-- Language = zh_CN
Next proceed
# Make
An error occurs here.
/Usr/include/netinet/in. h: 259: parse error before '('token/usr/include/netinet/in. h: 259: parse error before "_ u32"/usr/include/netinet/in. h: 260: parse error before '('token/usr/include/netinet/in. h: 260: parse error before "_"/usr/include/netinet/in. h: 262: parse error before '('token/usr/include/netinet/in. h: 262: parse error before "_ u32"/usr/include/netinet/in. h: 264: parse error before '('token/usr/include/netinet/in. h: 264: parse error before "_ 168" stream_dvd.c: In function 'dvd _ parse_chapter_range ': stream_dvd.c: warning: passing arg 2 of 'strl' from incompatible pointer type make [1]: *** [stream_dvd.o] Error 1 make [1]: leaving directory '/home/monde/MPlayer-1.0rc2/stream' make: *** [stream/stream. a] Error 2
The solution is as follows (Mplayer does not recognize ntohl, btohs, htonl, and so on)
Edit/usr/include/netinet/in. h file
[Root @ localhost MPlayer-1.0rc3] # vi/usr/include/netinet/in. h
Add the following code under _ BEGIN_DECLS:
# Undef ntohl
# Undef ntohs
# Undef htonl
# Undef htons
Execute make clean and then execute make.
# Make install