Yes it is Mac OS X, 10.7.4.  I do have gtk+ and gtk+3 installed, via
homebrew.  I can actually see the gtk.h file
at /usr/local/Cellar/gtk+3/3.4.4/include/gtk-3.0/gtk/gtk.h.


On Wed, Nov 14, 2012 at 2:25 PM, David Gomes <da...@elementaryos.org> wrote:

> You don't seem to have Gtk installed? Also, is it on Mac OS X?
>
>
> On Wed, Nov 14, 2012 at 10:23 PM, Rich Rodecker <flasha...@gmail.com>wrote:
>
>> I'm new to Vala, and trying to run the "Vala GStreamer Video Example"
>> (found here:  https://live.gnome.org/Vala/GStreamerSample) on a mac.
>>  When
>> I attempt to compile the program using the command:
>>
>> (Note that I am using Vala 0.17.5, installed via Homebrew):
>>
>> valac --pkg gtk+-3.0 --pkg gdk-x11-3.0 --pkg gstreamer-0.10 --pkg
>> gstreamer-interfaces-0.10 VideoSample.vala
>>
>> I receive the error:
>>
>> /Users/rich/Desktop/vala/gstreamer/VideoSample.vala.c:7:10: fatal error:
>> 'gtk/gtk.h' file not found
>> #include <gtk/gtk.h>
>>          ^
>> 1 error generated.
>> error: cc exited with status 256
>> Compilation failed: 1 error(s), 0 warning(s)
>>
>>
>>
>> If I try to change it to use gtk2.0:
>>
>> valac --pkg gtk+-2.0 --pkg gdk-x11-2.0 --pkg gstreamer-0.10 --pkg
>> gstreamer-interfaces-0.10 VideoSample.vala
>>
>> I get a different error:
>>
>> gtk+-2.0.vapi:5802.40-5802.42: warning: Gtk is deprecated. Use gtk+-3.0
>> VideoSample.vala:18.20-18.52: error: 2 extra arguments for `void
>> Gtk.Box.new ()'
>>         var vbox = new Box (Orientation.VERTICAL, 0);
>>                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>> VideoSample.vala:48.27-48.29: warning: Gdk is deprecated. Use gdk-3.0
>> VideoSample.vala:48.27-48.39: error: The name `X11Window' does not exist
>> in
>> the context of `Gdk'
>>         this.xid =
>> (ulong)Gdk.X11Window.get_xid(this.drawing_area.get_window());
>>                           ^^^^^^^^^^^^^
>> VideoSample.vala:28.38-28.40: warning: Gtk is deprecated. Use gtk+-3.0
>> VideoSample.vala:30.18-30.55: error: 1 extra arguments for `void
>> Gtk.ButtonBox.new ()'
>>         var bb = new ButtonBox (Orientation.HORIZONTAL);
>>                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>> VideoSample.vala:63.9-63.11: warning: Gtk is deprecated. Use gtk+-3.0
>> VideoSample.vala:68.9-68.11: warning: Gtk is deprecated. Use gtk+-3.0
>> Compilation failed: 3 error(s), 5 warning(s)
>>
>> Thanks in advance, any help is definitely appreciated.
>>
>> -Rich
>>
>> _______________________________________________
>> vala-list mailing list
>> vala-list@gnome.org
>> https://mail.gnome.org/mailman/listinfo/vala-list
>>
>>
>
_______________________________________________
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to