Compile VLCKit on Mac OS 10.9

I am trying to compile VLCKit on Mac OS 10.9 after this wiki: https://wiki.videolan.org/VLCKit/

I have a git clone: ​​//git.videolan.org/vlc-bindings/VLCKit.git then open VLCKit.xcodeproj in Xcode 5.1 and finally run "Build Everything".

But the build failed with thoses problems:

Run VLC setup

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 

Configure VLC input

 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 anyone help?

+6
source share
1 answer

I finally solved my problems myself.

Here is what I needed to do for it to compile successfully:

Cloning project

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

Change xcode project

  • open VLCKit.xcodeproj
  • In the VLCKit project, change OS X Deployment Target "10.9"
  • In the build settings, the architectures are changed to "64-bit Intel (x86_64)"
  • Find and replace NS_DESIGNATED_INITIALIZER (available in xcode 6) with __attribute ((objc_designated_initializer))
  • Close xcode and go back to the terminal

Change compiler

  • export CC = / Applications / Xcode.app / Content / Developer / Toolchains / XcodeDefault.xctoolchain / usr / bin / cc
  • export CXX = / Applications / Xcode.app / Content / Developer / Toolchains / XcodeDefault.xctoolchain / usr / bin / C ++
  • export OBJC = / Applications / Xcode.app / Content / Developer / Toolchains / XcodeDefault.xctoolchain / usr / bin / cc

Cleanup

  • rm -fr./vlc-unstable/contrib/x86_64-apple-darwin10

Release build

  • xcodebuild -project VLCKit.xcodeproj -verbose -target "Fetch libvlc"
  • xcodebuild -project VLCKit.xcodeproj -verbose -target "Configure VLC contribs" -configuration Release
  • export PATH = $ PWD / vlc-unstable / extras / tools / build / bin: $ PATH
  • cd vlc-unstable
  • ./ self-loading
  • cd ..
  • xcodebuild -project VLCKit.xcodeproj -verbose -target "Run VLC configuration" - Release configuration
  • xcodebuild -project VLCKit.xcodeproj -verbose -target "Make VLC" -configuration Release
  • xcodebuild -project VLCKit.xcodeproj -verbose -target "Build only VLCKit" -configuration Release
  • cd./build/Release/

Hope this helps.

+18
source

Source: https://habr.com/ru/post/973328/


All Articles