Building VLC for iOS (info & questions)
Posted: 19 Jan 2012 10:10
I am trying to build VLC for iOS and i am running in some difficulties ;o)
I gathered several pieces of information.
It seems there are 2 different methods to build :
a) Go to the http://www.videolan.org/vlc/download-ios.html web page, download the 3 archives :
- VLC-iOS-1.1.0-sources
- MediaLibraryKit-1.1.0-sources
- MobileVLC-1.1.0-sources
And then try to build them.
b) Use the method described on the wiki : http://wiki.videolan.org/MobileVLC where a script should take care of all the process
As vlc 1.2 is out, I choose to use the b) method.
Other threads on the forum that give some information that one may found helpfull:
- forum.videolan.org/viewtopic.php?f=12&t=90271
- forum.videolan.org/viewtopic.php?f=12&t=96167&p=319742&hilit=ios#p319742
- forum.videolan.org/viewtopic.php?f=12&t=94821&p=321644&hilit=ios#p321644
External links :
- stackoverflow.com/questions/6320053/building-mobilevlc-armc7-ffmpeg-issue
- github.com/ciphor/ffmpeg4ios [/url] (a ffmpeg build for iOS)
Tips for the wiki method :
use this command line to build using the latest SDK
add this line to /mobileVLC/ImportedSources/vlc/extras/contrib/bootstrap to avoid an error during compilation
you may remove some external libs editing MobileVLC/ImportedSources/vlc/extras/contrib/src/Distributions/ios.mak
if the ffmpeg build fails, you can try editing MobileVLC/ImportedSources/vlc/extras/contrib/src/contrib-srcMak by adding those lines :
Questions :
Q1)
When using the wiki method, 'tools' are not built but according to the macosx build wiki page, we should build them first then external libs then vlc, so I am wondering if it is normal or not in the iOS context to skip this build...
Q2)
When using the wiki method, with how many .xcodeproj files shoud we deal ?
Here some of the 12 .xcodeproj files
I gathered several pieces of information.
It seems there are 2 different methods to build :
a) Go to the http://www.videolan.org/vlc/download-ios.html web page, download the 3 archives :
- VLC-iOS-1.1.0-sources
- MediaLibraryKit-1.1.0-sources
- MobileVLC-1.1.0-sources
And then try to build them.
b) Use the method described on the wiki : http://wiki.videolan.org/MobileVLC where a script should take care of all the process
As vlc 1.2 is out, I choose to use the b) method.
Other threads on the forum that give some information that one may found helpfull:
- forum.videolan.org/viewtopic.php?f=12&t=90271
- forum.videolan.org/viewtopic.php?f=12&t=96167&p=319742&hilit=ios#p319742
- forum.videolan.org/viewtopic.php?f=12&t=94821&p=321644&hilit=ios#p321644
External links :
- stackoverflow.com/questions/6320053/building-mobilevlc-armc7-ffmpeg-issue
- github.com/ciphor/ffmpeg4ios [/url] (a ffmpeg build for iOS)
Tips for the wiki method :
use this command line to build using the latest SDK
Code: Select all
./buildMobileVLC.sh -k iphoneos5.0
Code: Select all
(line 318)
EXTRA_LDFLAGS="${EXTRA_LDFLAGS} -isysroot ${IOS_SDK_ROOT}"
if the ffmpeg build fails, you can try editing MobileVLC/ImportedSources/vlc/extras/contrib/src/contrib-srcMak by adding those lines :
Code: Select all
--disable-yasm \
--disable-asm \
Q1)
When using the wiki method, 'tools' are not built but according to the macosx build wiki page, we should build them first then external libs then vlc, so I am wondering if it is normal or not in the iOS context to skip this build...
Q2)
When using the wiki method, with how many .xcodeproj files shoud we deal ?
Here some of the 12 .xcodeproj files
- MobileVLC.xcodeproj
MobileMediaLibraryKit.xcodeproj
VLCKit.xcodeproj
MobileVLCKit.xcodeproj
FRVLC.xcodeproj
vlc.xcodeproj