Re: [Vala] no Gtk when it is installed ??
- From: Vlad <b100dian gmail com>
- To: Tobiasz <windyrainman gmail com>
- Cc: vala-list gnome org
- Subject: Re: [Vala] no Gtk when it is installed ??
- Date: Wed, 23 Jan 2008 11:29:56 +0200
Tobiasz wrote:
Hello!
I' ve recently tried out Vala on my Ubuntu 7.10 Gutsy Gibbon and I've
encountered a problem at the very beginning. I've copied and pasted the
*"Another Vala GTK+ Example using GtkTreeView and GtkBuilder API"*
from the samples located on http://live.gnome.org/Vala/GTKSample and
after execution of valac test.vala (test is the file with the example) I
receive an error:
/home/tobiasz/test.vala:1.7-1.9: error: The namespace name `Gtk' could
not be found
/home/tobiasz/test.vala:7.9-7.17: error: The type name `FileModel' could
not be found
/home/tobiasz/test.vala:8.9-8.13: error: The type name `Label' could not
be found
/home/tobiasz/test.vala:9.9-9.12: error: The type name `VBox' could not
be found
/home/tobiasz/test.vala:10.9-10.13: error: The type name `Entry' could
not be found
... etc.
I guess it all concerns Gtk library but I've checked it twice and I've
got Gtk library installed with all dev packages and so on...
Seems like you need to run
$ valac --pkg gtk+-2.0 test.vala
This is the name of the package as mentioned in it's pkg-config file,
and enables valac to lookup it's VAPI file and even pass the --cflags
--libs to gcc
--
Vlad http://blad.wordpress.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]