<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">I've been running around in circles trying to get xine-lib-1.2 built with external ffmpeg. I currently use 1.2 with CoreAVC and would like to explore the h.264 improvements in ffmpeg trunk.<br>I am suspecting my ffmpeg configuration/build/installation, but don't know what's wrong. <br>I have:<br> Cleaned the libav* directories from /usr/local/include<br>Pulled a current SVN of ffmpeg :<br> URL: svn://svn.mplayerhq.hu/ffmpeg/trunk<br> Repository Root: svn://svn.mplayerhq.hu/ffmpeg<br> Repository UUID: 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b<br> Revision: 15291<br><br>ffmpeg configure:<br> ./configure --arch=i686
--cpu=athlon64 --enable-gpl --enable-postproc --enable-pthreads --enable-liba52 --enable-libmp3lame --enable-libvorbis<br><br>Builds sucessfully and the install places the following header directories in /usr/local/include:<br> libavcodec libavdevice libavformat<br> libavutil libpostproc libswscale<br><br>Xine-lib 1.2 from HG:<br> changeset: 10649:650d69296d66<br> date: Fri Sep 05 18:02:23 2008 +0200<br><br>configured with:<br> ./autogen.sh --with-external-ffmpeg<br>Nothing in this xine-lib has been patched yet (for vdr or CAVC) as I am trying to get the build <br>environment working properly before I mess with my CAVC patched version.<br><br>Compile fails with:<br><br> gcc -DHAVE_CONFIG_H -I. -I../../../include -I../../..
-I../../../include -I../../../include -I../../../src <br>-I../../../src/xine-engine -I../../../src/xine-engine -I../../../src/xine-utils -I../../../src/input -I../../../src/input -I../../../lib <br>-I../../../lib -I/usr/local/include -I/usr/local/include -I../../../src/dxr3 -D_FILE_OFFSET_BITS=64 -DNDEBUG <br>-D_REENTRANT -DXINE_COMPILE -O3 -ffast-math -f expensive-optimizations -mtune=athlon <br>-fvisibility=hidden -pipe -Wall -Wformat=2 -Wno-format-zero-length -Wmissing-format-attribute <br>-Werror-implicit-function-declaration -Wstrict-aliasing=2 -Wchar-subscripts -Wmissing-declarations <br>-Wmissing-prototypes -Wwrite-strings -Wpointer-arith -g -MT ffmpeg_decoder.lo -MD -MP -MF <br>.deps/ffmpeg_decoder.Tpo -c ffmpeg_decoder.c -fPIC -DPIC -o .libs/ffmpeg_decoder.o<br>mv -f .deps/ffmpeg_decoder.Tpo .deps/ffmpeg_decoder.Plo/bin/sh ../../../libtool --tag=CC <br>--mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../include -I../../..
-I../../../include -I../../../include -I../../../src <br>-I../../../src/xine-engine -I../../../src/xine-engine -I../../../src/xine-utils -I../../../src/input -I../../../src/input <br>-I../../../lib -I../../../lib -I/usr/local/include -I/usr/local/include -I../../../src/dxr3 -D_FILE_OFFSET_BITS=64 <br>-DNDEBUG -D_REENTRANT -DXINE_COMPILE -O3 -ffast-math -fexpensive-optimizations -mtune=athlon <br>-fvisibility=hidden -pipe -Wall -Wformat=2 -Wno-format-zero-length -Wmissing-format-attribute <br>-Werror-implicit-function-declaration -Wstrict-aliasing=2 -Wchar-subscripts -Wmissing-declarations <br>-Wmissing-prototypes -Wwrite-strings -Wpointer-arith -g -MT ff_audio_decoder.lo -MD -MP -MF <br>.deps/ff_audio_decoder.Tpo -c -o ff_audio_decoder.lo ff_audio_decoder.c<br> gcc -DHAVE_CONFIG_H -I. -I../../../include -I../../.. -I../../../include -I../../../include
-I../../../src <br>-I../../../src/xine-engine -I../../../src/xine-engine -I../../../src/xine-utils -I../../../src/input -I../../../src/input<br> -I../../../lib -I../../../lib -I/usr/local/include -I/usr/local/include -I../../../src/dxr3 -D_FILE_OFFSET_BITS=64 <br>-DNDEBUG -D_REENTRANT -DXINE_COMPILE -O3 -ffast-math -fexpensive-optimizations -mtune=athlon <br>-fvisibility=hidden -pipe -Wall -Wformat=2 -Wno-format-zero-length -Wmissing-format-attribute <br>-Werror-implicit-function-declaration -Wstrict-aliasing=2 -Wchar-subscripts -Wmissing-declarations <br>-Wmissing-prototypes -Wwrite-strings -Wpointer-arith -g -MT ff_audio_decoder.lo -MD -MP -MF <br>.deps/ff_audio_decoder.Tpo -c ff_audio_decoder.c -fPIC -DPIC -o .libs/ff_audio_decoder.o<br><br>ff_audio_decoder.c: In function 'ff_audio_decode_data':<br>ff_audio_decoder.c:272: error: 'AVCodecContext' has no member named 'bits_per_sample'<br>ff_audio_decoder.c:325: error: implicit declaration of
function 'avcodec_decode_audio'<br>ff_audio_decoder.c:330: error: 'AVCodecContext' has no member named 'bits_per_sample'<br>make[4]: *** [ff_audio_decoder.lo] Error 1<br>make[4]: Leaving directory `/usr/local/src/newtest/xine-lib-1.2/src/combined/ffmpeg'<br>make[3]: *** [all] Error 2<br>make[3]: Leaving directory `/usr/local/src/newtest/xine-lib-1.2/src/combined/ffmpeg'<br>make[2]: *** [all-recursive] Error 1<br>make[2]: Leaving directory `/usr/local/src/newtest/xine-lib-1.2/src/combined'<br>make[1]: *** [all-recursive] Error 1<br>make[1]: Leaving directory `/usr/local/src/newtest/xine-lib-1.2/src'<br>make: *** [all-recursive] Error 1<br><br>xine-lib compiles fine without the external ffmpeg flag, and xine-lib-1.1.14 compiles with or without external ffmpeg using the same configure options.<br>I have tried adding CCPFLAGS directives like:<br>CPPFLAGS="-I/usr/local/include/libavcodec -I/usr/local/include/libavdevice -I/usr/local/include/libavformat
-I/usr/local/include/libavutil -I/usr/local/include/libpostproc" ./autogen.sh --prefix=/usr/local --disable-dxr3 --enable-shared --with-external-ffmpeg<br>and the result is the same<br>Your help is GREATLY appreciated as I have tried everything I know and everything I found <br>in searches over the last three days. I'm stumped.<br>-Todd<br></div></div><br>
</body></html>