LinuxQuestions.org
Help answer threads with 0 replies.
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 02-07-2007, 12:05 AM   #1
sadarax
Member
 
Registered: Sep 2005
Distribution: Ubuntu
Posts: 249

Rep: Reputation: 30
Mplayer - very strange compile error with ffmpeg


Hello everyone. I have a very strange error when I try to compile Mplayer from SVN. Now, normally I do not bug forums with these type of problems, but this one seems really strange.

To start with, here is the error:

Code:
ad_ffmpeg.c:161: warning: 'avcodec_decode_audio' is deprecated (declared at ../libavcodec/avcodec.h:2524)
cc -I.. -Inative -I../libmpdemux -I../stream -I../loader  -I../libavutil -I../libavcodec -I. -I.. -Wdeclaration-after-statement -O4 -march=k8 -mtune=k8 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I/usr/include/directfb -I/usr/include -I/usr/include/  -I/usr/include/SDL  -D_REENTRANT -I/usr/include/kde/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  -I/usr/include -I/usr/include/dvdnav -I/usr/include/freetype2 -I/usr/include -I/usr/include/liveMedia -I/usr/include/UsageEnvironment              -I/usr/include/BasicUsageEnvironment -I/usr/include/groupsock   -c -o vd_ffmpeg.o vd_ffmpeg.c
vd_ffmpeg.c: In function 'init':
vd_ffmpeg.c:390: warning: 'AVPaletteControl' is deprecated
vd_ffmpeg.c: In function 'init_vo':
vd_ffmpeg.c:527: error: 'PIX_FMT_YUV422' undeclared (first use in this function)
vd_ffmpeg.c:527: error: (Each undeclared identifier is reported only once
vd_ffmpeg.c:527: error: for each function it appears in.)
vd_ffmpeg.c:529: error: 'PIX_FMT_RGBA32' undeclared (first use in this function)
vd_ffmpeg.c: In function 'get_buffer':
vd_ffmpeg.c:620: warning: assignment from incompatible pointer type
vd_ffmpeg.c: In function 'decode':
vd_ffmpeg.c:752: warning: assignment from incompatible pointer type
vd_ffmpeg.c:776: warning: comparison of distinct pointer types lacks a cast
make[1]: *** [vd_ffmpeg.o] Error 1
make[1]: Leaving directory `/home/clifton/Sata/Linux/compile/mplayer/trunk/libmpcodecs'
make: *** [libmpcodecs/libmpcodecs.a] Error 2
First, the problem happens with any version of Mplayer from SVN I try. The earliest I tried was 21185, and the latest is 22168. I tried various versions in between them, 21200, 21500, 21800, 22000, 22100, and many others. They all had the same problem. The compile error occurs during the 'make' stage. I have tried using various ./configure --arguments, and I have tried it with NO arguments, but the result is the same.

I tried this on two computers, one running Ubuntu Edgy 6.10 and one running Ubuntu Breezy 5.10. They both have the exact same error. This error occurs consistently, spanning many source revisions, and I cannot tell why. I tried deleting the source files and grabbing completely new source from the SVN repository, but the problem persists.

Perhaps the very strangest part of all this is that I compiled yesterday (and every day before) without this problem (or any others). My current version of mplayer claims to be yesterdays latest SVN version, 22167. When I try to compile this specific version, the 'make' compile stage fails.

I would love anyone's thoughts on the matter.
 
Old 02-07-2007, 12:25 AM   #2
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
SVN? as in, a source code repository? as in, a currently being developed and may not even compile let alone work type of source code repository? Oh, i wonder what could wrong...

Just use the official releases of mplayer, nothing in a repository should be expected to work, and unless your a developer, you should only use official releases, and if you are a developer, your obviously not a very good one, or else you would be able to see the error is because something isn't declared, missing include, missing prototype declaration, who knows, and unless your a mplayer developer, why should you care?
 
Old 02-07-2007, 12:36 AM   #3
sadarax
Member
 
Registered: Sep 2005
Distribution: Ubuntu
Posts: 249

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by SciYro
SVN? as in, a source code repository? as in, a currently being developed and may not even compile let alone work type of source code repository? Oh, i wonder what could wrong...

Just use the official releases of mplayer, nothing in a repository should be expected to work, and unless your a developer, you should only use official releases, and if you are a developer, your obviously not a very good one, or else you would be able to see the error is because something isn't declared, missing include, missing prototype declaration, who knows, and unless your a mplayer developer, why should you care?
While I perfectly understand that the SVN source is in development and there is no guarantee to work, I am actually suspecting the problem does not lay source itself. If you had read what I wrote, I tried various versions of the source files, include ones which had worked just yesterday.

About why I care, I have been compiling Mplayer from source for over a year and the program is remarkably stable, plus I get access to new features as they are added and in my computer usage that is remarkably useful.
 
Old 02-07-2007, 02:05 AM   #4
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
Sorry, and updates? It could be a system include file from a external library that got changed.

When you said it worked just the other day, where there compile problems before then? If so, are sure you did everything exactly the same? Even being the same user?

As a last resort, i would say just try to debug mplayer. Use grep to scan thru the source files looking for anything about this missing something.
Code:
find ./ | grep -E ".c$|.h$" | xargs grep -n -A 3 -B 2 -E "PIX_FMT_YUV422|PIX_FMT_RGBA32"
should do the trick when it comes to searching, it will scan all C source files, and header files

Last edited by SciYro; 02-07-2007 at 02:08 AM.
 
  


Reply

Tags
compile error, ffmpeg, make, mplayer, svn


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
Strange ERROR on 2.6.15.5 compile __spc__ Linux - General 1 03-04-2006 01:34 PM
Strange GCC compile error with C code exvor Programming 16 08-23-2005 06:05 PM
strange kernel compile error mushmaster Linux - Software 4 03-22-2005 01:50 PM
Mplayer Compile Error oxleyk Slackware 9 12-13-2004 09:42 AM
mplayer compile error Dokke Linux - Software 0 10-24-2004 12:24 PM


All times are GMT -5. The time now is 05:20 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration