GNOME Bugzilla – Bug 558711
gst-plugins-good-0.10.11 compile fails
Last modified: 2009-01-23 08:43:09 UTC
Please describe the problem: Compile fails when flac library is installed in a custom location becuase FLAC/all.h is not found. Steps to reproduce: 1. Install flac in a custom location which is not present on any other include path passed to $CC 2. Make sure that PKG_CONFIG_PATH points to proper flac.pc 3. configure and make gst-plugins-good-0.10.11 Actual results: no errors Expected results: compilation fails in ext/flac Does this happen every time? yes Other information: The problem seems to be that $(FLAC_CFLAGS) are not passed to the compiler. Also if they are added the compile still fails because $(FLAC_CFLAGS) (obtained from pkg-config --cflags flac) looks like -I/usr/include/FLAC (ends with FLAC), but gstreamer #include looks like this: gstflacdec.h:#include <FLAC/all.h> gstflacenc.h:#include <FLAC/all.h> Error message: In file included from gstflac.c:24: gstflacenc.h:26:22: error: FLAC/all.h: No such file or directory In file included from gstflac.c:24: gstflacenc.h:67: error: expected specifier-qualifier-list before ‘FLAC__SeekableStreamEncoder’ In file included from gstflac.c:25: gstflacdec.h:53: error: expected specifier-qualifier-list before ‘FLAC__SeekableStreamDecoder’ make[3]: *** [libgstflac_la-gstflac.lo] Error 1
2008-10-31 Sebastian Dröge <sebastian.droege@collabora.co.uk> * ext/flac/Makefile.am: Include $(FLAC_CFLAGS) in CFLAGS to make sure to find the FLAC headers. This fixes compilation if FLAC is installed in an uncommon location that is not already handled by other CFLAGS. Fixes bug #558711.