2011-06-12 63 views
2

我想在OS X Lion上针对iOS SDK 5.0构建MobileVLC。到目前为止,没有骰子。building mobileVLC - > armc7 + ffmpeg问题

按照给出的说明,但是,建立停止并失败: [info] darwin10

当前日志: ./buildMobileVLC.sh -s [信息]准备建立迪尔斯 [信息]构建 [资讯]建筑VLC [信息]大厦libvlc的IOS [信息]使用i386的使用SDK version 4.2 [info]在'/ Users/shamil/Documents/MobileVLC/ImportedSources/vlc/contrib-builddir-ios-i686-apple-dar中为iOS构建contrib win10'

给出错误如下:

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. 

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

+0

林具有完全相同的问题。你有没有找到解决方案? – Mat 2011-07-06 12:14:08

+0

Nope :(仍然在寻求答案 – bear 2011-07-30 16:55:46

回答

1

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

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

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

+0

你好,LDFLAGS变量在哪里? – 2012-08-27 12:10:44

1

这得到了它的工作对我来说:

的./configure --extra- ldflags = -L/Applications/Xcode.app /目录//开发人员/平台/ 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-gcc -arch armv7'--sysroot =/Applications/Xcode.app/Contents/Developer/Platfor MS/iPhoneOS.platform /开发商/软件开发工具包/ iPhoneOS6.0.sdk --cpu = Cortex-A8的--enable-PIC --extra-LDFLAGS = ' - 拱的ARMv7'

+0

这对我有效,谢谢!我会用armv7s来试试 – marchinram 2012-10-22 00:26:38

+0

我得到这个错误“./configure:No such file or directory” – Allan 2012-11-13 08:40:04