本文介绍了在 Mac OS 10.9 上编译 VLCKit的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试按照此 wiki 在 Mac OS 10.9 上编译 VLCKit:https://wiki.videolan.org/VLCKit/
I'm trying to compile VLCKit on Mac OS 10.9 following this wiki : https://wiki.videolan.org/VLCKit/
我有克隆 git://git.videolan.org/vlc-bindings/VLCKit.git然后在 Xcode 5.1 中打开 VLCKit.xcodeproj最后运行Build Everything".
I have clone git://git.videolan.org/vlc-bindings/VLCKit.gitthen open VLCKit.xcodeproj in Xcode 5.1and finally run "Build Everything".
但是由于这些问题构建失败:
But build failed with thoses issues :
运行 VLC 配置
PhaseScriptExecution bootstrap /Users/myname/Library/Developer/Xcode/DerivedData/VLCKit- bktcaifqrsqwbodqlfdqgsmkkdeb/Build/Intermediates/VLCKit.build/Debug/Run VLC configure.build/Script-631A90420D5A007D0014A2CE.sh
cd /Users/myname/Documents/PhcDev/VLCKit
/bin/sh -c "/Users/myname/Library/Developer/Xcode/DerivedData/VLCKit- bktcaifqrsqwbodqlfdqgsmkkdeb/Build/Intermediates/VLCKit.build/Debug/Run VLC configure.build/Script-631A90420D5A007D0014A2CE.sh"
/Users/myname/Library/Developer/Xcode/DerivedData/VLCKit-bktcaifqrsqwbodqlfdqgsmkkdeb/Build/Intermediates/VLCKit.build/Debug/Run VLC configure.build/Script-631A90420D5A007D0014A2CE.sh: line 16: ./bootstrap: No such file or directory
设置 VLC 贡献
PhaseScriptExecution make /Users/myname/Library/Developer/Xcode/DerivedData/VLCKit-bktcaifqrsqwbodqlfdqgsmkkdeb/Build/Intermediates/VLCKit.build/Debug/Setup VLC contribs.build/Script-633BD6E30D2ADF030012A314.sh
cd /Users/myname/Documents/PhcDev/VLCKit
/bin/sh -c "/Users/myname/Library/Developer/Xcode/DerivedData/VLCKit-bktcaifqrsqwbodqlfdqgsmkkdeb/Build/Intermediates/VLCKit.build/Debug/Setup VLC contribs.build/Script-633BD6E30D2ADF030012A314.sh"
Building tools
/Users/myname/Library/Developer/Xcode/DerivedData/VLCKit-bktcaifqrsqwbodqlfdqgsmkkdeb/Build/Intermediates/VLCKit.build/Debug/Setup VLC contribs.build/Script-633BD6E30D2ADF030012A314.sh: line 10: cd: /Users/myname/Documents/PhcDev/VLCKit/vlc-unstable/extras/tools: No such file or directory
/Users/myname/Library/Developer/Xcode/DerivedData/VLCKit-bktcaifqrsqwbodqlfdqgsmkkdeb/Build/Intermediates/VLCKit.build/Debug/Setup VLC contribs.build/Script-633BD6E30D2ADF030012A314.sh: line 11: ./bootstrap: No such file or directory
xcodebuild -project VLCKit.xcodeproj -target "Build Everything"
make: *** [build/Debug/VLCKit.framework] Interrupt: 2
Building a set of contribs for x86_64...
/Users/myname/Library/Developer/Xcode/DerivedData/VLCKit-bktcaifqrsqwbodqlfdqgsmkkdeb/Build/Intermediates/VLCKit.build/Debug/Setup VLC contribs.build/Script-633BD6E30D2ADF030012A314.sh: line 20: cd: /Users/myname/Documents/PhcDev/VLCKit/vlc-unstable/contrib: No such file or directory
Making contribs for x86_64
/Users/myname/Library/Developer/Xcode/DerivedData/VLCKit- bktcaifqrsqwbodqlfdqgsmkkdeb/Build/Intermediates/VLCKit.build/Debug/Setup VLC contribs.build/Script-633BD6E30D2ADF030012A314.sh: line 32: ../bootstrap: No such file or directory
make: *** No rule to make target `prebuilt'. Stop.
我错过了什么吗?有人可以帮忙吗?
Did I miss something ? Can someone help please ?
推荐答案
我终于自己解决了我的问题.
I finally solved my issues by myself.
这是我必须做的才能使其成功编译:
Here's what I had to do to make it compile successfully :
- git 克隆 git://git.videolan.org/vlc-bindings/VLCKit.git
- 打开 VLCKit.xcodeproj
- 在 VLCKit 项目中,将 OS X 部署目标更改为10.9"
- 在构建设置中,将架构更改为64 位 Intel (x86_64)"
- 通过 __attribute((objc_designated_initializer)) 查找并替换 NS_DESIGNATED_INITIALIZER(在 xcode 6 中可用)
- 关闭xcode并返回终端
- export CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
- export CXX=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
- 导出 OBJC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
- rm -fr ./vlc-unstable/contrib/x86_64-apple-darwin10
- xcodebuild -project VLCKit.xcodeproj -verbose -target "Fetch libvlc"
- xcodebuild -project VLCKit.xcodeproj -verbose -target "Setup VLC contribs" -configuration Release
- 导出路径=$PWD/vlc-unstable/extras/tools/build/bin:$PATH
- cd vlc-unstable
- ./bootstrap
- cd ..
- xcodebuild -project VLCKit.xcodeproj -verbose -target "Run VLC configure" -configuration Release
- xcodebuild -project VLCKit.xcodeproj -verbose -target "Make VLC" -configuration Release
- xcodebuild -project VLCKit.xcodeproj -verbose -target "Build just VLCKit" -configuration Release
- cd ./build/Release/
希望能帮到你.
这篇关于在 Mac OS 10.9 上编译 VLCKit的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!