Compile MPlayer-1.0rc3 under RedHatLinux9.0

Source: Internet
Author: User
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.