Message: 4 Date: Tue, 30 Sep 2008 21:52:19 +0200 From: Stefan Ellenberger stefan_ell@hotmail.com Subject: [vdr] Help building xine-lib-1.2 --with-external-ffmpeg To: vdr@linuxtv.org Message-ID: BAY108-W7414167C8F551D52BBF9DFE430@phx.gbl Content-Type: text/plain; charset="iso-8859-1"
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!
I had the same problem. I solved it by modifying the Makefile in the /usr/src/xine-lib-1.2/src/audio_dec directory. I had to add the option -lm on a line mentioning libsdts
hope that helps
sp -- Serge Pecher
Director
SDMO nv/sa
T : +32 3 620 16 41
F : +32 3 646 06 25
M : +32 475 78 20 28