Build VLC for iOS
Posted: 11 Oct 2011 07:35
Thanks to xinaction for providing me below procedure to build VLC for iOS.
There are some modification according the failure during my building process.
http://download.videolan.org/pub/videol ... OS.tar.bz2
http://download.videolan.org/pub/videol ... -1.1.0.zip
http://download.videolan.org/pub/videol ... 1.0.tar.gz
To VLC compile
To work with VLC source directory contents. Vlc is named and a link.
$ tar jxvf VLC-1.1.0-iOS.tar.bz2
$ ln -s VLC-1.1.0-iOS vlc
$ cd vlc/extras/package/ios
modified version of the SDK is open build_for_iOS.sh. The latest version is currently 4.2.sdk.
IOS_SDK_ROOT = "$ {DEVROOT}/SDKs/ iPhone $ {PLATFORM} 3.2.sdk"
When you compile and run build_for_iOS.sh error tore in the middle of the stop.
It's the version of the patch file problems by reference lines 161 to 185 of
../../contrib/src-arm-apple-darwin10-ios/src/Patches/live-inet_ntop.patch
../../contrib/src-arm-apple-darwin10-ios/src/live/liveMedia/RTSPServer.cpp can be modified directly.
our_inet_ntoa () buf as the second argument is as simple as adding.
I Just remove line 161 to 185 from ../../contrib/src-arm-apple-darwin10-ios/src/Patches/live-inet_ntop.patch
Now, to compile and run build_for_iOS.sh.
Once vlc/install-ios-OS in the headers which will generate a library.
And to build a static plugins MobileVLCKit.
$ Cd vlc/projects/macosx/framework
$ Xcodebuild -project MobileVLCKit.xcodeproj -target "Aggregate static plugins" -configuration "Release"
MobileVLCKit the latest version of the MobileVLCKit modified version of the SDK, and will build.
$ Open MobileVLCKit.xcodeproj
fix Targets / MobileVLCKit - Get Info / Build
Configuration: All Configurations
Architectures / Base SDK: Latest iOS
$ Xcodebuild -project MobileVLCKit.xcodeproj -target "MobileVLCKit" -configuration "Release"
To MediaLibraryKit compile
Working Directory (VLC-1.1.0-iOS such as location), create a directory to extract the MediaLibraryKit.
$ Mkdir MediaLibraryKit & & cd MediaLibraryKit
$ Unzip MediaLibraryKit-1.1.0.zip
External MobileVLCKit Creates a link to the directory where you go.
$ Ln -s ../../vlc/projects/macosx/framework/build/Release-iphoneos MobileVLCKit
what I did -
$ cd external
$ ln -s ../../../vlc/projects/macosx/framework/build/Release-iphoneos MobileVLCKit
(After doing this, the external in MobileMediaLibraryKit.xcodeproj should not be red anymore.)
MediaLibraryKit to the latest version of the SDK version to modify and build.
$ Open MobileMediaLibraryKit.xcodeproj
fix Targets / MobileMediaLibraryKit - Get Info / Build
Configuration: All Configurations
Architectures / Base SDK: Latest iOS
$ Xcodebuild -project MobileMediaLibraryKit.xcodeproj -configuration "Release"
To MobileVLC compile
Working Directory (VLC-1.1.0-iOS such as location) to extract the MobileVLC.
$ Tar zxvf MobileVLC-1.1.0.tar.gz
$ Cd MobileVLC
External links at the bottom of MobileVLCKit MediaLibraryKit and make sure it is properly.
What I did
$ cd external
$ ln -s ../../../vlc/projects/macosx/framework/build/Release-iphoneos MobileVLCKit
(After doing this, the external in MobileVLC.xcodeproj should not be red anymore.)
MobileVLC to the latest version of the SDK version to modify and build.
$ Open MobileVLC.xcodeproj
fix Targets / MobileVLC - Get Info / Build
Configuration: All Configurations
Architectures / Architectures: Standard (armv6 armv7)
Architectures / Base SDK: Latest iOS
build with Device-Release configurations
Above are to build a library for iDevice.
Plz run below if u want to build for simulator.
$ build_for_iOS.sh -s
There are some modification according the failure during my building process.
http://download.videolan.org/pub/videol ... OS.tar.bz2
http://download.videolan.org/pub/videol ... -1.1.0.zip
http://download.videolan.org/pub/videol ... 1.0.tar.gz
To VLC compile
To work with VLC source directory contents. Vlc is named and a link.
$ tar jxvf VLC-1.1.0-iOS.tar.bz2
$ ln -s VLC-1.1.0-iOS vlc
$ cd vlc/extras/package/ios
modified version of the SDK is open build_for_iOS.sh. The latest version is currently 4.2.sdk.
IOS_SDK_ROOT = "$ {DEVROOT}/SDKs/ iPhone $ {PLATFORM} 3.2.sdk"
When you compile and run build_for_iOS.sh error tore in the middle of the stop.
It's the version of the patch file problems by reference lines 161 to 185 of
../../contrib/src-arm-apple-darwin10-ios/src/Patches/live-inet_ntop.patch
../../contrib/src-arm-apple-darwin10-ios/src/live/liveMedia/RTSPServer.cpp can be modified directly.
our_inet_ntoa () buf as the second argument is as simple as adding.
I Just remove line 161 to 185 from ../../contrib/src-arm-apple-darwin10-ios/src/Patches/live-inet_ntop.patch
Now, to compile and run build_for_iOS.sh.
Once vlc/install-ios-OS in the headers which will generate a library.
And to build a static plugins MobileVLCKit.
$ Cd vlc/projects/macosx/framework
$ Xcodebuild -project MobileVLCKit.xcodeproj -target "Aggregate static plugins" -configuration "Release"
MobileVLCKit the latest version of the MobileVLCKit modified version of the SDK, and will build.
$ Open MobileVLCKit.xcodeproj
fix Targets / MobileVLCKit - Get Info / Build
Configuration: All Configurations
Architectures / Base SDK: Latest iOS
$ Xcodebuild -project MobileVLCKit.xcodeproj -target "MobileVLCKit" -configuration "Release"
To MediaLibraryKit compile
Working Directory (VLC-1.1.0-iOS such as location), create a directory to extract the MediaLibraryKit.
$ Mkdir MediaLibraryKit & & cd MediaLibraryKit
$ Unzip MediaLibraryKit-1.1.0.zip
External MobileVLCKit Creates a link to the directory where you go.
$ Ln -s ../../vlc/projects/macosx/framework/build/Release-iphoneos MobileVLCKit
what I did -
$ cd external
$ ln -s ../../../vlc/projects/macosx/framework/build/Release-iphoneos MobileVLCKit
(After doing this, the external in MobileMediaLibraryKit.xcodeproj should not be red anymore.)
MediaLibraryKit to the latest version of the SDK version to modify and build.
$ Open MobileMediaLibraryKit.xcodeproj
fix Targets / MobileMediaLibraryKit - Get Info / Build
Configuration: All Configurations
Architectures / Base SDK: Latest iOS
$ Xcodebuild -project MobileMediaLibraryKit.xcodeproj -configuration "Release"
To MobileVLC compile
Working Directory (VLC-1.1.0-iOS such as location) to extract the MobileVLC.
$ Tar zxvf MobileVLC-1.1.0.tar.gz
$ Cd MobileVLC
External links at the bottom of MobileVLCKit MediaLibraryKit and make sure it is properly.
What I did
$ cd external
$ ln -s ../../../vlc/projects/macosx/framework/build/Release-iphoneos MobileVLCKit
(After doing this, the external in MobileVLC.xcodeproj should not be red anymore.)
MobileVLC to the latest version of the SDK version to modify and build.
$ Open MobileVLC.xcodeproj
fix Targets / MobileVLC - Get Info / Build
Configuration: All Configurations
Architectures / Architectures: Standard (armv6 armv7)
Architectures / Base SDK: Latest iOS
build with Device-Release configurations
Above are to build a library for iDevice.
Plz run below if u want to build for simulator.
$ build_for_iOS.sh -s