我正在尝试为 iOS 编译 VLC 播放器。
我已经从 repo 克隆了 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