[MPlayer-users] ad_faad.c compile error

Steven M. Schultz sms at 2BSD.COM
Fri Feb 7 22:37:42 CET 2003


Hi -

	Small problem compiling the latest MPlayer:

gcc -c -O4 -march=i686 -mcpu=i686 -pipe -ffast-math -fomit-frame-pointer -D_THREAD_SAFE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I. -Inative -I.. -I../libmpdemux -I../loader  -D_GNU_SOURCE -o ad_faad.o ad_faad.c
ad_faad.c:88: Floating point numbers not allowed in #if expressions
ad_faad.c:172: Floating point numbers not allowed in #if expressions
ad_faad.c:197: Floating point numbers not allowed in #if expressions
ad_faad.c: In function `init':
ad_faad.c:93: warning: passing arg 3 of `faacDecInit' makes pointer from integer without a cast
ad_faad.c:93: warning: passing arg 4 of `faacDecInit' from incompatible pointer type
ad_faad.c:93: too many arguments to function `faacDecInit'
ad_faad.c: In function `decode_audio':
ad_faad.c:175: too many arguments to function `faacDecDecode'
ad_faad.c:200: too many arguments to function `faacDecDecode'
gmake[1]: *** [ad_faad.o] Error 1

	I've traced this down to the expression in ./configure

_faad_tempversion=`$TMPO | sed -e 's/^\([0-9]+\)\.\([0-9]+\).*/\1\2/'`

	that is supposed to remove the '.' but it is not working:


echo 1.1 | sed -e 's/^\([0-9]+\)\.\([0-9]+\).*/\1\2/'
1.1

	Perhaps using 'tr -d .' instead of sed would work better?

	echo 1.1 | tr -d .
11

	Cheers,
	Steven Schultz



More information about the MPlayer-users mailing list