Page 1 of 1

Issue building VLC for iOS in Yosemite

Posted: 19 Aug 2015 19:41
by tk_vlc
Hi, I downloaded the source for VLC for iOS from http://www.videolan.org/vlc/download-ios.html and then began following the build directions at https://wiki.videolan.org/iOSCompile

I already had Xcode installed in 10.10 so I proceeded to install CocoaPods using the Sudo-less installation method where I configured the RubyGems environment using the two export statements in the .profile file, as shown.

I then proceeded to build for execution in the iOS simulator with "sh compileVLCforiOS.sh -s"

I get the error

[info] Setup 'External' folders
ln: External/MobileVLCKit: No such file or directory

What am I missing?

Thanks

Re: Issue building VLC for iOS in Yosemite

Posted: 20 Aug 2015 05:47
by Sulik
Vlc for iOS already available in the App Store

Re: Issue building VLC for iOS in Yosemite

Posted: 20 Aug 2015 15:48
by tk_vlc
Felix (or anyone else), would you have any comment on how to build?

Sulik, I am wanting to build this locally because that is the only way to get the AC3 codec. Please see https://forum.videolan.org/viewtopic.php?f=36&t=127315 for explanation of this fact.

Re: Issue building VLC for iOS in Yosemite

Posted: 22 Aug 2015 19:36
by tk_vlc
OK, I figured that I need to build MobileVLCKit separately, first. I opened the Xcode project in the separate source tar ball and built it, but I get the error that <vlc/vlc.h> cannot be found. I search all the source tarballs and there is no file named vlc.h.

Felix, can you please update/clarify the build instructions for iOS and ensure all the required source code is in the downloadable sources so that a person can build this following the documented steps?

Thanks.

Re: Issue building VLC for iOS in Yosemite

Posted: 22 Aug 2015 19:52
by dfuhrmann
I opened the Xcode project in the separate source tar ball and built it
It is not enough to just "build" an Xcode project. You need to follow the howtos and invoke the correct scripts, which download additional required source code (this explains your missing vlc.h). See the scripts inside the tarballs (compileVLCforiOS.sh, and buildMobileVLCKit.sh for VLCKit).

Re: Issue building VLC for iOS in Yosemite

Posted: 22 Aug 2015 20:52
by tk_vlc
dfuhrmann, I had used compileVLCforiOS.sh, but made a mistake on MovileVLCKit. I ran the buildMobileVLCKit.sh and I got this error.

....
[info] Building for iphoneos
[info] Building vlc
[info] Building libvlc for iOS
[info] Using armv7 with SDK version 8.3
usage: dirname path
SDKROOT not specified, assuming /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk
[info] Building tools
./build.sh: line 30: pushd: //extras/tools: No such file or directory
[info] Building MobileVLCKit (Aggregate static plugins, Release)
[info] Building MobileVLCKit (MobileVLCKit, Release)
** BUILD FAILED **

Please advise.

I am using Xcode 6.3.1 in OS X 10.10.4.