SHOW:
|
|
- or go back to the newest paste.
1 | - | francisco@eos:~/rubik/rubic-companion/build$ cmake ../ |
1 | + | int main (string[] args) { |
2 | - | -- checking for modules 'gtk+-3.0;granite' |
2 | + | Gtk.init (ref args); |
3 | - | -- package 'granite' not found |
3 | + | |
4 | - | CMake Error at /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:266 (message): |
4 | + | var window = new Gtk.Window (); |
5 | - | A required package was not found |
5 | + | window.title = "Hello World!"; |
6 | - | Call Stack (most recent call first): |
6 | + | window.border_width = 12; |
7 | - | /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:320 (_pkg_check_modules_internal) |
7 | + | window.window_positi |
8 | - | CMakeLists.txt:25 (pkg_check_modules) |
8 | + | window.set_default_size (350, 70); |
9 | window.destroy.connect (Gtk.main_quit); | |
10 | ||
11 | - | -- Found Vala: /usr/bin/valac |
11 | + | var butt Gtk.Button.with_label ("Click me!"); |
12 | - | -- checking for a minimum Vala version of 0.16 |
12 | + | button.clicked.connect (() => { |
13 | - | -- found Vala, version 0.20.1 |
13 | + | button.label = "Hello World!"; |
14 | - | -- Configuring incomplete, errors occurred! |
14 | + | button.set_sensitive (false); |
15 | }); | |
16 | window.add (button); | |
17 | window.show_all (); | |
18 | ||
19 | Gtk.main (); | |
20 | return 0; | |
21 | ||
22 | } | |
23 | ||
24 | And I got 2 errors | |
25 | ||
26 | francisco@eos:~$ cd /home/francisco/Projects/gtk-hello/src | |
27 | francisco@eos:~/Projects/gtk-hello/src$ valac --pkg gtk+-3.0 gtk-hello.vala | |
28 | gtk-hello.vala:8.7-8.7: error: syntax error, expected `;' | |
29 | window.set_default_size (350, 70); | |
30 | ^ | |
31 | gtk-hello.vala:11.11-11.13: error: syntax error, expected `;' | |
32 | var butt Gtk.Button.with_label ("Click me!"); | |
33 | ^^^ | |
34 | Compilation failed: 2 error(s), 0 warning(s) | |
35 | francisco@eos:~/Projects/gtk-hello/src$ |