Koozali.org: home of the SME Server

Installing mplayer

Offline mhr

  • **
  • 24
  • +0/-0
Installing mplayer
« on: January 14, 2005, 11:59:08 PM »
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=79
2. Install gcc-3.2.x
    Download
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,
Code: [Select]
tar -xvzf gcc-core-XXX.tar.gz[/list]
    create a working folder and start the compile
Code: [Select]
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:
Code: [Select]
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:
Code: [Select]
tar -xjf rp9codecs-20040626.tar.bz2
mv rp9codecs-20040626 /usr/local/lib/codecs

Untar the mplayer sourc:
Code: [Select]
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...
Code: [Select]
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:
Code: [Select]
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
        ...

        cnp

        Re: Installing mplayer
        « Reply #1 on: December 10, 2005, 09:44:20 AM »
        Quote from: "mhr"

        Solution:
        1. Install the dev-tools http://no.longer.valid/mylinks/viewcat.php?cid=79


        Being relatively new to Linux I must admit that http://no.longer.valid/mylinks/viewcat.php?cid=79 didn't bring me any further.

        It says "Solution: install and run perl digger". But how?

        Any help on this would be highly appreciated.

        The rest of your howto is very usefull, even for an inexperienced user as myself. Thanks Michael.

        Regards
        Claus

        Offline mhr

        • **
        • 24
        • +0/-0
        Installing mplayer
        « Reply #2 on: December 11, 2005, 07:15:29 PM »
        Yeah, that link seems rather wrong. Don't know whether it was correct at the time of writing.

        A quick search for dev tools brought up the following link:

        http://www.eelriver.com/sme/e-smith-devtools-1.12.0-01.noarch.rpm

        Good luck!

        Michael
        ...

        cnp

        Installing mplayer
        « Reply #3 on: December 12, 2005, 11:26:11 AM »
        Quote from: "mhr"

        http://www.eelriver.com/sme/e-smith-devtools-1.12.0-01.noarch.rpm

        Good luck!
        Michael


        Thanks Michael

        I hope that you have the time to help me a bit further on this one.

        When I start the compile I notice that the message goes; "Configuring for a i686-pc-linux-gnu host"

        Running my SME-Server on VIA EPIA-800 I think that it should have said something with i386 instead.

        And that might be why I get the following error messages:
        *** The command 'cc -o conftest -g   conftest.c' failed
        *** You must set the environment variable CC to a working compiler


        Any hints on how I get this working correctly?

        Regards
        Claus

        Offline mhr

        • **
        • 24
        • +0/-0
        Installing mplayer
        « Reply #4 on: December 12, 2005, 11:48:38 AM »
        Quote from: "cnp"

        Running my SME-Server on VIA EPIA-800 I think that it should have said something with i386 instead.


        Exactly - I had to do the same (also using the C3/800). I don't know exactly when or where you have to do this, but I think it's when running configure. Run "configure --help" for more information.

        Michael
        ...