Using GstVideoOverlay on Mac

doon don-prog at mail.ru
Wed Mar 9 01:35:42 UTC 2016


Sebastian Dröge-3 wrote
> On Mo, 2016-03-07 at 11:54 -0800, doon wrote:
>> 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».
> 
> Why don't you just check how one of the applications I linked is built?
> https://cgit.freedesktop.org/gstreamer/gst-plugins-base/tree/tests/examples/playback/Makefile.am
> 
> -- 
> 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/4676230/0/signature.asc>

Sorry, some things is not obvious for me. 
So, I added «-x objective-c++» in «Other C++ Flags» and
«/usr/local/Cellar/gtk+/2.24.29/lib/gtk-2.0/include» in «Header Search
Paths».
Now I try to compile:  
guintptr window_handle = (guintptr)gdk_quartz_window_get_nsview(gdkWin);

but get: 
Undefined symbols for architecture x86_64:
  "_gdk_quartz_window_get_nsview", referenced from:
      GstAPI::play_file(char*, void*) in gstLib.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)

How can I solve this?



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


More information about the gstreamer-devel mailing list