➜ ~ brew install mpv --HEAD
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/cask).
No changes to formulae.
==> Cloning
https://github.com/mpv-player/mpv.gitUpdating /Users/hrwhfr/Library/Caches/Homebrew/mpv--git
==> Checking out branch master
Already on 'master'
Your branch is up to date with 'origin/master'.
HEAD is now at e9fae413fd options/path: fix url detection per RFC3986
==> ./
bootstrap.py==> python3 waf configure --prefix=/usr/local/Cellar/mpv/HEAD-e9fae41_3 --enable-html-build --enable-javascript --enable-libmpv-shared --enable-lua --enable-libarchive --enable-uchardet --
==> python3 waf install
Last 15 lines from /Users/hrwhfr/Library/Logs/Homebrew/mpv/03.python3:
/private/tmp/mpv-20190407-1534-1nv4n3r/video/out/cocoa_cb_common.swift:256:29: warning: 'init(_:)' is deprecated: replaced by 'init(truncating:)'
let lux = Int(ceil( Double((term4 + term3 + term2 + term1 - 0.19) as NSNumber)))
^
/private/tmp/mpv-20190407-1534-1nv4n3r/video/out/cocoa_cb_common.swift:256:29: note: use 'init(truncating:)' instead
let lux = Int(ceil( Double((term4 + term3 + term2 + term1 - 0.19) as NSNumber)))
^
truncating:
/private/tmp/mpv-20190407-1534-1nv4n3r/video/out/cocoa_cb_common.swift:335:39: error: cannot call value of non-function type '[NSScreen]'
let screens = NSScreen.screens()
~~~~~~~~~~~~~~~~^~
Waf: Leaving directory `/private/tmp/mpv-20190407-1534-1nv4n3r/build'
Build failed
-> task in 'osdep/macOS_swift.o,osdep/macOS_swift.h,osdep/macOS_swift.swiftmodule' failed with exit status 1 (run with -v to display more information)
READ THIS:
https://docs.brew.sh/Troubleshooting错误信息如上= =
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
https://www.v2ex.com/t/552761
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.