LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Mplayer - very strange compile error with ffmpeg (http://www.linuxquestions.org/questions/linux-software-2/mplayer-very-strange-compile-error-with-ffmpeg-526283/)

sadarax 02-07-2007 12:05 AM

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.

SciYro 02-07-2007 12:25 AM

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?

sadarax 02-07-2007 12:36 AM

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.

SciYro 02-07-2007 02:05 AM

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


All times are GMT -5. The time now is 01:24 PM.