10

I am trying to use MobileVLCKit for iOS in my application. I followed steps given @ Building the Framework for iOS. I have set deploymet target to iOS 7 in my Xcode 5.

I used command ./buildMobileVLCKit.sh -f -l to compile the shell file to get an iOS framework.

I got following errors on my terminal application.

The following build commands failed:
Libtool build/MobileVLCKit.build/Release-iphoneos/MobileVLCKit.build/Objects-normal/armv7/libMobileVLCKit.a normal armv7
Libtool build/MobileVLCKit.build/Release-iphoneos/MobileVLCKit.build/Objects-normal/armv7s/libMobileVLCKit.a normal armv7s
CreateUniversalBinary build/Release-iphoneos/libMobileVLCKit.a normal armv7\ armv7s    

I tried all ways got on google but it didn't work. After trying for whole day I am putting this question. Please help if you have used this before.

Yogi
  • 3,578
  • 3
  • 35
  • 56

1 Answers1

19

Drop the -l argument. You really need to compile the underlying libvlc to achieve a full MobileVLCKit framework. Without libvlc, it's just a bunch of useless classes.

Alternatively, consider getting a precompiled version which can be just dropped in your project: http://nightlies.videolan.org/build/iOS/

Pang
  • 9,564
  • 146
  • 81
  • 122
feepk
  • 1,756
  • 1
  • 12
  • 14
  • 1
    Getting a precompiled version is really cool. I too searched for same but couldn't find it. Thanks a lot man. – Yogi Feb 14 '14 at 04:45
  • I downloaded the latest framework but it doesn't contain class VLCVideoView which is used in [Basic usage in your application](https://wiki.videolan.org/VLCKit/). How should I use it? – Yogi Feb 14 '14 at 06:35
  • 1
    Check the sample code for iOS provided in the VLCKit git repository. VLCVideoView is an OS X only class. The same code path is handled slightly different on iOS. – feepk Feb 17 '14 at 12:34
  • 1
    Excellent, great to hear that! – feepk Feb 19 '14 at 10:10
  • Thanks for your help. I am facing an issue while playing RTSP links. While playing the video audio starts before the pictures and I get the error 'Failed to resize the display' in log. Can you please suggest a solution? – Yogi Feb 25 '14 at 05:26
  • 1
    You can ignore the "Failed to resize the display" warning, since this is normal (you can't really adapt the output size on iOS the way you can on desktops). Regarding video starting later than the audio, this depends on the availability of full frames to be displayed. Usually, those are being send at a regular interval, so this depends on your RTSP until the first full frame is ready for display. – feepk Feb 28 '14 at 11:45
  • Thanks. I just found that VLC player is requesting for UDP connection first and then TCP. I need to avoid that and force it to stream over TCP. I found a flag **--rtsp-tcp** on searching. But how should I use it? I tried setting `[objVlcplayer.media addOptions:[NSDictionary dictionaryWithObject:@"1" forKey:@"--rtsp-tcp"]]` but that doesn't work.Sorry this may be basic but I am new to this framework and couldn't find much help at other places so have to come to you only. – Yogi Feb 28 '14 at 11:55
  • Most likely, this option is not supported by the VLCMedia object, but needs to be set globally on the VLCMediaPlayer object on its initialization. – feepk Mar 01 '14 at 12:17
  • Ok but no such function found available on VLCMediaPlayer – Yogi Mar 01 '14 at 14:13
  • Can you please specify such function which will force the player to play the stream over TCP? I got this function in VLCMedia class. Couldn't find anything in VLCMediaPlayer class :( – Yogi Mar 01 '14 at 17:13
  • 1
    You need to add this option to [[VLCMediaPlayer alloc] initWithOptions:@[…]] … – feepk Mar 01 '14 at 22:16
  • Thanks a lot! I will try this and let you know. – Yogi Mar 02 '14 at 07:10
  • 1
    Great to hear that :) – feepk Mar 03 '14 at 21:46
  • Now i can able to download the pre compiled version from this site http://nightlies.videolan.org/build/ios/ Can anyone please share that it is relay helpful for me thanks in advance – sundar Jul 09 '14 at 07:30
  • 2
    When I build for iOS real device I get same error Undefined symbols for architecture armv7: "_openat", referenced from: _vlc_openat in MobileVLCKit(lt4-filesystem.o) In emulator it works fine!!! – ali shekari Jul 24 '15 at 15:00