2013-01-22 88 views
1

我已經決定在objective-c和cocoa中編寫一個簡單的音頻轉換器,但我無法將libFlac C庫鏈接到我的Xcode項目。當我試圖做到這一點,編譯器說:在Mountain Lion中使用libFlac和Xcode

ld: symbol(s) not found for architecture x86_64

更重要的是,當我試圖通過命令行工具(就像它在自述文件中所述)編譯它,終端拋出:

ot match previous archive members cputype (16777223) (all members must match) ranlib: for architecture: x86_64 file: .libs/libFLAC.a(float.o) has no symbols make[4]: * [libFLAC.la] Error 1 make[3]: [all-recursive] Error 1 make[2]: [all-recursive] Error 1 make[1]: * [all-recursive] Error 1

當我改變了目標架構英特爾32位:

error: -fobjc-arc is not supported with fragile abi Command >/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang >failed with exit code 1

任何人可以幫助我嗎?也許有人知道在Objective-C中解碼FLAC文件的更好,更簡單的方法?

回答

0
./configure --disable-asm-optimizations && make 

這將建立正確的OS X.

相關問題