我正在尝试按照此Wiki在Mac OS 10.9上编译VLCKit:https://wiki.videolan.org/VLCKit/

我克隆了git://git.videolan.org/vlc-bindings/VLCKit.git
然后在Xcode 5.1中打开VLCKit.xcodeproj
最后运行“构建一切”。

但是构建由于这些问题而失败了:

运行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.

我错过了什么 ?有人可以帮忙吗?

最佳答案

我终于自己解决了我的问题。

这是我必须做的才能使其成功编译:

克隆项目

  • git克隆git://git.videolan.org/vlc-bindings/VLCKit.git

  • 修改Xcode项目
  • 打开VLCKit.xcodeproj
  • 在Project VLCKit中,将OS X部署目标更改为“10.9”。
  • 在“build设置”中,将架构更改为“64位Intel(x86_64)”。
  • 使用__attribute((objc_designated_initializer))查找并替换NS_DESIGNATED_INITIALIZER(xcode 6中可用)
  • 关闭xcode并返回到终端

  • 变更编译器
  • export CC =/应用程序/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
  • export CXX =/应用程序/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
  • export OBJC =/应用程序/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-项目VLCKit.xcodeproj-详细-target“设置VLC贡献者”-配置发布
  • export PATH = $ PWD/vlc-unstable/extras/tools/build/bin:$ PATH
  • cd vlc不稳定
  • ./bootstrap
  • cd ..
  • xcodebuild-项目VLCKit.xcodeproj-详细-target“运行VLC配置”-配置发布
  • xcodebuild -project VLCKit.xcodeproj -verbose -target“Make VLC”-配置发布
  • xcodebuild-项目VLCKit.xcodeproj-详细-target“仅构建VLCKit”-配置发布
  • cd ./build/Release/

  • 希望这会有所帮助。

    关于compilation - 在Mac OS 10.9上编译VLCKit,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/25123399/

    10-12 17:59