简体   繁体   中英

build of MobileVLC for iOS fails

I'm trying to compile VLC player for iOS.

I've cloned git from repo, a tried to run "buildMobileVLC.sh" (using this wiki documentation )

$ git clone git://git.videolan.org/MobileVLC.git
$ cd MobileVLC
$ ./buildMobileVLC.sh

But as the result I have in terminal next:

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. ***

Even this

./buildMobileVLC.sh -k iphoneos5.0

can't help to solve the problem

PS When I try:

./buildMobileVLC.sh -h

It says

   -k       Specify which sdk to use (see 'xcodebuild -showsdks', current: iphoneos5.0)

What am I doing wrong? And should I install iPhone SDK 5.1, if "yes", then how?

UPD: I changed

SDK_VERSION=5.0

in file "build.sh" in /Users//MobileVLC/ImportedSources/vlc/extras/package/ios

The error disappeared but the new error in Terminal is:

./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

Yes you should install the iOS SDK, you can get it by installing Xcode from the Appstore.

Error is telling you that the SDK can not be found, after you install Xcode the SDK will be installed.

With the new Xcode the SDK is in the Xcode bundle, /Applications/Xcode.app/Contents/Developer As suggest you could set the SDKROOT to this path if it can't find the SDK.


It appears that the mobile build for VLC is broken: http://forum.videolan.org/viewtopic.php?f=12&t=103322

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM