[x264-devel] Re: Problems compiling xubuntu ppc

Guillaume POIRIER poirierg at gmail.com
Tue Jan 16 12:08:57 CET 2007


Hi,

On 1/16/07, Griffith Rees <griff.rees at gmail.com> wrote:
> Hello. I'm having trouble building x264 svn.
>
> gcc -O4 -ffast-math  -Wall -I. -D__X264__ -DHAVE_MALLOC_H -maltivec
> -mabi=altivec -DARCH_PPC -DSYS_LINUX -DHAVE_PTHREAD -s -fomit-frame-pointer
>  -c -o common/quant.o common/quant.c
> In file included from common/quant.c:29:
> common/ppc/quant.h:26: error: expected specifier-qualifier-list before
> 'vector'
> common/ppc/quant.h:31: error: expected specifier-qualifier-list before
> 'vector'
> make: *** [common/quant.o] Error 1

Mmmm.... I just cleanned my glasses, and saw the obvious problem.

Your compiler flags do no seem right.
They should look like that:

gcc -arch ppc -O4 -ffast-math -Wall -I. -D__X264__ -falign-loops=16
-faltivec -fastf -mcpu=G4 -DARCH_PPC -DSYS_MACOSX -DHAVE_PTHREAD -s
-fomit-frame-pointer -arch ppc    -c -o common/ppc/quant.o
common/ppc/quant.c

Did you mess around with CFLAGS by any chance? Looks like a pibkac. ;-)

Guillaume

-- 
This is the x264-devel mailing-list
To unsubscribe, go to: http://developers.videolan.org/lists.html



More information about the x264-devel mailing list