> 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 


_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to