Akode and FFmpeg

M.Canales.es macana at macana-es.com
Tue Aug 14 14:08:03 PDT 2007


Hi,

Trying to build KDE I noticed that akode-2.0.1 in not available upstream, 
current version is akode-2.0.2. And there is no akode-2.0.1 packages on 
anduin nor other mirrors. 

Thus we need to update akode to 2.0.2 (there is also KDE-3.5.7 availble but no 
open ticket yet) or change the dowload link for 2.0.1 version to one of the 
URLs that can be found via http://www.filewatcher.com/

Akode includes an experimental FFmpeg codec support that in akode-2.0.1 is not 
enabled by default, but in akode-2.0.2 it is enabled if FFmpeg is found, but 
it fail to build against the current FFmpeg version in BLFS with:

Making all in ffmpeg_decoder
make[5]: Entering directory 
`/home/macana/paquetes/kdemultimedia/akode-2.0.2/akode/plugins/ffmpeg_decoder'
if /bin/sh ../../../libtool --silent --tag=CXX --mode=compile g++ 
-DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../akode/lib -I../../../akode/lib 
-I../../../akode/lib -I/usr/include/ffmpeg   -I/usr/include/ffmpeg       
-Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align 
-Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 
-Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor 
-fno-exceptions -fno-check-new -fno-common  -MT ffmpeg_decoder.lo -MD -MP -MF 
".deps/ffmpeg_decoder.Tpo" -c -o ffmpeg_decoder.lo ffmpeg_decoder.cpp; \
 then mv -f ".deps/ffmpeg_decoder.Tpo" ".deps/ffmpeg_decoder.Plo"; else rm -f 
".deps/ffmpeg_decoder.Tpo"; exit 1; fi
ffmpeg_decoder.cpp: In member function 'virtual bool 
aKode::FFMPEGDecoder::openFile()':
ffmpeg_decoder.cpp:202: warning: comparison between signed and unsigned 
integer expressions
ffmpeg_decoder.cpp: In member function 'virtual bool 
aKode::FFMPEGDecoder::readFrame(aKode::AudioFrame*)':
ffmpeg_decoder.cpp:317: warning: 'avcodec_decode_audio' is deprecated 
(declared at /usr/include/ffmpeg/avcodec.h:2803)
ffmpeg_decoder.cpp:319: warning: 'avcodec_decode_audio' is deprecated 
(declared at /usr/include/ffmpeg/avcodec.h:2803)
/bin/sh ../../../libtool --silent --tag=CXX --mode=link g++  -Wno-long-long 
-Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align 
-Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 
-Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor 
-fno-exceptions -fno-check-new -fno-common    -o libakode_ffmpeg_decoder.la 
-rpath /opt/kde-3.5.6/lib -avoid-version -no-undefined -Wl,--no-undefined 
-Wl,--allow-shlib-undefined   ffmpeg_decoder.lo ../../lib/libakode.la 
-lavcodec -lz -la52 -lmp3lame -lm -ldl -lX11 -lXext -lavutil   -lavformat 
-lavcodec -lz -la52 -lmp3lame -lm -ldl -lX11 -lXext -lavutil   
.libs/ffmpeg_decoder.o: In function `aKode::FFMPEGDecoder::seek(long)':
ffmpeg_decoder.cpp:(.text+0x39a): undefined reference to 
`av_seek_frame(AVFormatContext*, int, long long, int)'
.libs/ffmpeg_decoder.o: In function 
`aKode::FFMPEGDecoder::FFMPEGDecoder(aKode::File*)':
ffmpeg_decoder.cpp:(.text+0x45c): undefined reference to `av_register_all()'
.libs/ffmpeg_decoder.o: In function 
`aKode::FFMPEGDecoder::FFMPEGDecoder(aKode::File*)':
ffmpeg_decoder.cpp:(.text+0x50c): undefined reference to `av_register_all()'
.libs/ffmpeg_decoder.o: In function `aKode::FFMPEGDecoder::closeFile()':
ffmpeg_decoder.cpp:(.text+0x584): undefined reference to 
`avcodec_close(AVCodecContext*)'
ffmpeg_decoder.cpp:(.text+0x5a3): undefined reference to 
`av_close_input_file(AVFormatContext*)'
.libs/ffmpeg_decoder.o: In function `aKode::FFMPEGDecoder::openFile()':
ffmpeg_decoder.cpp:(.text+0x657): undefined reference to 
`init_put_byte(ByteIOContext*, unsigned char*, int, int, void*, int (*)
(void*, unsigned char*, int), int (*)(void*, unsigned char*, int), long long 
(*)(void*, long long, int))'
ffmpeg_decoder.cpp:(.text+0x6ae): undefined reference to 
`get_buffer(ByteIOContext*, unsigned char*, int)'
ffmpeg_decoder.cpp:(.text+0x6c8): undefined reference to 
`av_probe_input_format(AVProbeData*, int)'
ffmpeg_decoder.cpp:(.text+0x720): undefined reference to 
`av_open_input_stream(AVFormatContext**, ByteIOContext*, char const*, 
AVInputFormat*, AVFormatParameters*)'
ffmpeg_decoder.cpp:(.text+0x735): undefined reference to 
`av_find_stream_info(AVFormatContext*)'
ffmpeg_decoder.cpp:(.text+0x8dd): undefined reference to 
`avcodec_find_decoder(CodecID)'
ffmpeg_decoder.cpp:(.text+0x906): undefined reference to 
`avcodec_open(AVCodecContext*, AVCodec*)'
.libs/ffmpeg_decoder.o: In function `aKode::FFMPEGDecoder::readPacket()':
ffmpeg_decoder.cpp:(.text+0xada): undefined reference to 
`av_init_packet(AVPacket*)'
ffmpeg_decoder.cpp:(.text+0xaee): undefined reference to 
`av_read_frame(AVFormatContext*, AVPacket*)'
.libs/ffmpeg_decoder.o: In function 
`aKode::FFMPEGDecoder::readFrame(aKode::AudioFrame*)':
ffmpeg_decoder.cpp:(.text+0xbe8): undefined reference to 
`avcodec_decode_audio(AVCodecContext*, short*, int*, unsigned char*, int)'
collect2: ld returned 1 exit status
make[5]: *** [libakode_ffmpeg_decoder.la] Error 1


To can build akode-2.0.2 having FFmpeg installed I need to pass 
"--without-ffmpeg" to ./configure.


-- 
Manuel Canales Esparcia
Usuario de LFS nº2886:       http://www.linuxfromscratch.org
LFS en castellano: http://www.escomposlinux.org/lfs-es http://www.lfs-es.info
TLDP-ES:                           http://es.tldp.org



More information about the blfs-dev mailing list