<div dir="ltr">Hello Alexey!<div><br></div><div>Thank you very much for the pointer which of course is permanently book marked for some time ago ;-). I'm quite aware of the workaround but I'm rather looking for the root cause of this change and what long term solution we should use since the ffmpeg libraries for XBMC needs to work on several different platforms (win, osx, ios, linux, android, etc) . So the question unfortunately remains, will this behavior change in the future or do weed need to automate a duplicate removal process for all platforms while building the ffmpeg libraries for XBMC? </div>
<div><br></div><div>Any ideas why this was changed or if this problem will remain?</div><div>--</div><div><br></div><div style>Regards, Lars.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/2/13 Alexey Belkevich <span dir="ltr"><<a href="mailto:belkevich@mlsdev.com" target="_blank">belkevich@mlsdev.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">
                <blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px"><span><div dir="ltr"><div><font face="arial, helvetica, sans-serif">Hello, can someone please explain </font><span style="font-family:arial,helvetica,sans-serif">the reason (and </span><span style="font-family:arial,helvetica,sans-serif">how to cope with)</span><span style="font-family:arial,helvetica,sans-serif"> that </span><b style="font-family:arial,helvetica,sans-serif">ff_log2_tab</b><span style="font-family:arial,helvetica,sans-serif"> is defined multiple</span><span style="font-family:arial,helvetica,sans-serif"> times with </span><b style="font-family:arial,helvetica,sans-serif">#include "libavutil/log2_tab.c</b><span style="font-family:arial,helvetica,sans-serif">" in</span><span style="font-family:arial,helvetica,sans-serif"> the ffmpeg v1.1 libraries like libavcodec 54.91.102 and</span><font face="arial, helvetica, sans-serif"> companions </font><span style="font-family:arial,helvetica,sans-serif">??</span></div>

<div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">This results in "duplicate symbols" while linking as listed below. To get ride of the problem we need to delete the duplicated entries by hand with "ar -d libxxx.a log2_tab.o" for all libraries but one, not a very smooth solution. Will this behavior change in the future or do weed need to automate a duplicate removal process while building the ffmpeg libraries for XBMC?</font></div>

<div><font face="arial, helvetica, sans-serif">--</font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">Thanks in advance!</font></div>
<div><font face="arial, helvetica, sans-serif">Regards, Lars. </font></div><div><font face="arial, helvetica, sans-serif"><br></font></div>







<font face="courier new, monospace"><div><br></div>"duplicate symbol _ff_log2_tab in:<br></font><span style="font-family:'courier new',monospace">   ../xbmc-12/lib/ffmpeg/libavcodec/libavcodec.a(log2_tab.o)</span><font face="courier new, monospace"><br>

</font><span style="font-family:'courier new',monospace">   </span><span style="font-family:'courier new',monospace">../xbmc-12/lib</span><span style="font-family:'courier new',monospace">/</span><span style="font-family:'courier new',monospace">ffmpeg/libavformat/libavformat.a(log2_tab.o)</span><font face="courier new, monospace"><br>

<br>duplicate symbol _ff_log2_tab in:<br></font><span style="font-family:'courier new',monospace">    </span><span style="font-family:'courier new',monospace">../xbmc-12/lib</span><span style="font-family:'courier new',monospace">/</span><span style="font-family:'courier new',monospace">ffmpeg/libavcodec/libavcodec.a(log2_tab.o)</span><font face="courier new, monospace"><br>

</font><span style="font-family:'courier new',monospace">    </span><span style="font-family:'courier new',monospace">../xbmc-12/lib</span><span style="font-family:'courier new',monospace">/</span><span style="font-family:'courier new',monospace">ffmpeg/libavutil/libavutil.a(log2_tab.o)</span><font face="courier new, monospace"><br>

<br>duplicate symbol _ff_log2_tab in:<br></font><span style="font-family:'courier new',monospace">    </span><span style="font-family:'courier new',monospace">../xbmc-12/lib</span><span style="font-family:'courier new',monospace">/</span><span style="font-family:'courier new',monospace">ffmpeg/libavcodec/libavcodec.a(log2_tab.o)</span><font face="courier new, monospace"><br>

</font><span style="font-family:'courier new',monospace">    </span><span style="font-family:'courier new',monospace">../xbmc-12/lib</span><span style="font-family:'courier new',monospace">/</span><span style="font-family:'courier new',monospace">ffmpeg/libswresample/libswresample.a(log2_tab.o)</span><font face="courier new, monospace"><br>

<br>ld: 3 duplicate symbols for architecture i386<br></font><span style="font-family:'courier new',monospace">clang: error: linker command failed with exit code 1 (use -v to see invocation)</span></div></span></blockquote>
</div></div><div>The solution described in this article - <a href="http://www.tangentsoftworks.com/blog/2012/11/12/how-to-prepare-your-mac-for-ios-development-with-ffmpeg-libraries/" target="_blank">http://www.tangentsoftworks.com/blog/2012/11/12/how-to-prepare-your-mac-for-ios-development-with-ffmpeg-libraries/</a>. See comments.</div>
<p style="border:0px;font-family:Georgia,serif;font-size:14px;margin:0px 0px 1.5714285714em;outline:0px;padding:0px;vertical-align:baseline;color:rgb(60,61,71);line-height:22px;text-align:left;background-color:rgb(237,234,241)">
<span style="font-family:inherit;font-size:12.3px;line-height:16px;border:0px;font-style:inherit;margin:0px;outline:0px;padding:0px;vertical-align:baseline">ar </span><span style="font-family:inherit;font-size:12.3px;line-height:16px;border:0px;font-style:inherit;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:rgb(102,102,0)">-</span><span style="font-family:inherit;font-size:12.3px;line-height:16px;border:0px;font-style:inherit;margin:0px;outline:0px;padding:0px;vertical-align:baseline">dv libavcodec</span><span style="font-family:inherit;font-size:12.3px;line-height:16px;border:0px;font-style:inherit;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:rgb(102,102,0)">.</span><span style="font-family:inherit;font-size:12.3px;line-height:16px;border:0px;font-style:inherit;margin:0px;outline:0px;padding:0px;vertical-align:baseline">a log2_tab</span><span style="font-family:inherit;font-size:12.3px;line-height:16px;border:0px;font-style:inherit;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:rgb(102,102,0)">.</span><span style="font-family:inherit;font-size:12.3px;line-height:16px;border:0px;font-style:inherit;margin:0px;outline:0px;padding:0px;vertical-align:baseline">o</span> </p>
<div><br>
                </div>
            <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>
<br></blockquote></div><br></div>