[MPlayer-users] Problems with CVS 1.0-pre version - compile problems.

Michal Dorocinski zwierzak at venus.ci.uw.edu.pl
Sun Sep 7 16:45:03 CEST 2003


I cvs'ed mplayer yesterday and tried to compile. It failed:
gcc -c -O4 -march=athlon -mcpu=athlon -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I. -Inative -I.. -I../libmpdemux -I../loader -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -D_GNU_SOURCE -o ad_faad.o ad_faad.c
ad_faad.c: In function `init':
ad_faad.c:91: warning: passing arg 3 of `faacDecInit' makes integer from pointer without a cast
ad_faad.c:91: warning: passing arg 4 of `faacDecInit' from incompatible pointer type
ad_faad.c:91: too few arguments to function `faacDecInit'
ad_faad.c: In function `decode_audio':
ad_faad.c:174: too few arguments to function `faacDecDecode'
ad_faad.c:199: too few arguments to function `faacDecDecode'

I have CVS version of Faad 2 package (as writen in docs) and the problem is in configure script/ad_faad.c as
far as I can figure it.
First of all configure script does not properly reconize that I have FaaD 2.0rc1 libraries installed. Then
I can't figure out where FAADVERSION var is set (it shoudl be done when ./conigure time but...). So the:

    /* init the codec */
#if (FAADVERSION <= 11)

code is somehow only one way... it will give the old faad declarations and so on. 

The easyest way "over" is to define FAADVERSION to 12 at the begining of the ad_faad.c in libmpcodec, but...
this is "dirty" ;)

Hope this will help to solve problem :)


		Michal "Zwierz" Dorocinski

The Shadow, The Darkness, The Fear...
	Forever Alone Immortal...

More information about the MPlayer-users mailing list