[FFmpeg-devel] libavcodec.so: undefined reference to `svq3_luma_dc_dequant_idct_c

sandeep virdi sandeep.virdi
Thu Jan 7 09:58:54 CET 2010

Hello All,
While building the FFMpeg code with configure options as:

--disable-optimizations --disable-mmx --disable-stripping
--disable-static --enable-shared --enable-memalign-hack
--disable-encoders --disable-decoders --enable-decoder=h264
--disable-devices --disable-filters --disable-protocols
--enable-protocol=file --disable-muxers --enable-muxer=h264
--disable-demuxers --enable-demuxer=h264 --disable-parsers
--enable-parser=h264 --disable-doc --disable-ffplay --disable-ffserver
--disable-network --disable-ipv6 --disable-mpegaudio-hp

I get following two linker error as:
"libavcodec.so: undefined reference to "svq3_luma_dc_dequant_idct_c"
"libavcodec.so: undefined reference to `svq3_add_idct_c"

In h264.c file, on Line#78 and #79, the prototype of these functions
are there. The definition of these functions are in svq3.c, which is
not getting built since CONFIG_SVQ3_DECODER is not defined to 1,
because I disable all the encoders and decoders except for h264
decoder and hence this linker error.
My question here is that, shouldn't it be that functions(from h264.c)
which call "svq3_add_idct_c"  and "svq3_luma_dc_dequant_idct_c",
should make call to these functions protected by

Also another thing I noted was that when I don't do
--disable-optimizations --disable-mmx --disable-stripping then this
linker error is not there.

Can anyone of you point out the right direction?

Thanks in advance


More information about the ffmpeg-devel mailing list