Page 1 of 1

Sample Playback for IOS

Posted: 07 Apr 2014 10:41
by auztin100
Hi, I've downloaded and built the VLC for IOS as per https://wiki.videolan.org/VLCKit/

I have run the build scripts with -s and without, and have build the library for both.

I can run the sample playback app fine on IOS simulator, but I can't get it to build for my ipad / iphone.

Here are the errors reported.

ld: warning: directory not found for option '-L/Users/austinharvey/Documents/Development/VLCKit/Examples_iOS/SimplePlayback/../../build/Release-iphonesos'
ld: warning: ignoring file /Users/austinharvey/Documents/Development/VLCKit/build/Release-iphonesimulator/libMobileVLCKit.a, missing required architecture armv7 in file /Users/austinharvey/Documents/Development/VLCKit/build/Release-iphonesimulator/libMobileVLCKit.a (2 slices)
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_VLCMedia", referenced from:
objc-class-ref in VDLViewController.o
"_OBJC_CLASS_$_VLCMediaPlayer", referenced from:
objc-class-ref in VDLViewController.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)


Any ideas ?

Thanks.
Austin.

Re: Sample Playback for IOS

Posted: 07 Apr 2014 13:01
by fkuehne
You are trying to link the Simulator binary for a device build. This won't work :)

Re: Sample Playback for IOS

Posted: 07 Apr 2014 13:17
by auztin100
Thanks for the reply, yes this is what I thought, but I have tried removing the libmobileVLCKit.a and adding it directly from the build Release-iphoneos/ folder but I get the same, and this is the sample files downloaded directly from the git.

Brain hurts !

Re: Sample Playback for IOS

Posted: 07 Apr 2014 14:49
by auztin100
Xcode 5.1, iOS 7.01

Re: Sample Playback for IOS

Posted: 07 Apr 2014 18:15
by auztin100
If I set the iOS Deployment Target to be 6.1 the device build works fine, as soon as I set back to 7.0, or 7.1 I get the errors ??

I am setting sdk version in the build script to be 7.1, anything else I am missing ?

Thanks.

Re: Sample Playback for IOS

Posted: 08 Apr 2014 18:40
by auztin100
Please ignore all of the above - sorted now, although I can report that the search headers in the SamplePlayback applicationed supplied with the Mobile VLC Kit has an error, path is Release-iphonesos/ instead of Release-iphoneos/

Thanks.
Austin.

Re: Sample Playback for IOS

Posted: 13 May 2014 08:39
by o2244
I also having the same problems with the deployment target, how did you resolve this issue?