[mythtv] Weird avcodec compile problem

Isaac Richards ijr at po.cwru.edu
Fri Dec 19 18:05:27 EST 2003


On Friday 19 December 2003 05:45 pm, Geoffrey Hausheer wrote:
> For some reason if I'm in debug, when I try to compile libavcodec, I get:
> gcc -c -pipe -w -g -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64
> -D_LARGEFILE_SOURCE -D_GNU_SOURCE -D_REENTRANT  -D_GNU_SOURCE
> -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr/local\" -DMMX -DQT_THREAD_SUPPORT
> -DQT_SHARED -DQT_NO_DEBUG -I/usr/share/qt3/mkspecs/default -I. -I../..
> -I../../../../../../include/qt3 -o dsputil_mmx.o i386/dsputil_mmx.c
> i386/dsputil_mmx.c: In function `h263_h_loop_filter_mmx':
> i386/dsputil_mmx.c:610: error: can't find a register in class
> `GENERAL_REGS' while reloading `asm'
> make: *** [dsputil_mmx.o] Error 1
> 
> Adding '-O' to QMAKE_CFLAGS_DEBUG in libavcodec.pro solves this problem.
> 
> Perhaps it's a gcc thing, I certainly don't remember seeing this in the
> past.

Seems to compile if you do it in release mode, not debug mode.

Isaac


More information about the mythtv-dev mailing list