I am trying to get basic-tutorial-5 from the GStreamer SDK for working with OSX.
SDK downloaded from http://gstreamer.freedesktop.org/data/pkg/osx/1.2.4.1/
tutorials (for 1.0) from http://cgit.freedesktop.org/~slomo/gst-sdk-tutorials/
I get the following error
basic-tutorial-5.c:5:10: fatal error: 'gst/video/videooverlay.h' file not found
when i run
gcc `pkg-config gstreamer-1.0 gtk+-3.0 --cflags --libs` basic-tutorial-5.c -o basic5
Any pointers would be helpful!
Thank.
EDIT:
In /local/frameworks/Gstreamer.framework/Headersthere gst/video/videooverlay.h.
The output pkg-config gstreamer-1.0 gtk+-3.0 --cflags --libsdoes not include/Library/Frameworks/Gstreamer.framework/Versions/1.0/Headers
Thanks @Biffen for using
gcc `pkg-config --cflags --libs gtk+-3.0` -o basic5 basic-tutorial-5.c -I/Library/Frameworks/Gstreamer.framework/Versions/1.0/Headers -framework GStreamer
There are a few more actions:
basic-tutorial-5.c:114:17: warning: 'gtk_button_new_from_stock' is deprecated
[-Wdeprecated-declarations]
play_button = gtk_button_new_from_stock (GTK_STOCK_MEDIA_PLAY);
^
/usr/local/Cellar/gtk+3/3.12.2/include/gtk-3.0/gtk/gtkbutton.h:103:16: note:
'gtk_button_new_from_stock' declared here
GtkWidget* gtk_button_new_from_stock (const gchar *stock_id);
^
basic-tutorial-5.c:114:44: warning: 'GtkStock' is deprecated
[-Wdeprecated-declarations]
play_button = gtk_button_new_from_stock (GTK_STOCK_MEDIA_PLAY);
^
/usr/local/Cellar/gtk+3/3.12.2/include/gtk-3.0/gtk/deprecated/gtkstock.h:747:38: note:
expanded from macro 'GTK_STOCK_MEDIA_PLAY'
^
/usr/local/Cellar/gtk+3/3.12.2/include/gtk-3.0/gtk/deprecated/gtkstock.h:107:16: note:
'GtkStock' declared here
typedef char * GtkStock;
^
basic-tutorial-5.c:117:18: warning: 'gtk_button_new_from_stock' is deprecated
[-Wdeprecated-declarations]
pause_button = gtk_button_new_from_stock (GTK_STOCK_MEDIA_PAUSE);
^
/usr/local/Cellar/gtk+3/3.12.2/include/gtk-3.0/gtk/gtkbutton.h:103:16: note:
'gtk_button_new_from_stock' declared here
GtkWidget* gtk_button_new_from_stock (const gchar *stock_id);
^
basic-tutorial-5.c:117:45: warning: 'GtkStock' is deprecated
[-Wdeprecated-declarations]
pause_button = gtk_button_new_from_stock (GTK_STOCK_MEDIA_PAUSE);
^
/usr/local/Cellar/gtk+3/3.12.2/include/gtk-3.0/gtk/deprecated/gtkstock.h:733:38: note:
expanded from macro 'GTK_STOCK_MEDIA_PAUSE'
^
/usr/local/Cellar/gtk+3/3.12.2/include/gtk-3.0/gtk/deprecated/gtkstock.h:107:16: note:
'GtkStock' declared here
typedef char * GtkStock;
^
basic-tutorial-5.c:120:17: warning: 'gtk_button_new_from_stock' is deprecated
[-Wdeprecated-declarations]
stop_button = gtk_button_new_from_stock (GTK_STOCK_MEDIA_STOP);
^
/usr/local/Cellar/gtk+3/3.12.2/include/gtk-3.0/gtk/gtkbutton.h:103:16: note:
'gtk_button_new_from_stock' declared here
GtkWidget* gtk_button_new_from_stock (const gchar *stock_id);
^
basic-tutorial-5.c:120:44: warning: 'GtkStock' is deprecated
[-Wdeprecated-declarations]
stop_button = gtk_button_new_from_stock (GTK_STOCK_MEDIA_STOP);
^
/usr/local/Cellar/gtk+3/3.12.2/include/gtk-3.0/gtk/deprecated/gtkstock.h:799:38: note:
expanded from macro 'GTK_STOCK_MEDIA_STOP'
^
/usr/local/Cellar/gtk+3/3.12.2/include/gtk-3.0/gtk/deprecated/gtkstock.h:107:16: note:
'GtkStock' declared here
typedef char * GtkStock;
^
6 warnings generated.
So, this is consistent ... It seems like a huge step forward, but still there is no cigar ...
When I try to run basic5, I get:
(process:73178): GLib-GObject-WARNING **: cannot register existing type 'gchar'
**
GLib-GObject:ERROR:gvaluetypes.c:455:_g_value_types_init: assertion failed: (type == G_TYPE_CHAR)
Abort trap: 6
EDIT v2:
nemequ gcc -o basic5 basic-tutorial-5.c pkg-config -libs -cflags gstreamer-1.0 gstreamer-video-1.0 gtk + -3.0`` ./basic5, :
Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!
(basic5:77683): Gtk-WARNING **: cannot open display:
, /Library/Frameworks/Gstreamer.framework/Versions/1.0/Headers gtk ( , ), pkg-config.. - , .
./basic5 XQuartz, :
Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!
(basic5:78227): GLib-GIO-ERROR **: No GSettings schemas are installed on the system
Trace/BPT trap: 5
- ?