|
From: <jh...@Sa...> - 2009-06-01 13:09:40
|
I built ffmpeg git: http://manoa.flnet.org/ffmpeg-conf.log then I tried to build xine-lib-1.1.16.3 with it: http://manoa.flnet.org/xinelib-conf.log but then the linking failed with this: mv -f .deps/xineplug_decode_ff_la-ff_mpeg_parser.Tpo .deps/xineplug_decode_ff_la-ff_mpeg_parser.Plo /bin/sh ../../../libtool --tag=CC --mode=link gcc -fvisibility=hidden -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE -mtune=pentiumpro -O3 -pipe -fomit-frame-pointer -falign-loops=4 -falign-jumps=4 -fexpensive-optimizations -fschedule-insns2 -ffast-math -finline-functions -Wpointer-arith -Wall -Wchar-subscripts -Wnested-externs -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wmissing-format-attribute -Wno-pointer-sign -Wformat=2 -Wno-format-zero-length -Wstrict-aliasing=2 -Werror=implicit-function-declaration -DNDEBUG -Wl,--no-undefined -avoid-version -module -o xineplug_decode_ff.la -rpath /opt/xine/lib/xine/plugins/1.26 xineplug_decode_ff_la-ffmpeg_decoder.lo xineplug_decode_ff_la-ff_audio_decoder.lo xineplug_decode_ff_la-ff_video_decoder.lo xineplug_decode_ff_la-ffmpeg_encoder.lo xineplug_decode_ff_la-ff_mpeg_parser.lo ../../../src/xine-engine/libxine.la -lm -lz /opt/ffmpeg/lib -L/opt/ffmpeg/lib -lavutil -L/opt/ffmpeg/lib -lpostproc -pthread libtool: link: gcc -shared .libs/xineplug_decode_ff_la-ffmpeg_decoder.o .libs/xineplug_decode_ff_la-ff_audio_decoder.o .libs/xineplug_decode_ff_la-ff_video_decoder.o .libs/xineplug_decode_ff_la-ffmpeg_encoder.o .libs/xineplug_decode_ff_la-ff_mpeg_parser.o -Wl,-rpath -Wl,/mnt/space/xine-lib-1.1.16.3/src/xine-engine/.libs -Wl,-rpath -Wl,/opt/xine/lib ../../../src/xine-engine/.libs/libxine.so -lrt -lresolv -lnsl -lm -lz -L/opt/ffmpeg/lib -lavutil -lpostproc -mtune=pentiumpro -Wl,--no-undefined -pthread -pthread -Wl,-soname -Wl,xineplug_decode_ff.so -o .libs/xineplug_decode_ff.so .libs/xineplug_decode_ff_la-ffmpeg_decoder.o: In function `init_once_routine': ffmpeg_decoder.c:(.text+0x1f): undefined reference to `avcodec_init' ffmpeg_decoder.c:(.text+0x24): undefined reference to `avcodec_register_all' .libs/xineplug_decode_ff_la-ff_audio_decoder.o: In function `ff_audio_dispose': ff_audio_decoder.c:(.text+0x12f): undefined reference to `avcodec_close' .libs/xineplug_decode_ff_la-ff_audio_decoder.o: In function `ff_audio_reset': ff_audio_decoder.c:(.text+0x1e6): undefined reference to `avcodec_close' ff_audio_decoder.c:(.text+0x1f1): undefined reference to `avcodec_open' .libs/xineplug_decode_ff_la-ff_audio_decoder.o: In function `ff_audio_decode_data': ff_audio_decoder.c:(.text+0x2dc): undefined reference to `avcodec_open' ff_audio_decoder.c:(.text+0x410): undefined reference to `avcodec_find_decoder' ff_audio_decoder.c:(.text+0x443): undefined reference to `avcodec_alloc_context' ff_audio_decoder.c:(.text+0x8ff): undefined reference to `avcodec_decode_audio2' ff_audio_decoder.c:(.text+0x9a2): undefined reference to `avcodec_decode_audio2' .libs/xineplug_decode_ff_la-ff_video_decoder.o: In function `ff_video_open_plugin': ff_video_decoder.c:(.text+0x104): undefined reference to `avcodec_alloc_frame' ff_video_decoder.c:(.text+0x10f): undefined reference to `avcodec_alloc_context' .libs/xineplug_decode_ff_la-ff_video_decoder.o: In function `ff_dispose': ff_video_decoder.c:(.text+0x1d3): undefined reference to `avcodec_close' ff_video_decoder.c:(.text+0x24e): undefined reference to `avcodec_default_release_buffer' .libs/xineplug_decode_ff_la-ff_video_decoder.o: In function `ff_reset': ff_video_decoder.c:(.text+0x476): undefined reference to `avcodec_flush_buffers' .libs/xineplug_decode_ff_la-ff_video_decoder.o: In function `ff_handle_mpeg12_buffer': ff_video_decoder.c:(.text+0xe36): undefined reference to `avcodec_decode_video' .libs/xineplug_decode_ff_la-ff_video_decoder.o: In function `ff_handle_buffer': ff_video_decoder.c:(.text+0x124a): undefined reference to `avcodec_decode_video' .libs/xineplug_decode_ff_la-ff_video_decoder.o: In function `release_buffer': ff_video_decoder.c:(.text+0x2d48): undefined reference to `avcodec_default_release_buffer' .libs/xineplug_decode_ff_la-ff_video_decoder.o: In function `get_buffer': ff_video_decoder.c:(.text+0x2e12): undefined reference to `avcodec_align_dimensions' ff_video_decoder.c:(.text+0x2e7f): undefined reference to `avcodec_default_get_buffer' ff_video_decoder.c:(.text+0x2fc9): undefined reference to `avcodec_default_get_buffer' .libs/xineplug_decode_ff_la-ff_video_decoder.o: In function `init_video_codec': ff_video_decoder.c:(.text+0x306c): undefined reference to `avcodec_find_decoder' ff_video_decoder.c:(.text+0x3131): undefined reference to `avcodec_open' ff_video_decoder.c:(.text+0x32c5): undefined reference to `avcodec_thread_init' .libs/xineplug_decode_ff_la-ffmpeg_encoder.o: In function `lavc_on_unneeded': ffmpeg_encoder.c:(.text+0x21): undefined reference to `avcodec_close' .libs/xineplug_decode_ff_la-ffmpeg_encoder.o: In function `lavc_on_display_frame': ffmpeg_encoder.c:(.text+0xbe): undefined reference to `avcodec_encode_video' .libs/xineplug_decode_ff_la-ffmpeg_encoder.o: In function `lavc_on_update_format': ffmpeg_encoder.c:(.text+0x3a6): undefined reference to `avcodec_close' ffmpeg_encoder.c:(.text+0x418): undefined reference to `avcodec_find_encoder' ffmpeg_encoder.c:(.text+0x43c): undefined reference to `avcodec_alloc_context' ffmpeg_encoder.c:(.text+0x474): undefined reference to `avcodec_alloc_frame' ffmpeg_encoder.c:(.text+0x63c): undefined reference to `avcodec_open' .libs/xineplug_decode_ff_la-ffmpeg_encoder.o: In function `dxr3_encoder_init': ffmpeg_encoder.c:(.text+0x77e): undefined reference to `avcodec_init' ffmpeg_encoder.c:(.text+0x783): undefined reference to `avcodec_register_all' make[4]: *** [xineplug_decode_ff.la] Error 1 make[4]: Leaving directory `/mnt/space/xine-lib-1.1.16.3/src/combined/ffmpeg' make[3]: *** [all] Error 2 make[3]: Leaving directory `/mnt/space/xine-lib-1.1.16.3/src/combined/ffmpeg' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/mnt/space/xine-lib-1.1.16.3/src/combined' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/mnt/space/xine-lib-1.1.16.3/src' make: *** [all-recursive] Error 1 I tried to do --disable-static and added --enable-shared but that did not have much of an effect, so the question is, what are the configuration options necessary to be specified to the external ffmpeg to be compatible with xine-lib - where can I find that documentation if it exists, assuming that this is a problem with that in the first place of corse... and just how old is the built-in ffmpeg that it makes it necessary to use an external ffmpeg ? |