<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<STYLE type=text/css>DIV {
        MARGIN: 0px
}
</STYLE>
<META content="MSHTML 6.00.2800.1491" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=javatodd32@yahoo.com href="mailto:javatodd32@yahoo.com">Todd
Luliak</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=vdr@linuxtv.org
href="mailto:vdr@linuxtv.org">vdr@linuxtv.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, September 12, 2008 7:42
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [vdr] Help building xine-lib-1.2
--with-external-ffmpeg</DIV>
<DIV><BR></DIV>
<DIV
style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">
<DIV
style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman,new york,times,serif">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>
<P>
<HR>
<P></P>
<DIV>I am trying to do the same thing, only I need directfb, dfb++ and df_xine
because I have a matrox 450. I am currently using Nexus out, so havn't got
xine working yet. I think you need --with-external-ffmpeg=soft as the
flag now but not sure.</DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I can't get directfb-extras (which contains
df_xine) to build. looks like it's because I'm runing
64bit.</FONT></DIV></BLOCKQUOTE></BODY></HTML>