Compile VLCKit on Mac OS 10.9

后端 未结 1 1439
挽巷
挽巷 2020-12-09 06:56

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 the

相关标签:
1条回答
  • 2020-12-09 07:31

    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.

    0 讨论(0)
提交回复
热议问题