建筑物MobileVLC-> armc7 + ffmpeg问题

问题描述

| 我正在尝试针对iOS SDK 5.0在OS X Lion上构建MobileVLC。到目前为止,还没有骰子。 按照给定的说明进行操作,但是,构建会在此处停止并失败: [info]在\'/ Users / shamil / Documents / MobileVLC / ImportedSources / vlc / contrib-builddir-ios-i686-apple-darwin10中为iOS构建contrib 当前日志: ./buildMobileVLC.sh -s [info]准备构建目录 [信息]大楼 [info] Building vlc [info]为iOS构建libvlc [info]将i386与SDK版本4.2一起使用 [info]在\'/ Users / shamil / Documents / MobileVLC / ImportedSources / vlc / contrib-builddir-ios-i686-apple-darwin10 \'中为iOS构建contrib 错误给出如下:
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.
我已经加粗了一个我认为会导致失败的代码。现在-如何解决错误?     

解决方法

        将\“-L $(SDKROOT)/ usr / lib / system \”添加到LDFLAGS变量。 其中SDKROOT是指向最新iOS的目录。 例如:/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk     ,        这对我有用:   。/配置   --extra-ldflags = -L / Applications / Xcode.app / Contents // Developer / Platforms / iPhoneOS.platform / Developer / SDKs / iPhoneOS6.0.sdk / usr / lib / system   --enable-cross-compile --arch = arm --target-os = darwin --cc = \'/ Applications / Xcode.app / Contents / Developer / Platforms / iPhoneOS.platform / Developer / usr / bin / llvm-海湾合作委员会   -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 \'     

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...