我正在尝试使用iOS SDK 4.3在OS X Leopard上构建MobileVLC。
但是,按照给定的说明,构建在此处停止并失败:[info] Building contrib for iOS in '/Users/matp/MobileVLC/ImportedSources/vlc/contrib-builddir-ios-arm-apple-darwin10'
Current log:./buildMobileVLC.sh
[info] Preparing build dirs
[info] Building
[info] Building vlc
[info] Building libvlc for the iOS
[info] Using armv7 with SDK version 4.3
[info] Building contrib for iOS in '/Users/matp/MobileVLC/ImportedSources/vlc/contrib-builddir-ios-arm-apple-darwin10'
错误如下:
make[1]: *** [.ffmpeg] Error 1
make: *** [using-src] Error 2
/ImportedSources/vlc/contrib-builddir-ios-arm-apple-darwin10/build-src/ffmpeg/config.log tells me:
ld: warning: directory not found for option '-L/Users/matp/MobileVLC/ImportedSources/vlc/contrib-ios-arm-apple-darwin10/lib'
ld: warning: directory not found for option '-L/Users/matp/MobileVLC/ImportedSources/vlc/contrib-ios-arm-apple-darwin10/lib'
ld: file not found: /usr/lib/system/libcache.dylib for architecture armv7
collect2: ld returned 1 exit status
C compiler test failed.
同样在更改之前,为了使 sdk 4.3 达到这一点,我不得不将 sdkbuildMobileVLC.sh
从 4.2 更改为 4.3。在更改之前,我收到了错误:
xcodebuild: error: SDK "iphoneos4.2" cannot be located.
如何修复此错误?并且可以xcodebuild
以不同的方式修复错误来解决这两个问题吗?