[gst-devel] Small build patch

Richard Boulton richard at tartarus.org
Mon Jan 12 07:06:02 CET 2004

Hi list.

Been a while since I've checked out Gstreamer - I'm still to busy with 
work to be much use, sadly.

I just tried a test build (from current CVS HEAD) though, and found a 
couple of problems - I have a patch for one of them. :\

Firstly, in the gstreamer module, gst/parse/Makefile.am defines a rule:

lex._gst_parse_yy.c: parse.l
        $(FLEX_PATH) -P_gst_parse_yy $^

This causes a VPATH build to fail with "can't find parse.l".
The fix is to copy a trick from the internals of automake - the fix is
(I also converted $^ to $< - $^ is GNU make specific, or at least 
non-POSIX make, whereas $< isn't):

  lex._gst_parse_yy.c: parse.l
-       $(FLEX_PATH) -P_gst_parse_yy $^
+       $(FLEX_PATH) -P_gst_parse_yy `test -f '$<' || echo '$(srcdir)/'`$<

Also, when building gst-plugins/gst-libs/ext/ffmpeg/ffmpeg/libavcodec, I 
get the following error.  My system is Debian unstable, running on an 
AMD Athlon 1200 MHz processor. I have no experience of this stuff, so I 
just disabled ffmpeg for now.  Hope this helps.

gcc -DHAVE_CONFIG_H -I. -I../../../../../gst-plugins/gst-libs/ext/ffmpeg 
-I../../.. -DARCH_X86=1 -DHAVE_MMX=1 -DTUNECPU=generic -DHAVE_STRPTIME=1 
-Wall -I../../../../../gst-plugins/gst-libs/ext/ffmpeg/ffmpeg 
libavcodec_la-mpegvideo_mmx.lo -MD -MP -MF 
.deps/libavcodec_la-mpegvideo_mmx.Tpo -c 
  -fPIC -DPIC -o .libs/libavcodec_la-mpegvideo_mmx.o
warning: "RENAMEl" redefined
warning: this is the location of the previous definition
In file included from 
In function `dct_quantize_MMX':
can't find a register in class `GENERAL_REGS' while reloading `asm'
can't find a register in class `GENERAL_REGS' while reloading `asm'


More information about the gstreamer-devel mailing list