2014-01-18 23 views
6

我已經嘗試了幾個小時,但我無法弄清楚這一點。我在我的項目中使用KXMOVIE。我按照指示下載並編譯了ffmpeg二進制文件。示例應用程序實際上工作得很好,但我無法將其構建到自己的項目中。所有的.a文件都在那裏,完全如何在示例應用程序中。我在嘗試構建模擬器時遇到此錯誤。ffmpeg不會在我的項目中生成,在示例應用程序中工作正常

Undefined symbols for architecture i386: 
    "_iconv", referenced from: 
     _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) 
    "_iconv_open", referenced from: 
     _avcodec_open2 in libavcodec.a(utils.o) 
     _avcodec_decode_subtitle2 in libavcodec.a(utils.o) 
ld: symbol(s) not found for architecture i386 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 

我在做什麼錯?我甚至不知道從哪裏開始。

回答

11

您還需要鏈接到libiconv。假設你有它,通過-liconv作爲你的鏈接選項。

+0

這就是問題所在。非常非常感謝你。 –

+0

非常感謝你...... D – duongvanthai

+0

是的!非常感謝你 –

0

直接在「TARGETS」 - >「BuildSettings」 - >「Other Linker Flags」工程中點擊「+」添加「 - liconv」項目,如果您有任何疑問,歡迎留言

+2

請用英文填寫你的答案 – hidro

相關問題