添加第三方視頻庫出現的bug

添加播放的第三方庫出現的bug

1、添加 ** FFmpeg-iOS-build-script ** 出現的報錯信息

I am able to compile ffmpeg library but when integrate static library of ffmpeg its still giving undefined symbol error for various architecture.
I have tried with http://sourceforge.net/projects/ffmpeg-ios/postdownload?source=dlp too but this is giving same error

Undefined symbols for architecture armv7:
"_BZ2_bzDecompressInit", referenced from:
_matroska_decode_buffer in libavformat.a(matroskadec.o)
"_iconv", referenced from:
_avcodec_decode_subtitle2 in libavcodec.a(utils.o)
"_BZ2_bzDecompress", referenced from:
_matroska_decode_buffer in libavformat.a(matroskadec.o)
"_BZ2_bzDecompressEnd", referenced from:
_matroska_decode_buffer in libavformat.a(matroskadec.o)
"_iconv_open", referenced from:
_avcodec_open2 in libavcodec.a(utils.o)
_avcodec_decode_subtitle2 in libavcodec.a(utils.o)
"_iconv_close", referenced from:
_avcodec_open2 in libavcodec.a(utils.o)
_avcodec_decode_subtitle2 in libavcodec.a(utils.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

2最楷、添加 MobileVLCKit.framework出現的報錯信息

Undefined symbols for architecture x86_64:
  "_BZ2_bzDecompress", referenced from:
      _ft_bzip2_file_fill_output in MobileVLCKit(ftbzip2.o)
  "_BZ2_bzDecompressEnd", referenced from:
      _ft_bzip2_stream_io in MobileVLCKit(ftbzip2.o)
      _ft_bzip2_stream_close in MobileVLCKit(ftbzip2.o)
  "_BZ2_bzDecompressInit", referenced from:
      _FT_Stream_OpenBzip2 in MobileVLCKit(ftbzip2.o)
      _ft_bzip2_stream_io in MobileVLCKit(ftbzip2.o)
  "_iconv", referenced from:
      _sub_recode in MobileVLCKit(ass.o)
      _vbi_print_page_region in MobileVLCKit(exp-txt.o)
      _print_unicode in MobileVLCKit(exp-txt.o)
      _vlc_iconv in MobileVLCKit(libc.o)
      _vbi_ucs2be in MobileVLCKit(export.o)
      _iconv_ucs2 in MobileVLCKit(conv.o)
      __vbi_iconv_open in MobileVLCKit(conv.o)
      ...
     (maybe you meant: _vbi_fputs_iconv_ucs2, _vbi_strndup_iconv_caption , __vbi_iconv_open , __vbi_iconv_close , _vbi_export_puts_iconv_ucs2 , __vbi_strndup_iconv , _vbi_export_puts_iconv , _vbi_strndup_iconv_ucs2 , __vbi_iconv_ucs2 , _vlc_iconv , _vlc_iconv_close , _vbi_strndup_iconv , _vbi_fputs_iconv , _vlc_iconv_open )
  "_iconv_close", referenced from:
      _sub_recode in MobileVLCKit(ass.o)
      _vbi_print_page_region in MobileVLCKit(exp-txt.o)
      _export in MobileVLCKit(exp-txt.o)
      _vlc_iconv_close in MobileVLCKit(libc.o)
      _vbi_ucs2be in MobileVLCKit(export.o)
      __vbi_iconv_close in MobileVLCKit(conv.o)
      __vbi_iconv_open in MobileVLCKit(conv.o)
      ...
     (maybe you meant: __vbi_iconv_close, _vlc_iconv_close )
  "_iconv_open", referenced from:
      _sub_recode in MobileVLCKit(ass.o)
      _vbi_print_page_region in MobileVLCKit(exp-txt.o)
      _export in MobileVLCKit(exp-txt.o)
      _vlc_iconv_open in MobileVLCKit(libc.o)
      _vbi_ucs2be in MobileVLCKit(export.o)
      __vbi_iconv_open in MobileVLCKit(conv.o)
      _export in MobileVLCKit(exp-html.o)
      ...
     (maybe you meant: __vbi_iconv_open, _vlc_iconv_open )
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

解決方法

1循衰、Targets -> General -->Linked Frameworks and Libraries 中铲敛,添加 libbz2.dylib,libiconv.dylib兩個文件

2、 添加之后如果出現

**duplicate symbols for architecture x86_64 **

處理方法是:
Targets -> Build Setting -->Other Linker Flags 中会钝,找到伐蒋,并刪除
-ObjC


參考鏈接:

  1. 添加第三方的播放庫出現bug
    https://github.com/kewlbear/FFmpeg-iOS-build-script/issues/2
  2. ** duplicate symbols for architecture x86_64 **
    http://stackoverflow.com/questions/24298144/duplicate-symbols-for-architecture-x86-64
最后編輯于
?著作權歸作者所有,轉載或內容合作請聯(lián)系作者
  • 序言:七十年代末,一起剝皮案震驚了整個濱河市迁酸,隨后出現的幾起案子先鱼,更是在濱河造成了極大的恐慌,老刑警劉巖奸鬓,帶你破解...
    沈念sama閱讀 216,402評論 6 499
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件焙畔,死亡現場離奇詭異,居然都是意外死亡全蝶,警方通過查閱死者的電腦和手機闹蒜,發(fā)現死者居然都...
    沈念sama閱讀 92,377評論 3 392
  • 文/潘曉璐 我一進店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來抑淫,“玉大人,你說我怎么就攤上這事姥闪∈嘉” “怎么了?”我有些...
    開封第一講書人閱讀 162,483評論 0 353
  • 文/不壞的土叔 我叫張陵筐喳,是天一觀的道長催式。 經常有香客問我,道長避归,這世上最難降的妖魔是什么荣月? 我笑而不...
    開封第一講書人閱讀 58,165評論 1 292
  • 正文 為了忘掉前任,我火速辦了婚禮梳毙,結果婚禮上哺窄,老公的妹妹穿的比我還像新娘。我一直安慰自己账锹,他們只是感情好萌业,可當我...
    茶點故事閱讀 67,176評論 6 388
  • 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著奸柬,像睡著了一般生年。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上廓奕,一...
    開封第一講書人閱讀 51,146評論 1 297
  • 那天抱婉,我揣著相機與錄音档叔,去河邊找鬼。 笑死蒸绩,一個胖子當著我的面吹牛衙四,可吹牛的內容都是我干的。 我是一名探鬼主播侵贵,決...
    沈念sama閱讀 40,032評論 3 417
  • 文/蒼蘭香墨 我猛地睜開眼届搁,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了窍育?” 一聲冷哼從身側響起卡睦,我...
    開封第一講書人閱讀 38,896評論 0 274
  • 序言:老撾萬榮一對情侶失蹤,失蹤者是張志新(化名)和其女友劉穎漱抓,沒想到半個月后表锻,有當地人在樹林里發(fā)現了一具尸體,經...
    沈念sama閱讀 45,311評論 1 310
  • 正文 獨居荒郊野嶺守林人離奇死亡乞娄,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內容為張勛視角 年9月15日...
    茶點故事閱讀 37,536評論 2 332
  • 正文 我和宋清朗相戀三年瞬逊,在試婚紗的時候發(fā)現自己被綠了。 大學時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片仪或。...
    茶點故事閱讀 39,696評論 1 348
  • 序言:一個原本活蹦亂跳的男人離奇死亡确镊,死狀恐怖,靈堂內的尸體忽然破棺而出范删,到底是詐尸還是另有隱情蕾域,我是刑警寧澤,帶...
    沈念sama閱讀 35,413評論 5 343
  • 正文 年R本政府宣布到旦,位于F島的核電站旨巷,受9級特大地震影響,放射性物質發(fā)生泄漏添忘。R本人自食惡果不足惜采呐,卻給世界環(huán)境...
    茶點故事閱讀 41,008評論 3 325
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望搁骑。 院中可真熱鬧斧吐,春花似錦、人聲如沸靶病。這莊子的主人今日做“春日...
    開封第一講書人閱讀 31,659評論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽娄周。三九已至涕侈,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間煤辨,已是汗流浹背裳涛。 一陣腳步聲響...
    開封第一講書人閱讀 32,815評論 1 269
  • 我被黑心中介騙來泰國打工木张, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留,地道東北人端三。 一個月前我還...
    沈念sama閱讀 47,698評論 2 368
  • 正文 我出身青樓舷礼,卻偏偏與公主長得像,于是被迫代替她去往敵國和親郊闯。 傳聞我的和親對象是個殘疾皇子妻献,可洞房花燭夜當晚...
    茶點故事閱讀 44,592評論 2 353

推薦閱讀更多精彩內容