建立MobileVLC - > armc7 + ffmpeg问题

时间:2011-06-12 04:03:01

标签: xcode ffmpeg vlc armv7

我正在尝试在OS X Lion上针对iOS SDK 5.0构建MobileVLC。到目前为止,没有骰子。

按照给定的说明,构建停止并在此处失败: [info]在'/ Users / shamil / Documents / MobileVLC / ImportedSources / vlc / contrib-builddir-ios-i686-apple-darwin10

中构建iOS的贡献

当前日志: ./buildMobileVLC.sh -s [info]准备构建目录 [info]建设 [info]建立vlc [info]为iOS构建libvlc [info]使用i386和SDK 4.2版 [info]在'/ Users / shamil / Documents / MobileVLC / ImportedSources / vlc / contrib-builddir-ios-i686-apple-darwin10'中构建iOS的贡献

错误如下:

make[1]: *** [.ffmpeg] Error 1
make: *** [using-src] Error 2

/ImportedSources/vlc/contrib-builddir-ios-arm-apple-darwin10/build-src/ffmpeg/config.log告诉我:

ld: warning: directory not found for option 'L/Users/shamil/Documents/MobileVLC/ImportedSources/vlc/contrib-ios-arm-apple-darwin10/lib'
ld: warning: directory not found for option '-L/Users/shamil/Documents/MobileVLC/ImportedSources/vlc/contrib-ios-arm-apple-darwin10/lib'
**ld: in /usr/lib/system/libcache.dylib, missing required architecture armv7 in file for architecture armv7**
collect2: ld returned 1 exit status
C compiler test failed.

我加粗了我认为导致它失败的那个。现在 - 我该如何解决这个错误?

2 个答案:

答案 0 :(得分:1)

将“-L $(SDKROOT)/ usr / lib / system”添加到LDFLAGS变量。

其中SDKROOT是指向最新iOS的目录。

例如:/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk

答案 1 :(得分:1)

这让它适合我:

  

./配置   --extra-LDFLAGS = -L /应用/ Xcode.app /目录//开发商/平台/ iPhoneOS.platform /开发商/软件开发工具包/ iPhoneOS6.0.sdk / usr / lib中/系统   --enable-cross-compile --arch = arm --target-os = darwin --cc ='/ Applications / Xcode.app / Contents / Developer / Platforms / iPhoneOS.platform / Developer / usr / bin / llvm-gcc   -arch armv7' - sysroot = / Applications / Xcode.app / Contents / Developer / Platforms / iPhoneOS.platform / Developer / SDKs / iPhoneOS6.0.sdk   --cpu = cortex-a8 --enable-pic --extra-ldflags =' - arch armv7'