Building VLCKit on Snow Leopard

macOS specific usage questions
laserbeak
New Cone
New Cone
Posts: 3
Joined: 09 Nov 2010 21:57

Building VLCKit on Snow Leopard

Postby laserbeak » 09 Nov 2010 22:02

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.

fkuehne
Developer
Developer
Posts: 7264
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: Building VLCKit on Snow Leopard

Postby fkuehne » 14 Nov 2010 22:13

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.
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

rcarmo
New Cone
New Cone
Posts: 1
Joined: 16 Nov 2010 13:31

Re: Building VLCKit on Snow Leopard

Postby rcarmo » 16 Nov 2010 13:38

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...

joerick
New Cone
New Cone
Posts: 1
Joined: 04 Dec 2010 21:41

Re: Building VLCKit on Snow Leopard

Postby joerick » 04 Dec 2010 21:45

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: !

tobyspark
New Cone
New Cone
Posts: 2
Joined: 07 Jan 2009 17:23

Re: Building VLCKit on Snow Leopard

Postby tobyspark » 05 Dec 2010 19:00

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

soulless
New Cone
New Cone
Posts: 3
Joined: 08 Dec 2010 02:30

Re: Building VLCKit on Snow Leopard

Postby soulless » 12 Dec 2010 03:28

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?

crackstone
Blank Cone
Blank Cone
Posts: 56
Joined: 01 Apr 2010 17:25
VLC version: 2.1.0-git
Operating System: Mac OS X
Location: Vienna, Austria

Re: Building VLCKit on Snow Leopard

Postby crackstone » 03 May 2011 14:33

- 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

fkuehne
Developer
Developer
Posts: 7264
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: Building VLCKit on Snow Leopard

Postby fkuehne » 05 May 2011 10:26

Just to clarify this: VLCKit does not support Garbage Collection at the moment.
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net


Return to “VLC media player for macOS Troubleshooting”

Who is online

Users browsing this forum: No registered users and 22 guests