Page 1 of 1

Building VLCKit on Snow Leopard

Posted: 09 Nov 2010 22:02
by laserbeak
I've been fighting this for several days and have just come up with a myriad of problems. I've searched the Internet for solutions and seemingly nothing works.

Is there any plain guide for getting this framework built on OS X? Or maybe just a binary distriubution?

Thanks.

Re: Building VLCKit on Snow Leopard

Posted: 14 Nov 2010 22:13
by fkuehne
A not-to-old binary is a available at http://jones.videolan.org/~videolan/fpk ... mework.zip. Since this binary was created using VLC's stable 1.1 branch, very little changed since then (just a few underlying codec updates, etc.).

Compiling VLCKit should be pretty easy in fact. Just open the xcodeproj and "build everything". After half an hour or something, you should be done. Note that Mac OS X 10.6 might be required nowadays (compiling on 10.5 wasn't tested for a long time). Additionally, it is important to use the stable branch of VLC (in the separate vlc-1.1.git repository), as the unstable variant is.. well.. unstable.

Re: Building VLCKit on Snow Leopard

Posted: 16 Nov 2010 13:38
by rcarmo
Actually, it isn't trivial, and I've only managed to get it to build for x86_64 - all other builds (including i386) seem to be broken.

I'd love to get it to work as a truly Universal framework, otherwise it simply isn't that useful. Nevertheless, here's my build recipe (assuming you already have Lua installed somehow):

- git clone git://git.videolan.org/vlc.git
- cd projects/macosx/framework
- xcodebuild -alltargets -configuration Release -project VLCKit.xcodeproj ARCHS="x86_64"

If you try to get it to work for any other architecture, the build process fails, apparently because some of the contribs don't build correctly. My guess is that someone forgot to propagate some settings down into those, but trying to understand the entirety of the build process is tough considering all that's going on, and would best be left to VLC devs - I'd open a ticket if I could figure out where...

Re: Building VLCKit on Snow Leopard

Posted: 04 Dec 2010 21:45
by joerick
I was getting errors like this

Code: Select all

=== BUILD AGGREGATE TARGET Make VLC and VLCKit OF PROJECT VLCKit WITH CONFIGURATION Release === Check dependencies ** BUILD FAILED ** The following build commands failed: Make VLC: PhaseScriptExecution make "/Users/username/Developer/Xcode Builds/VLCKit.build/Release/Make VLC.build/Script-6337548010ED091D0072A0D9.sh" PhaseScriptExecution install "/Users/username/Developer/Xcode Builds/VLCKit.build/Release/Make VLC.build/Script-633754D310ED0D330072A0D9.sh" VLCKit: Ld "/Users/username/Developer/Xcode Builds/Release/VLCKit.framework/Versions/A/VLCKit" normal x86_64 (3 failures)
The trick is to make sure that xcode is set (in it's preferences) to put build products in the source directory, not in a separate build directory.

Might save somebody a few hours' worth of :evil: !

Re: Building VLCKit on Snow Leopard

Posted: 05 Dec 2010 19:00
by tobyspark
Hello,

I've tried this month and back in September to try and get VLCKit working. Unfortunately I can't get i386 compilation to work, and can't find a pre-built framework that is both i386 and good for udp streaming (at least with the network sources I have here). For reasons too annoying, my application has to remain in 32-bit land.

Lunettes v0.5,v0.8 has a framework that handles the udp streaming fine, but is compiled for x86_64. This library reports as "1.1.0-pre2 The Luggage"
http://jones.videolan.org/~videolan/fpk ... mework.zip is compiled for i386 and x86_64, but the streaming fails (see below). This library reports as "1.2.0-git Twoflower"

If anybody has a v1.1.x VLCKit compiled / build recipie for i386 it would be golddust!

Toby

ps. Seeing this when playing a udp stream (MPEG2 Transport stream if memory serves, its UK DVB received and rebroadcast as IPTV).

Can't find a VLC 1.2 pre-built app to test whether this is confined to VLCKit 1.2

Streaming errors (> 500 messages per second to console)

Code: Select all

skipped MB in I frame at 16 0 ac-tex damaged at 30 1 ac-tex damaged at 1 2 skipped MB in I frame at 6 3 invalid mb type in I Frame at 4 4 skipped MB in I frame at 2 5 skipped MB in I frame at 7 6 Warning MVs not available skipped MB in I frame at 16 0 ac-tex damaged at 30 1 ac-tex damaged at 1 2 skipped MB in I frame at 6 3

Re: Building VLCKit on Snow Leopard

Posted: 12 Dec 2010 03:28
by soulless
I can't compile VLCKit. http://jones.videolan.org/~videolan/fpk ... mework.zip is compiled for i386 and x86_64, but when I try to use in my project (Garbage Collection Supported) I found error in runtime.

Where I could a binary VLCKit with Garbage Collection Supported?

Re: Building VLCKit on Snow Leopard

Posted: 03 May 2011 14:33
by crackstone
- git clone git://git.videolan.org/vlc.git
- cd projects/macosx/framework
- xcodebuild -alltargets -configuration Release -project VLCKit.xcodeproj ARCHS="x86_64"
thanks for that input this worked like a charm with minor additions. As Felix pointed out I specifically used the vlc-1.1.git branch, which worked for me:

- git clone git://git.videolan.org/vlc/vlc-1.1.git vlc-1.1
- cd vlc-1.1/projects/macosx/framework
- xcodebuild -alltargets -configuration Release -project VLCKit.xcodeproj ARCHS="x86_64" -sdk macosx10.6

//crackstone

Re: Building VLCKit on Snow Leopard

Posted: 05 May 2011 10:26
by fkuehne
Just to clarify this: VLCKit does not support Garbage Collection at the moment.