[vlc-devel] Set of patches to make VLC Qt4 interface compile and run on Mac

Jean-Baptiste Kempf jb at videolan.org
Wed Jul 21 16:32:29 CEST 2010


On Wed, Jul 21, 2010 at 04:58:33PM +0300, Juho Vähä-Herttua wrote :
> I'm soon going to send a set of patches that aim to make the current git  
> master to compile on Mac. Currently it only works with Qt4 that is  
> compiled with Cocoa, as it passes the WId directly to video_output and  
> as http://doc.qt.nokia.com/4.6/qwidget.html#winId says:

We should only care about QtCocoa anyway.

> "On Mac OS X, the type returned depends on which framework Qt was linked  
> against. If Qt is using Carbon, the {WId} is actually an HIViewRef. If  
> Qt is using Cocoa, {WId} is a pointer to an NSView."
> It can be made to work on Carbon compiled Qt as well with  
> QMacCocoaViewContainer if running on OSX 10.5 or newer, as explained in  
> http://doc.trolltech.com/4.6/qmaccocoaviewcontainer.html, but that  
> would've practically required adding some Objective-C++ file that could  
> access both Cocoa and Qt4 and I didn't bother at least for now.
Carbon is dead.

> It crashes a lot, but at least I can hear the sound and watch the video,  
> so I'd call it a good starting point.

Jean-Baptiste Kempf

More information about the vlc-devel mailing list