Using GstVideoOverlay on Mac

doon don-prog at mail.ru
Mon Mar 7 19:54:59 UTC 2016


Sebastian Dröge-3 wrote
> On So, 2016-03-06 at 17:37 -0800, doon wrote:
>> 
>> Hi, Andy.
>> Could you share the include part of your code? And how do you
>> installed GDK on OS X? Because I can't find <gdk/gdkx.h> and I
>> can't
>> find how to install GDK on OS X. 
> 
> Do you want to use GDK/GTK with the X11 backend on OSX? Probably not.
> In that case you want gdk/gdkquartz.h
> 
> See this for a GTK2 example:
> https://cgit.freedesktop.org/~slomo/gst-sdk-tutorials/tree/gst-sdk/tutorials/basic-tutorial-5.c
> 
> Look for GDK_WINDOWING_QUARTZ. This part is the same on GTK3, other
> parts there might be different.
> 
> Search for GDK_WINDOWING_QUARTZ in here for a GTK3 example, but that's
> a more complex application:
> https://cgit.freedesktop.org/gstreamer/gst-plugins-base/tree/tests/examples/playback/playback-test.c
> 
> -- 
> Sebastian Dröge, Centricular Ltd · http://www.centricular.com
> 
> 
> _______________________________________________
> gstreamer-devel mailing list

> gstreamer-devel at .freedesktop

> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> 
> 
> signature.asc (968 bytes)
> <http://gstreamer-devel.966125.n4.nabble.com/attachment/4676206/0/signature.asc>

Ok, I built gst-plugins-base and checked that. So I added
«/usr/local/Cellar/gtk+/2.24.29/include/gtk-2.0/» path to «Header Search
Paths»(I installed gtk via homebrew) and added #include <gdk/gdkquartz.h> in
my .h. After that I got many errors in «NSObjCRuntime.h», «NSZone.h», and
«NSObject.h» like:
«/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:437:19:
Unknown type name 'NSString'»
I think it’s because gdkquartz uses some Objective-C headers. So is it
right? How can I solve these errors?
By the way, if I add #include <gdk/gdk.h> instead of gdkquartz.h, then I get
«’gdkconfig.h' file not found».



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Using-GstVideoOverlay-on-Mac-tp4675141p4676221.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list