[MPlayer-users] OS/X Altivec build problem

Steven M. Schultz sms at 2BSD.COM
Wed Oct 8 06:32:35 CEST 2003


Hi -

	Ran into a bit of difficulty building MPlayer on OS/X 10.2.8
	tonight:

gcc -Wall -O4   -maltivec -mabi=altivec -pipe -ffast-math -fomit-frame-pointer -no-cpp-precomp -DSYS_DARWIN -DCONFIG_DARWIN -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o ppc/dsputil_altivec.o ppc/dsputil_altivec.c 
ppc/dsputil_altivec.c: In function `pix_abs16x16_x2_altivec':
ppc/dsputil_altivec.c:52: syntax error before "unsigned"
ppc/dsputil_altivec.c:53: `vector' undeclared (first use in this function)
ppc/dsputil_altivec.c:53: (Each undeclared identifier is reported only once
ppc/dsputil_altivec.c:53: for each function it appears in.)
ppc/dsputil_altivec.c:59: `sad' undeclared (first use in this function)
ppc/dsputil_altivec.c:59: parse error before "unsigned"
	...

	This is with the default/stock gcc 3.1 that came with the G4/Powerbook.

	What's puzzling is that ffmpeg/libavcodec builds fine when I build
	ffmpeg.   It's only when building MPlayer with a copy of libavcodec
	that the Altivec compilation fails.

	Any ideas what the problem is and how to fix it?

	Steven Schultz



More information about the MPlayer-users mailing list