VLC-开源播放器编译

现在正在编译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





需要VLC
在iOS开发中,如果你的程序中播放视频,并且多媒体播放功能是你iOS程序的核心功能!
那么,你需要这一款播放器!
它支持m3u8、rtsp、rtmp、MP4、flv…… 多种格式!绝对比苹果自带的播放器给力的多吧!那么,可行而知,使用VLC播放器,那你的iOS应用就显的牛X太多!!!
我为编译VLC播放器,不懈努力了整整3个无眠的夜晚!擦!写下此编译过程,希望能够让别人少走弯路!

什么是VLC
VLC是一款开源的视频播放框架!支持N多种多媒体格式!
官方网址: VLC开源网址
可以下载到相应的版本!我们这里使用iOS。

VLC的编译方式

一.在线编译。意味着你必须链接网络去编译!
因为,VLC本身用到了很多其他开源的代码,其他的开源代码,需要在VLC编译过程中下载和编译。

二.编译方式,非常简单,因为VLC团队将编译写成了一个编译命令文件。
我们要做的就是执行代码下载命令。
1.首先从Git上下载编译脚本。
2.执行编译脚本文件。
真机版本编译:
sh compileVLCforiOS.sh
模拟器版本编译:
sh compileVLCforiOS.sh -s

3.等待编译结果。
这一步是非常纠结的,往往会由于网络原因,导致相关源文件下载失败,而导致编译失败。
向如下情况:

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)


出现这种情况很正常,不要气馁,一直执行相应的sh命令,直至成功。

[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-开源播放器编译


希望对你有所帮助!


原文链接:http://blog.sina.com.cn/s/blog_7b9d64af0101jpvy.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值