For the archives: a little "howto install mplayer on a sme 6.0.1 box".
Background: I'm running SlimServer (
http://www.slimdevices.com) on my server and wanted to use the latest AlienBBC plugin which allows streaming realplayer streams to the SqueezBox. This plugin uses mplayer for the conversion.
Problem:There's no recent mplayer around which would run on a stripped down box as is sme 6.0 (tons of other rpms required). And there are no dev tools on that distro. And the latest mplayer source does not like the gcc 2.96 which is available for it, but asks for gcc-3.2.x...
Solution:1. Install the dev-tools
http://no.longer.valid/mylinks/viewcat.php?cid=792. Install gcc-3.2.x
http://ftp://ftp.club-internet.fr/pub/gcc/gcc-3.2.3/gcc-core-3.2.3.tar.gz (you only need the -core- stuff!), untar in your folder of choice,
tar -xvzf gcc-core-XXX.tar.gz
[/list]
create a working folder and start the compile
mkdir gcc-build
cd gcc-build
../gcc-3.XXX/configure --prefix=/usr/local/gcc3
The --prefix is very important as you want to install gcc-3 alongside the existing compiler! Compile and install gcc:
make bootstrap
make install
[/list]
3. Build mplayer
Get the latest mplayer tarball from
http://www.mplayerhq.hu/homepage/design7/dload.html[/list]
Get the codecs you need from
http://www.mplayerhq.hu/MPlayer/releases/codecs/, eg. rp9codecs-20040626.tar.bz2, untar and install the codec:
tar -xjf rp9codecs-20040626.tar.bz2
mv rp9codecs-20040626 /usr/local/lib/codecs
Untar the mplayer sourc:
tar -xjf MPlayer-xyz.tar.bz2
cd MPlayer-xyz
Prepare the mplayer compilation: disable anything you don't need, especially all the video stuff - my sme6 is running headless...
cd
./configure --disable-mencoder --disable-tv --disable-edl --disable-rtc --disable-dvdread --disable-mpdvdkit --disable-cdparanoia --disable-fontconfig --disable-unrarlib --disable-sortsub --disable-ftp --disable-libmpeg2 --disable-vidix --disable-tga --disable-pnm --disable-pnm --disable-md5sum --disable-arts --cc=/usr/local/gcc3/bin/gcc --host-cc=/usr/local/gcc3/bin/gcc --disable-jpeg --disable-gif --disable-liblzo --disable-dvb --disable-sdl --disable-xvid --disable-toolame --disable-mad --disable-png --disable-win32 --disable-macosx --disable-menu
Be sure to correctly define --cc and --host-cc: they must reflect the path you defined when compiling gcc! If everything's fine:
make
make install
Test mplayer. If it asks for some 3rd party rpms, verify whether you have disabled everything you don't want. And start again...[/list]
Documentation:http://www.mplayerhq.hu/[/list]
http://www.mplayerhq.hu/DOCS/HTML/en/install.html[/list]
http://www.mplayerhq.hu/DOCS/HTML/en/gcc-296.html[/list]
Good luck!
Michael