Jump to content
xisto Community
Sign in to follow this  
jedipi

Complie Mplayer With Gcc4.0 Patch file is provided

Recommended Posts

GCC 4.0 comes with the new Fedora core 4.

MPlayer cannot be compiled in this new environment.

If you have Fedora core 4 or upgraded to GCC4 and have problems on compiling MPlayer,

now worry, follow the steps:

 

1. Download all neccessry files. They are:

 

* the source code of mplayer, I prefer the latest release: MPlayer-1.0pre7.tar.bz2

* mplayer-1.0_pre7-gcc4.patch. As you can see, this is a patch file for MPlayer 1.0pre7,

In order the compile mplayer under gcc-4.0 environment, this patch must be applied

This patch file can be download here:

http://forums.xisto.com/no_longer_exists/

* Codecs. You can download either essential-codecs or all-codecs

* some codecs are optional, such as LIVE.COM, lzo and libmad etc..

htto://https://login.live.com/jsDisabled.srf?mkt=EN-US&lc=1033

* ttf fonts.

Files can be found in MPlayer's website.

http://forums.xisto.com/no_longer_exists/

 

2. Compile

2.1 prepare codecs

CONSOLE

# tar jxf all-20050412.tar.bz2

# mv all-20050412 /usr/local/lib/codecs

# ln -s /usr/local/lib/codecs /usr/lib/win32

2.2 preparation for MPlayer source (apply the patch)

CONSOLE

# tar jxf MPlayer-1.0pre7.tar.bz2

# cd MPlayer-1.0pre7

# patch -p1 < ../mplayer-1.0_pre7-gcc4.patch

patching file liba52/imdct.c

patching file libavcodec/avcodec.h

patching file libavcodec/common.h

patching file libavcodec/libpostproc/postprocess_template.c

patching file libmpdemux/frequencies.h

patching file libvo/aclib_template.c

patching file mmx.h

patching file postproc/swscale_template.c

 

2.3 install LIVE.COM plugin (optional)

CONSOLE

# tar zxf live.2005.04.23.tar.gz

# cd live

# ./genMakefiles linux

# make

# cd ..

# mv live /usr/lib/live

 

2.4 compile and install

CONSOLE

# cd MPlayer-1.0pre7

# ./configure –-enable-live

# make && make install

 

3. Enjoy it.

 

NOTIC:

GUI is not enabled as I don't have gtk installed in my system.

add '--enable-gui' after './configure' if you wannt to user GUI

add '–-enable-live' after './configure' if you have LIVE.COM installed.

Share this post


Link to post
Share on other sites

The problem of compiling with GCC4 has been fixed in the new CVS version mplyer.
Download the CVS mplayer for MPlayer website.
http://www.mplayerhq.hu/homepage/design7/dload.html

it is in daily CVS snapshot source (2nd row of the table)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.