Compile VLCKit on Mac OS 10.9

Julien Chevet

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

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

But build failed with thoses issues :

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

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.

Did I miss something ? Can someone help please ?

Julien Chevet

I finally solved my issues by myself.

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

Clone project

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

Modify xcode project

  • 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

Change compiler

  • 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++
  • export OBJC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc

Cleanup

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

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/

Hope this can help.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Java

How to install Java 9 and 10 on Mac with Homebrew?

From Dev

Cannot compile C++ code on Linux, but can on Mac OS

From Dev

How to compile FreeImage on Mac OS X 10.8?

From Dev

How to compile a C program with make on Mac OS X Terminal

From Dev

javac 8 on Mac OS doesn't compile and says it's 1.7

From Dev

How to Compile: Synergy on mac

From Dev

Can compile in Ubuntu but not in Mac OS X

From Dev

please re-compile PHP with ZTS enabled Mac OS X

From Dev

How to compile JAVA on Sublime text 2 using Mac OS X?

From Dev

How do I cross compile my Go program from Mac OS X to Ubuntu 64-bit

From Dev

VLCKit: VLCMediaPlayer move to time

From Dev

How to make librtmp compile on Mac OS X

From Dev

libpipeline fails to compile on Mac OS X

From Dev

How to install Java 9 and 10 on Mac with Homebrew?

From Dev

JDK 9 + Mac OS + jlink?

From Dev

subverion 1.8.5 compile error on mac os x 10.9 cmdline.c

From Dev

Maven build failure Mac OS 10

From Dev

Copy files from Mac OS 9 to Windows 7?

From Dev

Triple Boot Windows, Ubuntu, and Mac OS X ML on Macbook Pro (9,1)

From Dev

Can compile in Ubuntu but not in Mac OS X

From Dev

libpipeline fails to compile on Mac OS X

From Dev

Can't compile CUDA + OpenGL program on Mac OS X El Capitan

From Dev

Need help booting into Mac OS. Lost during triple boot MAC OS, WIN 10, UBUNTU 20.04. No Internet access too

From Dev

How to install mac OS X ElCapitan on Windows 10

From Dev

How to compile C++ on Mac OS using TR1

From Dev

CLion 2017.1 CMake compile error on mac OS10.12

From Dev

Is it possible to compile tensorflow in Mac?

From Dev

Compile R packages from source (Mac OS X)

From Dev

How I get IntelliJ UE and Tomcat 9 to run my web application? (Mac OS)

Related Related

  1. 1

    How to install Java 9 and 10 on Mac with Homebrew?

  2. 2

    Cannot compile C++ code on Linux, but can on Mac OS

  3. 3

    How to compile FreeImage on Mac OS X 10.8?

  4. 4

    How to compile a C program with make on Mac OS X Terminal

  5. 5

    javac 8 on Mac OS doesn't compile and says it's 1.7

  6. 6

    How to Compile: Synergy on mac

  7. 7

    Can compile in Ubuntu but not in Mac OS X

  8. 8

    please re-compile PHP with ZTS enabled Mac OS X

  9. 9

    How to compile JAVA on Sublime text 2 using Mac OS X?

  10. 10

    How do I cross compile my Go program from Mac OS X to Ubuntu 64-bit

  11. 11

    VLCKit: VLCMediaPlayer move to time

  12. 12

    How to make librtmp compile on Mac OS X

  13. 13

    libpipeline fails to compile on Mac OS X

  14. 14

    How to install Java 9 and 10 on Mac with Homebrew?

  15. 15

    JDK 9 + Mac OS + jlink?

  16. 16

    subverion 1.8.5 compile error on mac os x 10.9 cmdline.c

  17. 17

    Maven build failure Mac OS 10

  18. 18

    Copy files from Mac OS 9 to Windows 7?

  19. 19

    Triple Boot Windows, Ubuntu, and Mac OS X ML on Macbook Pro (9,1)

  20. 20

    Can compile in Ubuntu but not in Mac OS X

  21. 21

    libpipeline fails to compile on Mac OS X

  22. 22

    Can't compile CUDA + OpenGL program on Mac OS X El Capitan

  23. 23

    Need help booting into Mac OS. Lost during triple boot MAC OS, WIN 10, UBUNTU 20.04. No Internet access too

  24. 24

    How to install mac OS X ElCapitan on Windows 10

  25. 25

    How to compile C++ on Mac OS using TR1

  26. 26

    CLion 2017.1 CMake compile error on mac OS10.12

  27. 27

    Is it possible to compile tensorflow in Mac?

  28. 28

    Compile R packages from source (Mac OS X)

  29. 29

    How I get IntelliJ UE and Tomcat 9 to run my web application? (Mac OS)

HotTag

Archive