Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.