Hi Ramu, I'm pretty sure that the symbols aren't present in the static libraries. objdump and nm tools shows them as undefined:
# nm libavcodec/libavcodec.a | grep ff_h264dsp_init U ff_h264dsp_init # objdump -t libavcodec/libavcodec.a | grep ff_h264dsp_init 00000000 *UND* 00000000 ff_h264dsp_init # objdump -t libavcodec/libavcodec.a | grep ff_golomb_vlc_len 00000000 *UND* 00000000 ff_golomb_vlc_len 00000000 *UND* 00000000 ff_golomb_vlc_len 00000000 *UND* 00000000 ff_golomb_vlc_len 00000000 *UND* 00000000 ff_golomb_vlc_len 00000000 *UND* 00000000 ff_golomb_vlc_len 00000000 *UND* 00000000 ff_golomb_vlc_len # nm libavcodec/libavcodec.a | grep ff_golomb_vlc_len U ff_golomb_vlc_len U ff_golomb_vlc_len U ff_golomb_vlc_len U ff_golomb_vlc_len U ff_golomb_vlc_len U ff_golomb_vlc_len Besides, for exampe ff_h264dsp_init is defined in h264dsp.c, but I never saw it to be build to .o file. The above is true for all undefined symbols. Their files aren't built in the process and I can see the symbols as undefined in the libavcodec library. Regards, Pavel. On Thu, Jul 4, 2013 at 2:20 AM, Carl Eugen Hoyos <ceho...@ag.or.at> wrote: > Pavel Vazharov <pvazharov@...> writes: > > > ./configure > > A few unrelated comments (your explanations may > help improving the configure script): > > > --arch=x86 > > --target-os=qnx > > Is this really needed? > > > --enable-static > > --disable-shared > > This is the default (unneeded). > > > --disable-everything > > --disable-programs > > --disable-postproc > > --disable-vdpau > > You may want to use --disable-all > > > --disable-ffplay > > --disable-ffprobe > > --disable-ffserver > > Does --disable-programs not work? > > > --disable-protocols > > Does --disable-everything not work? > > > --disable-dxva2 > > --disable-mipsfpu > > --disable-altivec > > --disable-vda > > These look useless. > > > --disable-yasm > > --disable-mmxext > > --disable-inline-asm > > Since you also used --disable-debug I > have to ask if you try to produce a > useless library (no debug information, > but no optimizations either)? > If you have a good reason, --disable-asm > is probably simpler. > > > The library builds fine but the problem is that when > > I try to link again libavcodec.a in my application I > > get undefined references for symbols > > What does git log say about the version you are testing? > > Carl Eugen > > _______________________________________________ > Libav-user mailing list > Libav-user@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/libav-user >
_______________________________________________ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user