现在正在编译VLCKit for iOS,我觉得主要问题正像这篇文章说的一样是网络问题,网络不稳定,得多执行几次那个官网的sh文件,理由可以参见下面的报错信息:
curl -f -L -- "http://webm.googlecode.com/files/libvpx-v1.3.0.tar.bz2" > "../../contrib/tarballs/libvpx-v1.3.0.tar.bz2"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:01:15 --:--:-- 0curl: (7) Failed to connect to 2404:6800:4008:c01::52: No route to host
make: *** [../../contrib/tarballs/libvpx-v1.3.0.tar.bz2] Error 7
make: *** Deleting file `../../contrib/tarballs/libvpx-v1.3.0.tar.bz2'
另外呢,参见报错信息中的网址,如果包括googlecode的话,那就得翻墙了,我是在hosts文件里添加没被墙的地址解决问题的。比如这个http://webm.googlecode.com/files/libvpx-v1.3.0.tar.bz2
git clone git://git.videolan.org/vlc-ports/ios.git
sh compileVLCforiOS.sh
sh compileVLCforiOS.sh -s
The following build commands failed:
Libtool build/MobileVLCKit.build/Release-iphoneos/MobileVLCKit.build/Objects-normal/armv7/libMobileVLCKit.a normal armv7
Libtool build/MobileVLCKit.build/Release-iphoneos/MobileVLCKit.build/Objects-normal/armv7s/libMobileVLCKit.a normal armv7s
Libtool build/MobileVLCKit.build/Release-iphoneos/MobileVLCKit.build/Objects-normal/arm64/libMobileVLCKit.a normal arm64
(3 failures)
[info] Installing libvlc
[info] Removing unneeded modules
~/Documents/VLC_Player/devices/ios/ImportedSources/VLCKit/MobileVLCKit/ImportedSources/vlc/extras/package/ios
[info] Building MobileVLCKit (Aggregate static plugins, Release)
[info] Building MobileVLCKit (MobileVLCKit, Release)
[info] Build completed
[info] Building MobileVLCKit (Aggregate static plugins, Release)
[info] Building MobileVLCKit (MobileVLCKit, Release)
[info] Building MediaLibraryKit (MediaLibraryKit, Release)
[info] Building upnpx (upnpx, Release)
[info] Building GTL (GTLTouchStaticLib, Release)
[info] Building CrashReporter (CrashReporter-iOS-Device, Release)
[info] Building QuincyLib (QuincyLib, Release)
[info] Building VLC for iOS (vlc-ios, Release)
[info] Build completed
![VLC-开源播放器编译 VLC-开源播放器编译](https://i-blog.csdnimg.cn/blog_migrate/7f22494eb4e20f4d9a8603ba9b33a3f1.jpeg)
原文链接:http://blog.sina.com.cn/s/blog_7b9d64af0101jpvy.html