Building VLC for iOS

iOS, iPad, iPhone, tvOS specific usage questions
kiddnesta
New Cone
New Cone
Posts: 3
Joined: 19 Feb 2013 15:05

Building VLC for iOS

Postby kiddnesta » 26 Feb 2013 09:41

I check out VLC from git, and if I try to build it.
./buildnobilevlc.sh

I get a error.

[info] Building libvlc
/vlc/ios/ImportedSources/vlc/modules/access/screen/mac.c:40:9: fatal error:
'ApplicationServices/ApplicationServices.h' file not found
#import <ApplicationServices/ApplicationServices.h>
^
1 error generated.

In this problem:viewtopic.php?f=12&t=108651
have a solution is that Add --disable-screen to the configure line.
but I don't know where is the configure line.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37519
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Building VLC for iOS

Postby Jean-Baptiste Kempf » 26 Feb 2013 10:36

Update VLC.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

kiddnesta
New Cone
New Cone
Posts: 3
Joined: 19 Feb 2013 15:05

Re: Building VLC for iOS

Postby kiddnesta » 26 Feb 2013 15:16

Update VLC.
How to update vlc?
I get vlc by git://git.videolan.org/vlc-ports/ios.git.
Is it newest?

Ferretizer
New Cone
New Cone
Posts: 5
Joined: 26 Feb 2013 18:56

Re: Building VLC for iOS

Postby Ferretizer » 26 Feb 2013 19:00

I have the exact same issue with a repository downloaded today.

I have tried to run/vlc/configure --disable-screen

Then i had to disable many other flags as configure always returns another error (i even had to disable libav which doesnt seem to be a good sign), finally ends in an error telling that Sparkle framework is required while executing configure

Any further advice would be appreciated.

Thanks

Ferretizer
New Cone
New Cone
Posts: 5
Joined: 26 Feb 2013 18:56

Re: Building VLC for iOS

Postby Ferretizer » 27 Feb 2013 09:52

Hello,

I finally managed to build the current version.

the --disable-screen had no effect anywhere i've tried so i came the radical solution of modifying mac.c to the following:

Code: Select all

/***************************************************************************** * mac.c: Screen capture module for the Mac. ***************************************************************************** * Copyright (C) 2004 - 2013 VLC authors and VideoLAN * $Id: 09dd7b1e5e7c3364f5f133b4ecb9fad69075c1b8 $ * * Authors: FUJISAWA Tooru <arai_a@mac.com> * Derk-Jan Hartman <hartman at videolan dot org> * Pierre d'Herbemont <pdherbemont # videolan org> * Felix Paul Kühne <fkuehne # videolan org> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/ /***************************************************************************** * Preamble *****************************************************************************/ #ifdef HAVE_CONFIG_H # include "config.h" #endif #import <vlc_common.h> #import <vlc_block.h> #import "screen.h" int screen_InitCapture(demux_t *p_demux) { return VLC_SUCCESS; } int screen_CloseCapture(demux_t *p_demux) { return VLC_SUCCESS; } block_t *screen_Capture(demux_t *p_demux) { return NULL; }
And tried to build once however after that I had errors in MobileVLCKit which apparently cannot compile for armv7s so I modified project attributes to target only armv7

At some point I also called /importedsources/vlc/bootstrap, i don't know if it had any effect but it was compiling additional things and took some time the first time I ran it so maybe it was also required to do so manually...

Now everything builds properly and I can deploy the application from xCode so i will now give it a try to ensure everything works as expected.

As apparently I'm not the only one that had issue, this may be useful to someone else :geek:

Ferretizer
New Cone
New Cone
Posts: 5
Joined: 26 Feb 2013 18:56

Re: Building VLC for iOS

Postby Ferretizer » 27 Feb 2013 10:03

Despite everything was build properly and I managed to deploy to both iPhone 5 and iPad mini the application crashes when trying to generate a thumbnail or play a video.

The rest is working, I managed to transfer video file through iTunes. After it fails generating a thumbnail, next time the application is started it displays the uploaded movies with a black rectangle however as soon as I click on it it crashes.

Anyone with idea is welcome :D

Ferretizer
New Cone
New Cone
Posts: 5
Joined: 26 Feb 2013 18:56

Re: Building VLC for iOS

Postby Ferretizer » 27 Feb 2013 10:10

This is the output at time of crash if I'm still running with xCode

Code: Select all

2013-02-27 10:08:11.165 VLC[5896:907] Scanning /var/mobile/Applications/1DB75C23-E923-4EEC-B843-C2963B4EDDC1/Documents [[32;1m0x131a7d0[0m] main libvlc debug: [0mVLC media player - 2.1.0-git Rincewind[0m [[32;1m0x131a7d0[0m] main libvlc debug: [0mCopyright © 1996-2013 the VideoLAN team[0m [[32;1m0x131a7d0[0m] main libvlc debug: [0mrevision 1.3.0-git-5707-g371c9d5[0m [[32;1m0x131a7d0[0m] main libvlc debug: [0mconfigured with /sources/vlc.2013/ios/ImportedSources/vlc/configure '--prefix=/sources/vlc.2013/ios/ImportedSources/vlc/install-ios-OS/armv7' '--host=arm-apple-darwin11' '--disable-debug' '--enable-static' '--disable-macosx' '--disable-macosx-vout' '--disable-macosx-dialog-provider' '--disable-macosx-qtkit' '--disable-macosx-eyetv' '--disable-macosx-vlc-app' '--enable-audioqueue' '--enable-ios-vout' '--disable-shared' '--disable-macosx-quartztext' '--enable-avcodec' '--enable-mkv' '--enable-opus' '--enable-mad' '--disable-a52' '--disable-fribidi' '--disable-macosx-audio' '--disable-qt' '--disable-skins2' '--disable-libgcrypt' '--disable-vcd' '--disable-vlc' '--disable-vlm' '--disable-httpd' '--disable-nls' '--disable-glx' '--disable-sse' '--enable-neon' '--disable-notify' '--enable-live555' '--enable-realrtsp' '--enable-dvbpsi' '--enable-swscale' '--disable-projectm' '--disable-libass' '--disable-sqlite' '--disable-libxml2' '--disable-goom' '--disable-dvdread' '--disable-dvdnav' '--disable-bluray' '--disable-linsys' '--disable-libva' '--disable-gme' '--disable-tremor' '--disable-vorbis' '--disable-fluidsynth' '--disable-jack' '--disable-pulse' '--disable-sout' '--disable-faad' '--disable-lua' '--disable-mtp' '--enable-ogg' '--enable-speex' '--enable-theora' '--enable-flac' '--disable-freetype' '--disable-taglib' '--disable-mmx' 'host_alias=arm-apple-darwin11' 'CC=xcrun clang' 'CFLAGS=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk -arch armv7 -mcpu=cortex-a8 -miphoneos-version-min=5.1 ' 'LDFLAGS=-L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/usr/lib -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk -miphoneos-version-min=5.1' 'CPPFLAGS=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk -arch armv7 -mcpu=cortex-a8 -miphoneos-version-min=5.1 ' 'CPP=xcrun cc -E' 'CXX=xcrun clang++' 'CXXFLAGS=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk -arch armv7 -mcpu=cortex-a8 -miphoneos-version-min=5.1 ' 'OBJC=xcrun clang' 'OBJCFLAGS=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk -arch armv7 -mcpu=cortex-a8 -miphoneos-version-min=5.1 ' 'CCAS=/sources/vlc.2013/ios/ImportedSources/vlc/extras/tools/gas/gas-preprocessor.pl xcrun clang' 'CXXCPP=xcrun c++ -E' 'DVBPSI_CFLAGS=-I/sources/vlc.2013/ios/ImportedSources/vlc/contrib-ios-arm-apple-darwin11/include ' 'DVBPSI_LIBS=-L/sources/vlc.2013/ios/ImportedSources/vlc/contrib-ios-arm-apple-darwin11/lib ' 'AVCODEC_CFLAGS=-I/sources/vlc.2013/ios/ImportedSources/vlc/install-ios-OS/armv7/include ' 'AVCODEC_LIBS=-L/sources/vlc.2013/ios/ImportedSources/vlc/install-ios-OS/armv7/lib -lavcodec -lavutil -lz' 'AVFORMAT_CFLAGS=-I/sources/vlc.2013/ios/ImportedSources/vlc/install-ios-OS/armv7/include' 'AVFORMAT_LIBS=-L/sources/vlc.2013/ios/ImportedSources/vlc/install-ios-OS/armv7/lib -lavcodec -lz -lavutil -lavformat' 'SWSCALE_CFLAGS=-I/sources/vlc.2013/ios/ImportedSources/vlc/contrib-ios-arm-apple-darwin11/include ' 'SWSCALE_LIBS=-L/sources/vlc.2013/ios/ImportedSources/vlc/contrib-ios-arm-apple-darwin11/lib '[0m [[32;1m0x131a7d0[0m] main libvlc debug: [0mplug-ins loaded: 1 modules[0m vlc: unknown option or missing mandatory argument `--avcodec-fast' Try `vlc --help' for more information. 2013-02-27 10:08:11.319 VLC[5896:907] *** Assertion failure in -[VLCLibrary init], /Sources/VLC.2013/ios/ImportedSources/VLCKit/Sources/VLCLibrary.m:87 2013-02-27 10:08:11.321 VLC[5896:907] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'libvlc failed to initialize' *** First throw call stack: (0x322733e7 0x39f64963 0x3227329d 0x32b49fa3 0x17f75 0x17c4b 0x1813b 0x183c9 0x181c5 0x1c5dd5 0x32b8b4a1 0x322488f7 0x322481f3 0x32246f2f 0x321ba23d 0x321ba0c9 0x35d9833b 0x340d62b9 0x2487 0x2420) libc++abi.dylib: terminate called throwing an exception (lldb)

rikkles
Blank Cone
Blank Cone
Posts: 11
Joined: 03 Mar 2013 21:18

Re: Building VLC for iOS

Postby rikkles » 03 Mar 2013 21:21

I have exactly the same issue as you regarding mac.c.
I don't think that no-op'ing all the functions in mac.c will work :)
We probably need to go back upstream and see why it's including mac.c in the iOS build, which is clearly wrong. I haven't gotten to the core of it yet, but I'll dig in the morning.

rikkles
Blank Cone
Blank Cone
Posts: 11
Joined: 03 Mar 2013 21:18

Re: Building VLC for iOS

Postby rikkles » 03 Mar 2013 22:13

Ok something is really screwed up with the vlc compile configuration. I added -disable-screen to ImportedSources/vlc/extras/package/ios/build.sh around line 257 (it was already added to the bootstrap command, but not the configure command).

This ensures that inside ImportedSources/vlc/configure.ac the module screen is disabled (line 1877). I put an AC_MSG_ERROR inside there to verify that the command VLC_ADD_PLUGIN([screen]) doesn't run, and it doesn't after the above -disable-screen is inserted correctly.

HOWEVER, the screen/mac.c file is still added to the compile and still obviously fails. I have to check where it's called from, and why it still compiles even after explicitly not adding the screen plugin.

rikkles
Blank Cone
Blank Cone
Posts: 11
Joined: 03 Mar 2013 21:18

Re: Building VLC for iOS

Postby rikkles » 04 Mar 2013 07:03

Ok here's what is needed to build VLC for iOS currently:

First, add --disable-screen as I wrote in my comment above.

Then, in the file ios/buildMobileVLC.sh, change line 50 from:

Code: Select all

local extra="ARCHS="
to:

Code: Select all

local extra="ARCHS=armv7"
Otherwise it might compile the front end as armv7s and expect the vlc files to be under /armv7s. However, vlc itself is compiled under armv7 and the files are in /armv7. If one were to attempt to compile vlc for armv7s it fails. I have yet to dig into that.

Then there's the other bigger problem. In the file ios/ImportedSources/vlc/modules/access/Modules.am there is a logic problem regarding the lib screen plugin. Here's the offending code, line 184:

Code: Select all

if HAVE_DARWIN libscreen_plugin_la_SOURCES += screen/mac.c libscreen_plugin_la_LDFLAGS = $(AM_LDFLAGS) libscreen_plugin_la_LDFLAGS += "-Wl,-framework,OpenGL,-framework,ApplicationServices" libvlc_LTLIBRARIES += libscreen_plugin.la endif
The problem is that under iOS HAVE_DARWIN is true, and libscreen will always compile regardless of your --disable-screen setting. Incidentally, the previous piece of code that compiles for HAVE_WIN32 has the same problem. --disable-screen doesn't stop libscreen from compiling.
And since there is no specific HAVE_* check for screen, just disable all those lines between the HAVE_DARWIN test.
This will get the iOS build to compile and function correctly.

rowa
Blank Cone
Blank Cone
Posts: 30
Joined: 29 Jan 2013 04:34

Re: Building VLC for iOS

Postby rowa » 04 Mar 2013 09:42

I've compiled a new version according to steps above with the command "./buildMobileVLC.sh -s",
and I altered the file "buildMobileVLC.sh" of root,
removed the code between "if HAVE_DARWIN" and "endif";
after several minutes, it told me "Build completed";
then I opened xcode and run it on iPhone simulator,
it launched successful but on the screen it writes
"Connect to iTunes You currently don't have any video in your VLC library......",
I can do no operation except just watching these words,
can anyone tell me where the problem is? How can I play a movie on an iPhone simulator?
thanks

rowa
Blank Cone
Blank Cone
Posts: 30
Joined: 29 Jan 2013 04:34

Re: Building VLC for iOS

Postby rowa » 04 Mar 2013 09:52

I altered the code of function "application:didFinishLaunchingWithOptions:" in "MobileVLCAppDelegate.m"

Code: Select all

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // This will mark crashy files [[MLMediaLibrary sharedMediaLibrary] applicationWillStart]; [_window addSubview:self.navigationController.view]; [_window setRootViewController:self.navigationController]; [_window makeKeyAndVisible]; NSURL * urlToOpen = [launchOptions objectForKey:UIApplicationLaunchOptionsURLKey]; // **************** I add a value here ******************* urlToOpen = [NSURL URLWithString: @"rtsp://my/video/url"]; if (urlToOpen != nil) { // We were started to open a given URL MVLCLog(@"Opening URL %@", urlToOpen); MVLCMovieViewController * movieViewController = [[MVLCMovieViewController alloc] init]; movieViewController.url = urlToOpen; [self.navigationController presentViewController:movieViewController animated:YES completion:NULL]; [movieViewController release]; } return YES; }
after running the app, the consule showed me the message:

Code: Select all

VLC[29061:c07] Opening URL rtsp://my/video/url VLC[29061:c07] Warning: Attempt to present <MVLCMovieViewController: 0x9b0e9f0> on <UINavigationController: 0x9d23250> whose view is not in the window hierarchy!
it really perplexed me

rikkles
Blank Cone
Blank Cone
Posts: 11
Joined: 03 Mar 2013 21:18

Re: Building VLC for iOS

Postby rikkles » 04 Mar 2013 10:48

it launched successful but on the screen it writes
"Connect to iTunes You currently don't have any video in your VLC library......",
I can do no operation except just watching these words,
can anyone tell me where the problem is? How can I play a movie on an iPhone simulator?
thanks
That's what vlc for iOS does currently: allows you to download movies through iTunes to vlc, and view them.

rikkles
Blank Cone
Blank Cone
Posts: 11
Joined: 03 Mar 2013 21:18

Re: Building VLC for iOS

Postby rikkles » 04 Mar 2013 10:50

after running the app, the consule showed me the message:

Code: Select all

VLC[29061:c07] Opening URL rtsp://my/video/url VLC[29061:c07] Warning: Attempt to present <MVLCMovieViewController: 0x9b0e9f0> on <UINavigationController: 0x9d23250> whose view is not in the window hierarchy!
it really perplexed me
Don't present a modal view controller before viewDidAppear.
Do this in viewDidAppear and you won't see the issue.

rikkles
Blank Cone
Blank Cone
Posts: 11
Joined: 03 Mar 2013 21:18

Re: Building VLC for iOS

Postby rikkles » 04 Mar 2013 12:00

In any case, it seems that a network stream (rtp or udp) doesn't work. It starts up correctly, starts buffering but doesn't show anything on screen

Code: Select all

[0x14917e0] main input debug: Creating an input for 'udp://224.1.1.1:1234' [0x14917e0] main input debug: using timeshift granularity of 50 MiB, in path '/tmp' [0x14917e0] main input debug: `udp://@224.1.1.1:1234' gives access `udp' demux `' path `@224.1.1.1:1234' [0x14917e0] main input debug: creating demux: access='udp' demux='' location='@224.1.1.1:1234' file='(null)' [0x296d760] main demux debug: looking for access_demux module matching "udp": 3 candidates [0x296d760] main demux debug: no access_demux modules matched [0x14917e0] main input debug: creating access 'udp' location='@224.1.1.1:1234', path='(null)' [0x2997f80] main access debug: looking for access module matching "udp": 13 candidates [0x2997f80] access_udp access debug: opening server=:0 local=224.1.1.1:1234 [0x2997f80] main access debug: net: opening 224.1.1.1 datagram port 1234 2013-03-04 12:57:30.992 VLC[1561:907] opening [0x2997f80] main access debug: using access module "access_udp" [0x296d760] main stream debug: Using block method for AStream* [0x296d760] main stream debug: starting pre-buffering
And when I stop it, here's what I get:

Code: Select all

[0x2997f80] main access debug: waitpipe: object killed [0x2997f80] main access debug: socket 5 polling interrupted [0x296d760] main stream debug: prebuffering done 0 bytes in 178s - 0 KiB/s [0x296d760] main stream error: cannot pre fill buffer [0x14917e0] main input warning: cannot create a stream_t from access [0x2997f80] main access debug: removing module "access_udp"

rikkles
Blank Cone
Blank Cone
Posts: 11
Joined: 03 Mar 2013 21:18

Re: Building VLC for iOS

Postby rikkles » 04 Mar 2013 19:45

Update: http stuff works, but udp and rtp doesn't. Still digging.

gpinigin
Blank Cone
Blank Cone
Posts: 12
Joined: 21 Jan 2013 11:13

Re: Building VLC for iOS

Postby gpinigin » 07 Mar 2013 11:43

To watch videos you should specify absolute path to your video files:

in MobileVLCAppDelegate.m, in function _updateMediaLibrary

Code: Select all

#define PIERRE_LE_GROS_CRADE 1 #if TARGET_IPHONE_SIMULATOR && PIERRE_LE_GROS_CRADE NSString *directoryPath = @"/Users/YOU/your/path"; #else

gpinigin
Blank Cone
Blank Cone
Posts: 12
Joined: 21 Jan 2013 11:13

Re: Building VLC for iOS

Postby gpinigin » 07 Mar 2013 11:46

2Ferretizer

According to your log file you build is incomplete - there is only one module loaded

Ferretizer
New Cone
New Cone
Posts: 5
Joined: 26 Feb 2013 18:56

Re: Building VLC for iOS

Postby Ferretizer » 11 Mar 2013 17:09

2Ferretizer

According to your log file you build is incomplete - there is only one module loaded
Thanks, any idea on what could be the reason of this ? I didn't modify / alter anything else than what I've posted.

I will probably wait some time until a new IOS build is being published...

rikkles
Blank Cone
Blank Cone
Posts: 11
Joined: 03 Mar 2013 21:18

Re: Building VLC for iOS

Postby rikkles » 11 Mar 2013 17:14

@Ferretizer, grab a fresh copy of the whole thing and implement the changes I suggested. VLC on iOS works fine for me now as far as file:// and http:// are concerned. I'm still getting a black screen when trying udp:// and rtp:// . Here's the log which doesn't say much:

Code: Select all

2013-03-11 18:08:47.015 VLC[3365:707] init with rtp://@224.1.1.1:1234 [0x14da700] main input debug: Creating an input for 'rtp://224.1.1.1:1234' [0x14da700] main input debug: using timeshift granularity of 50 MiB, in path '/tmp' [0x14da700] main input debug: `rtp://@224.1.1.1:1234' gives access `rtp' demux `' path `@224.1.1.1:1234' [0x14da700] main input debug: creating demux: access='rtp' demux='' location='@224.1.1.1:1234' file='(null)' [0x133a700] main demux debug: looking for access_demux module matching "rtp": 3 candidates [0x133a700] main demux debug: net: opening 224.1.1.1 datagram port 1234 [0x133a700] main demux debug: using access_demux module "rtp" [0x14c56b0] main demux meta debug: looking for meta reader module matching "any": 0 candidates [0x14c56b0] main demux meta debug: no meta reader modules [0x14da700] main input debug: `rtp://@224.1.1.1:1234' successfully opened 2013-03-11 18:08:47.101 VLC[3365:707] opening

XweAponX
Blank Cone
Blank Cone
Posts: 19
Joined: 15 Sep 2009 00:13
VLC version: 2.0.5 and 1.1.11
Operating System: Windows 7 and 8

Re: Building VLC for iOS

Postby XweAponX » 12 Mar 2013 20:51

If any of you need a beta tester for your builds, let me know. Can I offer that here? If not, I apologize. The one thing sadly missing from iOS is any release of VLC. If I knew how to work with these source codes I'd try it myself. What tools would I need to give it a go, would Python work?

rdahiya55
New Cone
New Cone
Posts: 7
Joined: 10 Apr 2013 10:42

Re: Building VLC for iOS

Postby rdahiya55 » 17 Apr 2013 07:57

I'm Trying to build MobileVLC for iOS but i'm getting errors and i took a clone from "git://git.videolan.org/vlc-ports/ios.git"

Please help me out in this.
Here is the log given below :-

Code: Select all

x tar-1.26/gnu/inttypes.in.h: (Empty error message) tar: Error exit delayed from previous errors. make: *** [tar] Error 1 [info] Building contrib for iOS in '/Users/rinku.dahiya/ios/ImportedSources/vlc/contrib/iPhoneOS-armv7' [info] LD FLAGS SELECTED = '-L/Volumes/data partition/XCODE4.5/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/usr/lib -arch armv7 -isysroot /Volumes/data partition/XCODE4.5/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -miphoneos-version-min=5.1' /Users/rinku.dahiya/ios/ImportedSources/vlc clang: error: no such file or directory: 'partition/XCODE4.5/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk' clang: error: no such file or directory: 'partition/XCODE4.5/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk' clang: error: no such file or directory: 'partition/XCODE4.5/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk' clang: error: no such file or directory: 'partition/XCODE4.5/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk' cd libdvbpsi && CC="xcrun clang" CXX="xcrun clang++" LD="xcrun ld" AR="xcrun ar" RANLIB="xcrun ranlib" STRIP="xcrun strip" PATH="/Users/rinku.dahiya/ios/ImportedSources/vlc/contrib/arm-apple-darwin11/bin:/Users/rinku.dahiya/ios/ImportedSources/vlc/extras/tools/build/bin:/Users/rinku.dahiya/ios/ImportedSources/vlc/extras/tools/build/bin:/Users/rinku.dahiya/ios/ImportedSources/vlc/contrib/arm-apple-darwin11/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Users/rinku.dahiya/ios/ImportedSources/vlc/extras/package/ios/resources" CPPFLAGS="-isysroot /Volumes/data partition/XCODE4.5/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -arch armv7 -mcpu=cortex-a8 -miphoneos-version-min=5.1 -O3 -g -arch armv7 -mcpu=cortex-a8 -isysroot /Volumes/data partition/XCODE4.5/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -miphoneos-version-min=5.0 -I/Users/rinku.dahiya/ios/ImportedSources/vlc/contrib/arm-apple-darwin11/include" CFLAGS="-isysroot /Volumes/data partition/XCODE4.5/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -arch armv7 -mcpu=cortex-a8 -miphoneos-version-min=5.1 -O3 -g -arch armv7 -mcpu=cortex-a8 -isysroot /Volumes/data partition/XCODE4.5/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -miphoneos-version-min=5.0 -I/Users/rinku.dahiya/ios/ImportedSources/vlc/contrib/arm-apple-darwin11/include -g" CXXFLAGS="-isysroot /Volumes/data partition/XCODE4.5/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -arch armv7 -mcpu=cortex-a8 -miphoneos-version-min=5.1 -O3 -g -arch armv7 -mcpu=cortex-a8 -isysroot /Volumes/data partition/XCODE4.5/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -miphoneos-version-min=5.0 -I/Users/rinku.dahiya/ios/ImportedSources/vlc/contrib/arm-apple-darwin11/include -g" LDFLAGS="-L/Volumes/data partition/XCODE4.5/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/usr/lib -arch armv7 -isysroot /Volumes/data partition/XCODE4.5/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -miphoneos-version-min=5.1 -arch armv7 -Wl,-syslibroot,/Volumes/data partition/XCODE4.5/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -isysroot /Volumes/data partition/XCODE4.5/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -miphoneos-version-min=5.0 -L/Users/rinku.dahiya/ios/ImportedSources/vlc/contrib/arm-apple-darwin11/lib" ./configure --prefix="/Users/rinku.dahiya/ios/ImportedSources/vlc/contrib/arm-apple-darwin11" --build="i686-apple-darwin10" --host="arm-apple-darwin11" --target="arm-apple-darwin11" --program-prefix="" --enable-static --disable-shared --disable-dependency-tracking --with-pic checking build system type... i686-apple-darwin10 checking host system type... arm-apple-darwin11 checking target system type... arm-apple-darwin11 checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for arm-apple-darwin11-strip... xcrun strip checking for a thread-safe mkdir -p... .auto/install-sh -c -d checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking for arm-apple-darwin11-gcc... xcrun clang checking whether the C compiler works... no configure: error: in `/Users/rinku.dahiya/ios/ImportedSources/vlc/contrib/iPhoneOS-armv7/libdvbpsi': configure: error: C compiler cannot create executables See `config.log' for more details make: *** [.dvbpsi] Error 77

rowa
Blank Cone
Blank Cone
Posts: 30
Joined: 29 Jan 2013 04:34

Re: Building VLC for iOS

Postby rowa » 23 Apr 2013 08:27

How could I build vlc for iPhone5 with the architecture of armv7s?

dongyafeiying
Blank Cone
Blank Cone
Posts: 22
Joined: 17 Aug 2012 03:36

Re: Building VLC for iOS

Postby dongyafeiying » 08 Aug 2013 11:21

I also want to know!

my erros are :

Code: Select all

[info] Building tools yasm not found tar doesn't support xz (J option) ragel not found rm -f -R yasm && tar xvzf yasm-1.2.0.tar.gz rm -f -R tar && tar xvjf tar-1.26.tar.bz2 tar: Unrecognized archive format tar: Error exit delayed from previous errors. make: *** [yasm] Error 1 make: *** Waiting for unfinished jobs.... InputFile.cpp:84:10: error: use of undeclared identifier 'fseeko'; did you mean 'fseek'? return fseeko(fid, (off_t)(offset), whence); ^~~~~~ fseek /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/usr/include/stdio.h:259:6: note: 'fseek' declared here int fseek(FILE *, long, int); ^ InputFile.cpp:100:10: error: use of undeclared identifier 'ftello'; did you mean 'ftell'? return ftello(fid); ^~~~~~ ftell /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/usr/include/stdio.h:261:7: note: 'ftell' declared here long ftell(FILE *); ^ 2 errors generated. make[1]: *** [InputFile.o] Error 1 make: *** [.live555] Error 2 [info] Building MobileVLCKit (Aggregate static plugins, Release) [info] Building MobileVLCKit (MobileVLCKit, Release) ** BUILD FAILED **

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37519
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Building VLC for iOS

Postby Jean-Baptiste Kempf » 13 Aug 2013 13:33

Fix your system.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “VLC for iOS, iPadOS and Apple TV”

Who is online

Users browsing this forum: No registered users and 1 guest