LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-18-2003, 07:19 AM   #1
Obi Perrin
Member
 
Registered: Nov 2002
Posts: 136

Rep: Reputation: 15
MPlayer-0.90rc2 compile error.


Having used and loved rc1 for the last couple of weeks, I decided to upgrade to rc2. But I've been having a few problems in the process.

It's a mandrake 8.2 system, so the compilers immediately available to me are 2.96 and 3.0.4. Knowing that 2.96 is evil, 3.0.4 was used the first time around.

./configure --enable-gui --enable-largefiles, went fine - and regardless of what the docs said about 3.0.x releases, configure script said it was ok. I then ran make, and it worked for a couple of minutes to leave me with this:

gcc -c -O4 -march=athlon-tbird -mcpu=athlon-tbird -pipe -ffast-math -fomit-frame
-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Ilibmpdemux -I
loader -Ilibvo -I-I/usr/include -I/usr/include/dvdnav -I/usr/include/gtk-1.2 -I
/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/inclu
de/SDL -D_REENTRANT -o mencoder.o mencoder.c
mencoder.c: In function `main':
mencoder.c:397: warning: passing arg 2 of `m_config_register_options' from incom
patible pointer type
mencoder.c: In function `lame_presets_set':
mencoder.c:1417: `MEDIUM_FAST' undeclared (first use in this function)
mencoder.c:1417: (Each undeclared identifier is reported only once
mencoder.c:1417: for each function it appears in.)
mencoder.c:1419: `MEDIUM' undeclared (first use in this function)
make: *** [mencoder.o] Error 1

I ran the same commands over with gcc-2.96. I know, evil, but hey, it should at least compile yeah? Nope. Same error. So then I installed gcc-3.2, ran the commands over, and again, got the same error. I'm guessing at this point that it's not a compiler error, but I can't see anything that's changed much since rc1 and rc2 that would mean I'd have to upgrade any other packages.

Any ideas appreciated
 
Old 01-18-2003, 07:40 AM   #2
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
You may want to investigate the configure option --enable-largefiles a little deeper. I built mine for a P4 without that option and have successfully built two movies well over 3GB filesize.

(I'm trying a ./config + make with those options now....)
 
Old 01-18-2003, 07:51 AM   #3
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Nope. That worked fine from a freshly tarballed folder.

My best guess is to look at your kernel build (precessor type & features), and then if that fails to look at the advanced option in the configure script (mmx. mmx2, 3dnow, etc...)

Which compiler was your kernel built with?
 
Old 01-18-2003, 07:52 AM   #4
Obi Perrin
Member
 
Registered: Nov 2002
Posts: 136

Original Poster
Rep: Reputation: 15
No cigar. It's the same as last time:

mencoder.c: In function `main':
mencoder.c:397: warning: passing arg 2 of `m_config_register_options' from incompatible pointer type
mencoder.c: In function `lame_presets_set':
mencoder.c:1417: `MEDIUM_FAST' undeclared (first use in this function)
mencoder.c:1417: (Each undeclared identifier is reported only once
mencoder.c:1417: for each function it appears in.)
mencoder.c:1419: `MEDIUM' undeclared (first use in this function)
make: *** [mencoder.o] Error 1

I've been looking at the MPlayer site, in which it says in bullet points the new features of rc2. One of those new features is "Presets support for libmp3lame encoding". Which I think sounds fairly familiar to the lame_presets_set function that seems to be giving so much trouble.
 
Old 01-18-2003, 07:55 AM   #5
Obi Perrin
Member
 
Registered: Nov 2002
Posts: 136

Original Poster
Rep: Reputation: 15
Bit of a newbie, how do I find out that info about the kernel? I know it's an Athlon 1333, and a stock 8.2 Mandrake kernel, but the other stuff, I don't know.
 
Old 01-18-2003, 07:59 AM   #6
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
I dunno - your lame-enc might be a better diagnosis than mine.

But for an experiment try the --enable-runtime-cpudetection and see if it builds.
 
Old 01-18-2003, 08:07 AM   #7
Obi Perrin
Member
 
Registered: Nov 2002
Posts: 136

Original Poster
Rep: Reputation: 15
Nope, same error.

[edit]
I'm suspiscious about those lame errors. Going to see if I can't compile my own liblame.
[/edit]

Last edited by Obi Perrin; 01-18-2003 at 08:08 AM.
 
Old 01-18-2003, 07:12 PM   #8
Obi Perrin
Member
 
Registered: Nov 2002
Posts: 136

Original Poster
Rep: Reputation: 15
Well, this certainly teaches me something. Always listen to your spidy sense. Anyone else with this problem, grab a libmp3lame tarball from sourceforge and compile your own version of the libs. Sorted my problem out.
 
Old 06-22-2003, 08:26 PM   #9
HHn
LQ Newbie
 
Registered: Jun 2003
Location: Germany
Distribution: Redhat Linux 9 Professional
Posts: 3

Rep: Reputation: 0
Hi,
Have you read the documentation of mplayer?
http://www.mplayerhq.hu
Important is the relase of gcc.
regarts
 
Old 06-22-2003, 09:45 PM   #10
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
Quote:
Originally posted by Obi Perrin
Bit of a newbie, how do I find out that info about the kernel? I know it's an Athlon 1333, and a stock 8.2 Mandrake kernel, but the other stuff, I don't know.
# Find running kernel version
uname -r

# What compiler version do I have installed
gcc -v

# Mandrake links
Mandrake home page
Mandrake Users website
Easy urpmi config for Mandrake
urpmi mini-HOWTO
Easy software management: Red Carpet
Maximum RPM
rpmfind
You didn't install the developmental packages? As root, command:
urpmi gcc
An Introduction to the Midnight Commander. You can install it by commanding:
urpmi mc
Midnight Commander home page
 
Old 06-23-2003, 06:00 AM   #11
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
ok, this is an ****OLD**** thread, and is no doubt solved long long time ago now.
 
  


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
[SuSE] Mplayer won't compile Harkov Linux - Software 14 01-16-2005 06:23 AM
Mplayer Compile Error oxleyk Slackware 9 12-13-2004 10:42 AM
mplayer compile error Dokke Linux - Software 0 10-24-2004 01:24 PM
mplayer compile problem hkl8324 Fedora 7 08-11-2004 03:42 PM
compile mplayer from source shanenin Linux - Software 2 09-21-2003 02:38 PM


All times are GMT -5. The time now is 02:28 PM.

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