[Libav-user] ff_log2_tab defined multiple times in the fmpeg 1.1 libraries, bug or feature ??

Alexey Belkevich belkevich at mlsdev.com
Wed Feb 13 16:47:08 CET 2013


> Hello, can someone please explain the reason (and how to cope with) that ff_log2_tab is defined multiple times with #include "libavutil/log2_tab.c" in the ffmpeg v1.1 libraries like libavcodec 54.91.102 and companions ??
> 
> 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? 
> --
> 
> Thanks in advance! 
> Regards, Lars. 
> 
> 
> "duplicate symbol _ff_log2_tab in:
>    ../xbmc-12/lib/ffmpeg/libavcodec/libavcodec.a(log2_tab.o)
>    ../xbmc-12/lib/ffmpeg/libavformat/libavformat.a(log2_tab.o)
> 
> duplicate symbol _ff_log2_tab in:
>     ../xbmc-12/lib/ffmpeg/libavcodec/libavcodec.a(log2_tab.o)
>     ../xbmc-12/lib/ffmpeg/libavutil/libavutil.a(log2_tab.o)
> 
> duplicate symbol _ff_log2_tab in:
>     ../xbmc-12/lib/ffmpeg/libavcodec/libavcodec.a(log2_tab.o)
>     ../xbmc-12/lib/ffmpeg/libswresample/libswresample.a(log2_tab.o)
> 
> ld: 3 duplicate symbols for architecture i386
> clang: error: linker command failed with exit code 1 (use -v to see invocation)
The solution described in this article - http://www.tangentsoftworks.com/blog/2012/11/12/how-to-prepare-your-mac-for-ios-development-with-ffmpeg-libraries/. See comments.

ar -dv libavcodec.a log2_tab.o 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20130213/5c68f903/attachment.html>


More information about the Libav-user mailing list