2011-07-06 127 views
0

我試圖建立MobileVLCOS X Leopard的,使用的iOS SDK 4.3錯誤建築MobileVLCKit

隨後作出批示,但是,建立停止,未能在這裏:[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我必須將buildMobileVLC.sh中的sdk從4.2更改爲4.3。在更改之前,我得到了以下錯誤:

xcodebuild: error: SDK "iphoneos4.2" cannot be located. 

如何解決此錯誤?並可以修復xcodebuild錯誤以不同的方式解決這兩個問題?

回答

1

編輯:ImportedSources/VLC /演員/的contrib /引導

地址: EXTRA_LDFLAGS = 「$ {} EXTRA_LDFLAGS $ -isysroot {} IOS_SDK_ROOT」

前:

如果測試-z 「$ IOS_SDK_ROOT」;然後 錯誤「引導腳本需要IOS_SDK_ROOT環境」 錯誤 出口1個 網絡連接「變量來構建適用於iOS時設置」

1

二方法:1. 你最好從包Xcode中安裝的iOS SDK 4.2 3.2.5/3.26

  1. 編輯你的腳本,./MobileVLC/build_for_iOS.sh,改變4.2 - > 4.3

之後,你可能會去進一步