Xcode 建筑移动通信公司->;armc7+;ffmpeg问题

Xcode 建筑移动通信公司->;armc7+;ffmpeg问题,xcode,ffmpeg,vlc,armv7,Xcode,Ffmpeg,Vlc,Armv7,我正试图在OSX Lion上构建MobileVLC,与iOSSDK5.0相抗衡。到目前为止,还没有骰子 但是,按照给定的说明,生成会在此处停止并失败: [信息]在'/Users/shamil/Documents/MobileVLC/ImportedSources/vlc/contrib-builddir-iOS-i686-apple-darwin10中为iOS构建contrib 当前日志: ./buildMobileVLC.sh-s [信息]正在准备生成目录 [信息]大厦 [信息]大厦vlc [

我正试图在OSX Lion上构建MobileVLC,与iOSSDK5.0相抗衡。到目前为止,还没有骰子

但是,按照给定的说明,生成会在此处停止并失败: [信息]在'/Users/shamil/Documents/MobileVLC/ImportedSources/vlc/contrib-builddir-iOS-i686-apple-darwin10中为iOS构建contrib

当前日志: ./buildMobileVLC.sh-s [信息]正在准备生成目录 [信息]大厦 [信息]大厦vlc [信息]为iOS构建libvlc [信息]将i386与SDK版本4.2一起使用 [信息]在“/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的目录


e、 g:/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk

这让它为我工作:

/配置 --额外ldflags=-L/Applications/Xcode.app/Contents//Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/usr/lib/system --启用交叉编译--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——启用pic——额外的ldflags='-arch armv7'


我也有同样的问题。你找到解决方案了吗?没有:(仍在搜索answersHello,LDFLAGS变量在哪里?这对我来说很有效,谢谢!我要用armv7s试试