Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mini-solution for the mplayer 32bit problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Reikinio
Apprentice
Apprentice


Joined: 14 Aug 2005
Posts: 203
Location: Uruguay

PostPosted: Sat Aug 20, 2005 11:50 am    Post subject: Mini-solution for the mplayer 32bit problem Reply with quote

Information: using red-hat/fedora rpms :x
all credit goes to https://forums.gentoo.org/viewtopic.php?t=250235 (Corona688)

Warning!
Doing this can cause severe drain bamage

emerge this first:
Code:

#win32codecs:
echo "media-libs/win32codecs ~amd64" >> /etc/portage/package.keywords
echo "media-libs/win32codecs real" >> /etc/portage/package.use
emerge win32codecs
emerge rpm2targz (probably already there)


Getting the rpms:
Mplayer Rpm's:
Don't use the ones posted on http://www.mplayerhq.hu/homepage/design7/dload.html unless you want mplayer CLI only.
Download it from here instead:
http://ftp.freshrpms.net/pub/freshrpms/fedora/linux/4/mplayer/
lazy people: http://ftp.freshrpms.net/pub/freshrpms/fedora/linux/4/mplayer/mplayer-1.0-0.16.pre7.2.fc4.i386.rpm

Other needed stuff:
libtermcap:
ftp://fr.rpmfind.net/linux/redhat/ Download
lazy people: ftp://fr.rpmfind.net/linux/redhat/9/en/os/i386/RedHat/RPMS/libtermcap-2.0.8-35.i386.rpm

Download the essential codecs from http://www.mplayerhq.hu/homepage/design7/dload.html

Let's start:
Code:
rpm2targz *.rpm
tar -zxf mplayer*.tar.gz
tar -zxf libtermcap*.tar.gz

Note: This will dump all the binaries into the local directories etc, lib, and usr.

Quote:

Next, make the directory /var/lib/misc to keep these craven binaries in.
You don't want foreign redhat binaries cluttering up your system in random
places unaccounted for, do you? No, no you don't. Nothing 'till now has needed
root permissions, but this stuff does


Code:


mv lib/libtermcap.so.2* /var/lib/misc/
mv usr/lib/* /var/lib/misc/

cd /lib32
ln -s /var/lib/misc/libtermcap.so.2.0.8 libtermcap.so.2
ln -s /var/lib/misc/libtermcap.so.2.0.8 libtermcap.so.2
ls -l libtermcap.so.2
#go back to the dir you were before

cp -p usr/bin/* /usr/bin/


Dealing with dependency hell:
For mplayer:
Code:
 ldd /usr/bin/mplayer | grep found
Example output for mplayer:
        libdvdread.so.3 => not found
        libmad.so.0 => not found
        libdv.so.4 => not found
        libtheora.so.0 => not found
        liblzo.so.1 => not found
        libmp3lame.so.0 => not found
        libxvidcore.so.4 => not found
        libcdda_interface.so.0 => not found
        libcdda_paranoia.so.0 => not found
        libungif.so.4 => not found
        libfribidi.so.0 => not found
        libpostproc.so.0 => not found
        libaa.so.1 => not found
        libXvMCW.so.1 => not found
        libartsc.so.0 => not found
        libesd.so.0 => not found
        liblirc_client.so.0 => not found

Go to www.rpmfind.net, search, download, and install one by one.
for lazy people:
ftp://rpmfind.net/linux/freshrpms/fedora/linux/4/libdvdread/libdvdread-0.9.4-7.2.fc4.i386.rpm
ftp://rpmfind.net/linux/freshrpms/fedora/linux/4/libmad/libmad-0.15.1b-3.2.fc4.i386.rpm
ftp://rpmfind.net/linux/fedora/core/4/i386/os/Fedora/RPMS/libdv-0.103-4.i386.rpm
ftp://rpmfind.net/linux/fedora/core/4/i386/os/Fedora/RPMS/libtheora-1.0alpha4-2.i386.rpm
ftp://rpmfind.net/linux/fedora/extras/4/i386/lzo-1.08-4.i386.rpm
ftp://rpmfind.net/linux/freshrpms/fedora/linux/4/lame/lame-3.96.1-2.2.fc4.i386.rpm
ftp://rpmfind.net/linux/freshrpms/fedora/linux/4/xvidcore/xvidcore-1.0.3-1.2.fc4.i386.rpm
ftp://rpmfind.net/linux/fedora/core/4/i386/os/Fedora/RPMS/cdparanoia-libs-alpha9.8-25.i386.rpm
ftp://rpmfind.net/linux/fedora/core/4/i386/os/Fedora/RPMS/libungif-4.1.3-3.i386.rpm
ftp://rpmfind.net/linux/fedora/core/4/i386/os/Fedora/RPMS/fribidi-0.10.4-8.i386.rpm
ftp://rpmfind.net/linux/freshrpms/fedora/linux/4/mplayer/libpostproc-1.0-0.16.pre7.2.fc4.i386.rpm
ftp://rpmfind.net/linux/freshrpms/fedora/linux/3/aalib/aalib-1.4.0-5.1.fc3.fr.i386.rpm
ftp://rpmfind.net/linux/freshrpms/fedora/linux/4/libXvMCW/libXvMCW-0.9.3-1.2.fc4.i386.rpm
ftp://rpmfind.net/linux/fedora/core/4/i386/os/Fedora/RPMS/arts-1.4.0-1.i386.rpm
ftp://rpmfind.net/linux/fedora/core/4/i386/os/Fedora/RPMS/esound-0.2.35-5.i386.rpm
ftp://rpmfind.net/linux/fedora/extras/4/i386/lirc-0.7.1-3.i386.rpm

Code:

mkdir deps
cd deps
copy them over here
rpm2targz *.rpm
tar -zxf <each_file>.tar.gz
mv usr/lib/* /var/lib/misc/

/sbin/ldconfig


Linking libraries:
Code:
cd /lib32
ldd /usr/bin/mplayer | grep found
//create link for each library
ln -s /var/lib/misc/libdvdread.so.3.0.0 libdvdread.so.3 
ln -s /var/lib/misc/libmad.so.0.2.1 libmad.so.0
ln -s /var/lib/misc/libdv.so.4.0.1 libdv.so.4
ln -s /var/lib/misc/libtheora.so.0.1.0 libtheora.so.0
ln -s /var/lib/misc/liblzo.so.1.0.0 liblzo.so.1
ln -s /var/lib/misc/libmp3lame.so.0.0.0 libmp3lame.so.0
ln -s /var/lib/misc/libxvidcore.so.4.0 libxvidcore.so.4
ln -s /var/lib/misc/libcdda_interface.so.0.9.8 libcdda_interface.so.0
ln -s /var/lib/misc/libcdda_paranoia.so.0.9.8 libcdda_paranoia.so.0
ln -s /var/lib/misc/libungif.so.4.1.3 libungif.so.4
ln -s /var/lib/misc/libfribidi.so.0.0.0 libfribidi.so.0
ln -s /var/lib/misc/libpostproc.so.0.0.1 libpostproc.so.0
ln -s /var/lib/misc/libaa.so.1.0.4 libaa.so.1
ln -s /var/lib/misc/libartsc.so.0.0.0 libartsc.so.0
ln -s /var/lib/misc/libesd.so.0.2.35 libesd.so.0
ln -s /var/lib/misc/liblirc_client.so.0.0.0 liblirc_client.so.0

Now, for this piece of shit :): 'libXvMCW.so.1' :
cp deps/usr/X11R6/lib/libXvMCW.so.1 /usr/X11R6/lib32/
ln -s /usr/X11R6/lib32/libXvMCW.so.1 libXvMCW.so.1

mkdir /usr/include/postproc
cp deps/usr/include/postproc/postprocess.h /usr/include/postproc/

/sbin/ldconfig


gmplayer:

Code:
ldd /usr/bin/gmplayer | grep found
Probably nothing


try it, run mplayer, you should get no errors about missing libraries.

Code:

Copying missing codecs(if any) :
cp -i essential-20050412/* /usr/lib32/win32/
rm /usr/lib32/win32/README


Let's finish the damn thing(font && skin):
From the README:
Quote:

Unpack the archive and choose one of the available font sizes. Then copy the
font files of the corresponding size into /usr/local/share/mplayer/font/ or
~/.mplayer/font/ (or whatever you set with './configure --datadir=DIR').

Alternatively you can use a TrueType font installed on your system. Just
make a symbolic link from either /usr/local/share/mplayer/subfont.ttf or
~/.mplayer/subfont.ttf to your TrueType font.


Code:

#using truetype:
# for each user
ln -s /usr/share/fonts/TTF/Vera.ttf .mplayer/subfont.ttf
# or system wide:
ln -s /usr/share/fonts/TTF/Vera.ttf /usr/share/mplayer/subfont.ttf


Installing skin(system wide)
Code:

mkdir /usr/share/mplayer/Skin
cd <whereyouworked>
mv usr/share/mplayer/Skin/default/ /usr/share/mplayer/Skin/

Go get one that you like:
http://www.mplayerhq.hu/homepage/design7/dload.html
I personally like proton.
mv proton /usr/share/mplayer/Skin/


Just Play now
# Don't forget to adjust the mplayer preferences(alsa and stuff)

Notes:
* Some thing that won't work, you have to do some extra stuff if you want them:
For example: lirc
Check the dirs that the respective rpms created, you should see usr/bin there with the needed binaries
* I tested *.mpg *.wmv files with a couple of pr0n movies, they play just fine :lol:

FAQ
Q: mm ok, and what should I do if I want to update mplayer ?
A: Updating mplayer ?? Are you kidding me ? 8O
I will only update mplayer when 64bit codecs show up, and then I will use portage instead of this shit ;)
Back to top
View user's profile Send private message
adsmith
Veteran
Veteran


Joined: 26 Sep 2004
Posts: 1386
Location: NC, USA

PostPosted: Sat Aug 20, 2005 1:47 pm    Post subject: Reply with quote

There's also apparantly this solution: http://sh.nu/download/ebuilds/mplayer/
which is more gentoo-pure, as it is just an overlay
Back to top
View user's profile Send private message
Reikinio
Apprentice
Apprentice


Joined: 14 Aug 2005
Posts: 203
Location: Uruguay

PostPosted: Sat Aug 20, 2005 1:58 pm    Post subject: Reply with quote

Quote:
There's also apparantly this solution: http://sh.nu/download/ebuilds/mplayer/
which is more gentoo-pure, as it is just an overlay

Yes, I know, but it had too many warnings ;)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum