[Vfx] about vfs compile

Mike Playle mike at vfx.org.uk
Mon Oct 26 19:36:31 GMT 2009


Heiko wrote:

> gcc -O3 -g -Wall -Wno-switch -DHAVE_XVMC -DHAVE_AV_CONFIG_H -I.. 
> -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -p -c -o 
> i386/fdct_mmx.o i386/fdct_mmx.c
> gcc -O3 -g -Wall -Wno-switch -DHAVE_XVMC -DHAVE_AV_CONFIG_H -I.. 
> -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -p -c -o 
> i386/cputest.o i386/cputest.c
> gcc -O3 -g -Wall -Wno-switch -DHAVE_XVMC -DHAVE_AV_CONFIG_H -I.. 
> -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -p -c -o 
> i386/dsputil_mmx.o i386/dsputil_mmx.c
> i386/dsputil_mmx.c: In function `dsputil_init_mmx':
> i386/dsputil_mmx.c:3080: warning: assignment from incompatible pointer type
> i386/dsputil_mmx.c:3081: warning: assignment from incompatible pointer type
> i386/dsputil_mmx.c: In function `h263_h_loop_filter_mmx':
> i386/dsputil_mmx.c:662: error: can't find a register in class 
> `GENERAL_REGS' while reloading `asm'

Can you try editing ffmpeg/config.mak to change this:

OPTFLAGS=-O3 -g -Wall -Wno-switch -DHAVE_XVMC
SHCFLAGS=-O3 -g -Wall -Wno-switch -DHAVE_XVMC

...to this:

OPTFLAGS=-O2 -g -Wall -Wno-switch -DHAVE_XVMC
SHCFLAGS=-O2 -g -Wall -Wno-switch -DHAVE_XVMC

This gets FFmpeg to build for me.

I have no idea why Ubuntu's GCC 3.4.6 does this and Debian's GCC 3.4.6
doesn't, but I'm going to try upgrading FFmpeg in the hope that it just
goes away, since it's probably about time I did this anyway.

Mike



More information about the Vfx mailing list