本文介绍了在Mac OS 10.9上编译VLCKit的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在Mac OS 10.9上编译VLCKit,位于此wiki之后:

I'm trying to compile VLCKit on Mac OS 10.9 following this wiki : https://wiki.videolan.org/VLCKit/

我有clone 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".

但是构建失败的问题:

b>运行VLC configure

Run VLC configure

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

p>

Setup VLC contribs

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.

我错过了什么吗?

推荐答案

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

I finally solved my issues by myself.

以下是我为使其成功编译所必须做的:

Here's what I had to do to make it compile successfully :


  • git clone git://git.videolan.org/vlc-bindings/VLCKit.git


  • 打开VLCKit.xcodeproj

  • 在项目VLCKit中将OS X Deployement Target更改为10.9 li>
  • 在Build Settings中将体系结构更改为64位Intel(x86_64)

  • 通过__attribute查找和替换NS_DESIGNATED_INITIALIZER ))

  • 关闭xcode并返回终端

  • open VLCKit.xcodeproj
  • In Project VLCKit change OS X Deployement Target to "10.9"
  • In Build Settings change Architectures to "64-bit Intel (x86_64)"
  • Find and replace NS_DESIGNATED_INITIALIZER (available in xcode 6) by __attribute((objc_designated_initializer))
  • Close xcode and go back to the terminal

  • export CC = / Applications / Xcode.app / Contents / Developer / Toolchains / XcodeDefault.xctoolchain / usr / bin / cc

  • export OCX = / Applications / Xcode.app / Contents / Developer / Toolchains / XcodeDefault.xctoolchain / usr / bin / c ++

  • export 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 -targetFetch libvlc

  • xcodebuild -project VLCKit.xcodeproj -verbose -targetSetup VLC contribs-configuration Release

  • export PATH = $ PWD / vlc-unstable / extras / tools / build / bin:$ PATH

  • cd vlc-unstable

  • ./ bootstrap

  • cd ..

  • xcodebuild -project VLCKit.xcodeproj -verbose -targetMake VLC-configuration Release

  • xcodebuild -project VLCKit.xcodeproj -verbose -target li>
  • xcodebuild -project VLCKit.xcodeproj -verbose -targetBuild just VLCKit-configuration Release

  • cd ./build/Release /

  • xcodebuild -project VLCKit.xcodeproj -verbose -target "Fetch libvlc"
  • xcodebuild -project VLCKit.xcodeproj -verbose -target "Setup VLC contribs" -configuration Release
  • export PATH=$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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-23 09:17