[vdr] Help building xine-lib-1.2 --with-external-ffmpeg

Stefan Ellenberger stefan_ell at hotmail.com
Tue Sep 30 21:52:19 CEST 2008


Hi list

Can anyone help me around this xine-lib compile problem caused by a missing math library?

/bin/sh ../../libtool --tag=CC --mode=link gcc -O3 -ffast-math -fexpensive-optimizations -mtune=pentiumpro -fvisibility=hidden -I/usr/include/libdts -pipe -Wall -Wformat=2 -Wno-format-zero-length -Wmissing-format-attribute -Werror-implicit-function-declaration -Wstrict-aliasing=2 -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -Wpointer-arith -g -Wl,-z,defs -Wl,--gc-sections -avoid-version -module -g -o xineplug_decode_dts.la -rpath /usr/lib/xine/plugins/2.0 xineplug_decode_dts_la-xine_dts_decoder.lo ../../src/xine-engine/libxine.la -ldts_pic
gcc -shared .libs/xineplug_decode_dts_la-xine_dts_decoder.o -Wl,--rpath -Wl,/usr/src/xine-lib-1.2/src/xine-engine/.libs ../../src/xine-engine/.libs/libxine.so -ldts_pic -mtune=pentiumpro -Wl,-z -Wl,defs -Wl,--gc-sections -Wl,-soname -Wl,xineplug_decode_dts.so -o .libs/xineplug_decode_dts.so
/usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/libdts_pic.a(parse.o): In function `dts_init':
(.text+0x5ee): undefined reference to `cos'
/usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/libdts_pic.a(parse.o): In function `dts_init':
(.text+0x66e): undefined reference to `cos'
/usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/libdts_pic.a(parse.o): In function `dts_init':
(.text+0x6be): undefined reference to `cos'
/usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/libdts_pic.a(parse.o): In function `dts_init':
(.text+0x70e): undefined reference to `sin'
collect2: ld returned 1 exit status
make[2]: *** [xineplug_decode_dts.la] Fehler 1
make[2]: Verlasse Verzeichnis '/usr/src/xine-lib-1.2/src/audio_dec'
make[1]: *** [all-recursive] Fehler 1
make[1]: Verlasse Verzeichnis '/usr/src/xine-lib-1.2/src'
make: *** [all-recursive] Fehler 1

Full Log is attached...

* OS is Xubuntu 8.04
* FFMPEG library I built is the same you guys recommended (r 15261)
* libm.so is installaded
* configure log shows: (checking if gcc supports -ffast-math flag... yes)

I had to set many CPPFlags to redirect configure to the new location of the ffmpeg headers:

./autogen.sh --prefix=/usr --with-external-ffmpeg --with-xvmc-lib=XvMCNVIDIA --with-xxmc-lib=XvMCNVIDIA 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 -I/usr/local/include/libyasm -I/usr/include"

Otherwise configure would not find any ffmpeg header at all (looking at the old place in /lib/include/ffmpeg)

so ... how do I change my Ubuntu into a little "math juggling" Einstein? ;-)

Thanks!

_________________________________________________________________
Werden Sie Mitglied der neuen Windows Live Messenger Familie!
http://get.live.com
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: xine-lib_compile.txt
Url: http://www.linuxtv.org/pipermail/vdr/attachments/20080930/904839ff/attachment-0001.txt 


More information about the vdr mailing list