LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-13-2005, 03:14 PM   #1
grovesj2
LQ Newbie
 
Registered: Aug 2005
Posts: 16

Rep: Reputation: 0
MPlayer install questions


I was reading through the README file for the MPlayer. For step 2 it says: "Unpack the codecs archives and put the contents in a directory where MPlayer will find them." How do I do this? There are two codecs files: codec-cfg.c and codec-cfg.h and two directories: libavcodec and libmpcodecs. Keep in mind Im a complete newb>
Thanks
 
Old 08-13-2005, 03:38 PM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Those aren't the correct files. You can get the codec packs here. Is there a directory that it tells you to put them in, or is that all they tell you? I'm not using MPlayer, but am using the codecs with Xine/Totem, so I put them in /usr/lib/win32.

Extract the archive: $ tar xjvf filename.tar.bz2

Change to the newly created directory: $ cd filename

Change to root:

$ su
Password: <enter root pass>

Create directory for codecs: # mkdir /usr/lib/win32

Move the files from where they are to that new directory: # mv * /usr/lib/win32

I'm not sure if MPlayer wants them in a specific place or not, again, as I don't use it, but that's the general procedure anyway.
 
Old 08-13-2005, 03:52 PM   #3
grovesj2
LQ Newbie
 
Registered: Aug 2005
Posts: 16

Original Poster
Rep: Reputation: 0
Ok , so I got the codecs and extracted them to the appropriate dir. When I did the next step, which was to run ./configure this is what I got:

[root@localhost MPlayer-1.0pre7]# ./configure
Detected operating system: Linux
Detected host architecture: i386
Checking for cc version ... 4.0.1, bad
Checking for gcc version ... 4.0.1, bad
Checking for gcc-3.4 version ... not found
Checking for gcc-3.3 version ... not found
Checking for gcc-3.2 version ... not found
Checking for gcc-3.1 version ... not found
Checking for gcc3 version ... not found
Checking for gcc-3.0 version ... not found
Checking for cc version ... 4.0.1, bad

*** Please downgrade/upgrade C compiler to version gcc-2.95.x or gcc-3.x! ***

You are not using a supported compiler. We do not have the time to make sure
everything works with compilers other than the ones we use. Use either the
same compiler as we do, or use --disable-gcc-checking but DO *NOT* REPORT BUGS
unless you can reproduce them after recompiling with a 2.95.x or 3.x version!

Note for gcc 2.96 users: Some versions of this compiler are known to miscompile
mplayer and lame (which is used for mencoder). If you get compile errors,
first upgrade to the latest 2.96 release (minimum 2.96-85) and try again.
If the problem still exists, try with gcc 3.x (or 2.95.x) *BEFORE* reporting
bugs!

GCC 2.96 IS NOT AND WILL NOT BE SUPPORTED BY US !

*** For details please read DOCS/HTML/en/users-vs-dev.html ***


Error: Bad gcc version

Check "configure.log" if you do not understand why it failed.



Now should I just follow the instructions and disable gcc or should I download the appropriate version and if so how do I do that?


Thanks
 
Old 08-13-2005, 04:37 PM   #4
JunctaJuvant
Member
 
Registered: May 2003
Location: Wageningen, the Netherlands
Distribution: OS X & FreeBSD
Posts: 488

Rep: Reputation: Disabled
The configure script does not detect any version of gcc, so it appears you don't have a working C compiler installed. You need gcc to be able to compile mplayer (and just about every other program), and as such it is NOT optional. You can use the search function here on LQ.org or google to find out how to install gcc on your system. Hope that helps.
 
Old 08-13-2005, 04:53 PM   #5
grovesj2
LQ Newbie
 
Registered: Aug 2005
Posts: 16

Original Poster
Rep: Reputation: 0
It found gcc 4.0.1 but it says that it is not a good compiler to use for MPlayer. When I tried installing with the check compiler disabled it told me that it could install but it gave me a warning that I would have a lot of bugs and crashes in MPlayer. Has anyone installed MPlayer using gcc 4.x and if so, have you had any problems?
Thanks
 
Old 08-13-2005, 04:55 PM   #6
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Quote:
Originally posted by grovesj2
It found gcc 4.0.1 but it says that it is not a good compiler to use for MPlayer. When I tried installing with the check compiler disabled it told me that it could install but it gave me a warning that I would have a lot of bugs and crashes in MPlayer. Has anyone installed MPlayer using gcc 4.x and if so, have you had any problems?
Thanks
Why not try it and find out?
 
Old 08-13-2005, 09:10 PM   #7
grovesj2
LQ Newbie
 
Registered: Aug 2005
Posts: 16

Original Poster
Rep: Reputation: 0
To late I already got it using yum...I added freshrpms repo and it has a built package for mplayer.
Thanks anyway
 
Old 08-28-2005, 07:46 PM   #8
copolii
LQ Newbie
 
Registered: Feb 2005
Location: Richmond BC
Posts: 19

Rep: Reputation: 0
mplayer and gcc4

you wouldnt want to compile it with gcc4 anyways ... the only way i got it to compile was to compile with CC='gcc -V 3.2' but every once in a while the GUI crashes with a segmentation fault (sig 11) I tried the exact same file with the exact same settings without the GUI and it was fine ... so I'm guessing the GUI has a problem. you're better off with the pre-compiled rpm (unless it crashes too )
 
Old 08-28-2005, 11:01 PM   #9
grovesj2
LQ Newbie
 
Registered: Aug 2005
Posts: 16

Original Poster
Rep: Reputation: 0
Yea, I installed it using YUM and have had no problems with it so far (Although, I never use the GUI).
Thanks

Jesse
 
Old 09-09-2005, 07:11 PM   #10
tsarlz
LQ Newbie
 
Registered: Aug 2005
Posts: 13

Rep: Reputation: 0
I also get this kind of error. And i want to configure my Mplayer gui with this command.

what could you suggest in order to solve this error? i will not resort to the yum install and livna repository rpms.

i try to install gcc 3.2 but i cannot make it configure right also..


please help

[root@localhost MPlayer-1.0pre7]# ./configure
Detected operating system: Linux
Detected host architecture: i386
Checking for cc version ... 4.0.1, bad
Checking for gcc version ... 4.0.1, bad
Checking for gcc-3.4 version ... not found
Checking for gcc-3.3 version ... not found
Checking for gcc-3.2 version ... not found
Checking for gcc-3.1 version ... not found
Checking for gcc3 version ... not found
Checking for gcc-3.0 version ... not found
Checking for cc version ... 4.0.1, bad

*** Please downgrade/upgrade C compiler to version gcc-2.95.x or gcc-3.x! ***
 
Old 09-09-2005, 07:31 PM   #11
grovesj2
LQ Newbie
 
Registered: Aug 2005
Posts: 16

Original Poster
Rep: Reputation: 0
I didnt use the livna repo I used freshrpms repo
 
Old 09-09-2005, 08:39 PM   #12
copolii
LQ Newbie
 
Registered: Feb 2005
Location: Richmond BC
Posts: 19

Rep: Reputation: 0
Like I said somewhere above, the only way I got it to compile was with CC='gcc -V 3.2', BUT i'm using redhat's gcc3.2 compat package (which I dont think is really GCC 3.2).
another option is to run configure with a switch that'll disable version check for gcc (run ./configure --help) i don't exactly remember what the option is (something like --no-gcc-check)

both ways compiled fine, but there's a problem: when im using the GUI, the program crashes with a sig-11 after the file is finished ... best way would be to use rpms off livna or freshrpms ... it seems to have worked for many others.
Otherwise, if you're up to it, you can either convince the Mplayer guys to switch to gcc 4 or see if u can mess around with the code and fix it for gcc 4.
There's also apparently a patch, but I haven't been able to get it ... all i've gotten are dead links
good luck
 
Old 10-18-2005, 05:21 AM   #13
csant
LQ Newbie
 
Registered: Oct 2005
Posts: 1

Rep: Reputation: 0
With http://dev.gentoo.org/~halcy0n/mplay...re7-gcc4.patch and

$ ./configure ./configure --disable-gcc-checking

I managed to compile fine with gcc4.

/c
 
Old 10-19-2005, 05:21 PM   #14
copolii
LQ Newbie
 
Registered: Feb 2005
Location: Richmond BC
Posts: 19

Rep: Reputation: 0
thanks very much for the link, I've pathced it and re-compiled it, but now I don't think that was the main problem. I think the problem lies somewhere in the WMV9 codec because my MPlayer does NOT crash when I play mpeg or avi files, but it crashes (SIG 11) after a WMV file has finished. could someone confirm this on a "valid" compile (i.e. with gcc 3.4.x) and report it to mplayer? I can't do that because my GCC is version 4.0.1 and they'll kick me butt if I submit a gcc4 bug. I've been trying to compile gcc3 with a suffix so I can use both gcc versions when i need to, but I've been having problems with 'make bootstrap' so until I figure that out I wont be able to do anything.
Cheers.
 
Old 11-16-2005, 10:29 PM   #15
DForsyth
LQ Newbie
 
Registered: Mar 2004
Posts: 2

Rep: Reputation: 0
If your running FC, you could try.....
./configure --cc=/usr/bin/gcc32
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
two questions about MENCODER and MPLAYER v2lk Linux - Software 6 06-26-2004 07:04 PM
mplayer questions--urgent taoweijia Linux - Software 2 10-08-2003 10:23 PM
How to install mplayer gui after installing mplayer kaega2 Linux - Software 5 10-07-2003 11:44 AM
Mplayer and XMMS questions Harp00 Linux - Newbie 1 09-27-2003 01:04 PM
mplayer questions mohapi Linux - Software 10 05-27-2003 11:41 AM


All times are GMT -5. The time now is 04:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration