slavavdovichenko / MediaLibDemos3x

MediaLibiOS & Demos 3.x
201 stars 48 forks source link

Duplicate Symbol Issue #44

Open chirag225 opened 8 years ago

chirag225 commented 8 years ago

duplicate symbol _ff_log2_tab in: /Users/bla/Desktop/blaa 14:9:15/support/lib/libav-11.4/lib/libavutil.a(log2_tab.o) /Users/bla/Desktop/blaa 14:9:15/support/lib/libav-11.4/lib/libavformat.a(log2_tab.o) duplicate symbol _ff_log2_tab in: /Users/bla/Desktop/blaa 14:9:15/support/lib/libav-11.4/lib/libavutil.a(log2_tab.o) /Users/bla/Desktop/blaa 14:9:15/support/lib/libav-11.4/lib/libavcodec.a(log2_tab.o) ld: 2 duplicate symbols for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)

chirag225 commented 8 years ago

Hi @slavavdovichenko please check this error, i can not understand what file duplicat

slavavdovichenko commented 8 years ago

I cannot reproduce this problem with my samples

chirag225 commented 8 years ago

Hi thank you for your replay Can you Explain how can i handle this duplicate symbol error

slavavdovichenko commented 8 years ago

Check your project target if the kit of the libs is like here:

chirag225 commented 8 years ago

Thank you sir this is working now

satyamub commented 8 years ago

@chirag225 @slavavdovichenko I am experiencing the same issue.. The code line which if I add I get the duplicate symbol issue. I have checked the above comments and checked that all are included.

MPMediaDecoder *decoder = [[MPMediaDecoder alloc] initWithView:previewView]; Another thing I get to know that its suggested to add CoreData.framework in the page however in this screenshot in above comment, its not getting shown. Why so?

Please help me out!!!

satyamub commented 8 years ago

I am using Xcode 6.4 thats why I have used .dylib file instead of tbd file. I am getting the below errors.

duplicate symbol _llvm.cmdline in: /Users/saty/Desktop/iOS Development/RTMPObjCPlayer/RTMPObjCPlayer/lib/MediaLibiOS3x/MediaLibiOS.a(MPMediaDecoder.o) /Users/saty/Desktop/iOS Development/RTMPObjCPlayer/RTMPObjCPlayer/lib/libav-11.4/lib/libavcodec.a(vorbis_parser.o) duplicate symbol _llvm.embedded.module in: /Users/saty/Desktop/iOS Development/RTMPObjCPlayer/RTMPObjCPlayer/lib/MediaLibiOS3x/MediaLibiOS.a(MPMediaDecoder.o) /Users/saty/Desktop/iOS Development/RTMPObjCPlayer/RTMPObjCPlayer/lib/libav-11.4/lib/libavcodec.a(vorbis_parser.o) duplicate symbol _llvm.cmdline in: /Users/saty/Desktop/iOS Development/RTMPObjCPlayer/RTMPObjCPlayer/lib/MediaLibiOS3x/MediaLibiOS.a(MPMediaDecoder.o) /Users/saty/Desktop/iOS Development/RTMPObjCPlayer/RTMPObjCPlayer/lib/libav-11.4/lib/libavcodec.a(xiph.o) duplicate symbol _llvm.embedded.module in: /Users/saty/Desktop/iOS Development/RTMPObjCPlayer/RTMPObjCPlayer/lib/MediaLibiOS3x/MediaLibiOS.a(MPMediaDecoder.o) /Users/saty/Desktop/iOS Development/RTMPObjCPlayer/RTMPObjCPlayer/lib/libav-11.4/lib/libavcodec.a(xiph.o) ld: 696 duplicate symbols for architecture x86_64

satyamub commented 8 years ago

I got the issue its because of the tbd file I am not using because I am working on the Xcode 6.4. @slavavdovichenko how can I use Xcode 6.4 to use this library????

slavavdovichenko commented 8 years ago

Hi,

You can get the older version from http://www.themidnightcoders.com/download.html (3.3.1). But maybe it is better to upgrade the Xcode?