<div dir="ltr"><div>Hi Ramu,<br></div><br>I'm pretty sure that the symbols aren't present in the static libraries.<br>objdump tool shows them as undefined:<br><br># objdump -t libavcodec/libavcodec.a | grep ff_h264dsp_init<br>
00000000         *UND*  00000000 ff_h264dsp_init<br><br># objdump -t libavcodec/libavcodec.a | grep ff_golomb_vlc_len<br>00000000         *UND*  00000000 ff_golomb_vlc_len<br>00000000         *UND*  00000000 ff_golomb_vlc_len<br>
00000000         *UND*  00000000 ff_golomb_vlc_len<br>00000000         *UND*  00000000 ff_golomb_vlc_len<br>00000000         *UND*  00000000 ff_golomb_vlc_len<br>00000000         *UND*  00000000 ff_golomb_vlc_len<br><br>Besides, for exampe ff_h264dsp_init is defined in h264dsp.c, but I never saw it to be build to .o file.<br>
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.<br><br>However, I managed to build ffmpeg with needed symbols with a hack (I'm not proud of it).<br>
<br>The configure script produces comfig.mak file and there is config generated options such as:<br>!CONFIG_H264CHROMA=yes<br>!CONFIG_H264DSP=yes<br>!CONFIG_H264PRED=yes<br>!CONFIG_H264QPEL=yes<br>....<br>....<br><br>The symbols from these object files - h264dsp, h264chroma. etc. were missing. So I manually removed the '!' before each of these and then the produced library has all needed symbols.<br>
<br>There is the following section in the configure script<br># options emitted with CONFIG_ prefix but not available on the command line<br>CONFIG_EXTRA="<br>    ...<br>    ...<br>    golomb<br>    gplv3<br>    h264chroma<br>
    h264dsp<br>    h264pred<br>    h264qpel<br>    ...<br>    ...<br><br>Can someone tell me how to enable these options without hacking?<br>Thanks in advance.<br><br><br>Hi Carl,<br><br>I'm going to go through the my experiments again and to explain how I got this configure script. The steps are shown in the attached file because the system rejects my e-mail as too long otherwise.<br>
<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 4, 2013 at 2:20 AM, Carl Eugen Hoyos <span dir="ltr"><<a href="mailto:cehoyos@ag.or.at" target="_blank">cehoyos@ag.or.at</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Pavel Vazharov <pvazharov@...> writes:<br>
<br>
> ./configure<br>
<br>
A few unrelated comments (your explanations may<br>
help improving the configure script):<br>
<br>
> --arch=x86<br>
> --target-os=qnx<br>
<br>
Is this really needed?<br>
<br>
> --enable-static<br>
> --disable-shared<br>
<br>
This is the default (unneeded).<br>
<br>
> --disable-everything<br>
> --disable-programs<br>
> --disable-postproc<br>
> --disable-vdpau<br>
<br>
You may want to use --disable-all<br>
<br>
> --disable-ffplay<br>
> --disable-ffprobe<br>
> --disable-ffserver<br>
<br>
Does --disable-programs not work?<br>
<br>
> --disable-protocols<br>
<br>
Does --disable-everything not work?<br>
<br>
> --disable-dxva2<br>
> --disable-mipsfpu<br>
> --disable-altivec<br>
> --disable-vda<br>
<br>
These look useless.<br>
<br>
> --disable-yasm<br>
> --disable-mmxext<br>
> --disable-inline-asm<br>
<br>
Since you also used --disable-debug I<br>
have to ask if you try to produce a<br>
useless library (no debug information,<br>
but no optimizations either)?<br>
If you have a good reason, --disable-asm<br>
is probably simpler.<br>
<div class="im"><br>
> The library builds fine but the problem is that when<br>
> I try to link again libavcodec.a in my application I<br>
> get undefined references for symbols<br>
<br>
</div>What does git log say about the version you are testing?<br>
<span class="HOEnZb"><font color="#888888"><br>
Carl Eugen<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
</div></div></blockquote></div><br></div>