[英]build of MobileVLC for iOS fails
我正在嘗試為iOS編譯VLC播放器。
我從回購中克隆了git,試圖運行“ buildMobileVLC.sh”(使用此Wiki文檔 )
$ git clone git://git.videolan.org/MobileVLC.git
$ cd MobileVLC
$ ./buildMobileVLC.sh
但是結果是我在下一個終端中:
SDKROOT not specified, assuming /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk
*** /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk does not exist, please install required SDK, or set SDKROOT manually. ***
即使這樣
./buildMobileVLC.sh -k iphoneos5.0
不禁解決問題
PS當我嘗試:
./buildMobileVLC.sh -h
它說
-k Specify which sdk to use (see 'xcodebuild -showsdks', current: iphoneos5.0)
我究竟做錯了什么? 我是否應該安裝iPhone SDK 5.1,如果“是”,怎么辦?
UPD:我改變了
SDK_VERSION=5.0
在/ Users // MobileVLC / ImportedSources / vlc / extras / package / ios中的文件“ build.sh”中
錯誤消失了,但是終端中的新錯誤是:
./libavutil/arm/asm.S:180:cannot use register index with PC-relative addressing -- `ldr r4,[pc,r4]'
./libavutil/arm/asm.S:180:cannot use register index with PC-relative addressing -- `ldr lr,[pc,lr]'
clang: error: assembler command failed with exit code 1 (use -v to see invocation)
make[1]: *** [libavcodec/arm/ac3dsp_armv6.o] Error 1
make: *** [.ffmpeg] Error 2
是的,您應該安裝iOS SDK,可以通過從Appstore安裝Xcode來獲取它。
錯誤告訴您找不到SDK,安裝Xcode后,將安裝SDK。
使用新的Xcode,SDK位於Xcode捆綁包中,即/Applications/Xcode.app/Contents/Developer
。建議您將找不到的SDKROOT
設置為該路徑。
看來VLC的移動版本已損壞: http : //forum.videolan.org/viewtopic.php? f=12& t=103322
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.