[Builder] Vala project building



Hello,

I'm trying to build sample Vala application using Builder:
* New project -> From a project template: Language - Vala, Pattern - Empty project
* Choose Empty File from context menu of the project directory and add file main.vala (see below).
* Get success from Build process (see output below)

No one executable file was generated in this case. What should I add to scripts to make building work?

Your help will be very appreciated.

Best regards,
Anastasiya

main.vala
using Gtk;

int main (string[] args) {
    Gtk.init (ref args);

    var window = new Window ();
    window.title = "First GTK+ Program";
    window.border_width = 10;
    window.window_position = WindowPosition.CENTER;
    window.set_default_size (350, 70);
    window.destroy.connect (Gtk.main_quit);

    var button = new Button.with_label ("Click me!");
    button.clicked.connect (() => {
        button.label = "Thank you";
    });

    window.add (button);
    window.show_all ();

    Gtk.main ();
    return 0;
}


Build Output:
make 'all' '-j5'
make  all-recursive
make[1]: Entering directory '/home/anastasiya/.cache/gnome-builder/builds/test_app/local/x86_64-linux-gnu'
Making all in data
make[2]: Entering directory '/home/anastasiya/.cache/gnome-builder/builds/test_app/local/x86_64-linux-gnu/data'
make[2]: Leaving directory '/home/anastasiya/.cache/gnome-builder/builds/test_app/local/x86_64-linux-gnu/data'
Making all in po
make[2]: Entering directory '/home/anastasiya/.cache/gnome-builder/builds/test_app/local/x86_64-linux-gnu/po'
make .pot-update
make[3]: Entering directory '/home/anastasiya/.cache/gnome-builder/builds/test_app/local/x86_64-linux-gnu/po'
package_gnu=""; \
test -n "$package_gnu" || { \
  if { if (LC_ALL=C find --version) 2>/dev/null | grep GNU >/dev/null; then \
     LC_ALL=C find -L /home/anastasiya/Projects/test_app -maxdepth 1 -type f \
               -size -10000000c -exec grep 'GNU test_app' \
               /dev/null '{}' ';' 2>/dev/null; \
       else \
     LC_ALL=C grep 'GNU test_app' /home/anastasiya/Projects/test_app/* 2>/dev/null; \
       fi; \
     } | grep -v 'libtool:' >/dev/null; then \
     package_gnu=yes; \
   else \
     package_gnu=no; \
   fi; \
}; \
if test "$package_gnu" = "yes"; then \
  package_prefix='GNU '; \
else \
  package_prefix=''; \
fi; \
if test -n '' || test 'https://bugzilla.gnome.org/enter_bug.cgi?product=test_app' = '@'PACKAGE_BUGREPORT'@'; then \
  msgid_bugs_address=''; \
else \
  msgid_bugs_address='https://bugzilla.gnome.org/enter_bug.cgi?product=test_app'; \
fi; \
case `/usr/bin/xgettext --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \
  '' | 0.[0-9] | 0.[0-9].* | 0.1[0-5] | 0.1[0-5].* | 0.16 | 0.16.[0-1]*) \
    /usr/bin/xgettext --default-domain= --directory=/home/anastasiya/Projects/test_app \
      --add-comments=TRANSLATORS: --keyword=_ --keyword=N_ --keyword=C_:1c,2 --keyword=NC_:1c,2 --keyword=g_dngettext:2,3 --flag=g_dngettext:2:pass-c-format --flag=g_strdup_printf:1:c-format --flag=g_string_printf:2:c-format --flag=g_string_append_printf:2:c-format --flag=g_error_new:3:c-format --flag=g_set_error:4:c-format --flag=g_markup_printf_escaped:1:c-format --flag=g_log:3:c-format --flag=g_print:1:c-format --flag=g_printerr:1:c-format --flag=g_printf:1:c-format --flag=g_fprintf:2:c-format --flag=g_sprintf:2:c-format --flag=g_snprintf:3:c-format  \
      --files-from=/home/anastasiya/Projects/test_app/po/POTFILES.in \
      --copyright-holder='Translation copyright holder' \
      --msgid-bugs-address="$msgid_bugs_address" \
    ;; \
  *) \
    /usr/bin/xgettext --default-domain= --directory=/home/anastasiya/Projects/test_app \
      --add-comments=TRANSLATORS: --keyword=_ --keyword=N_ --keyword=C_:1c,2 --keyword=NC_:1c,2 --keyword=g_dngettext:2,3 --flag=g_dngettext:2:pass-c-format --flag=g_strdup_printf:1:c-format --flag=g_string_printf:2:c-format --flag=g_string_append_printf:2:c-format --flag=g_error_new:3:c-format --flag=g_set_error:4:c-format --flag=g_markup_printf_escaped:1:c-format --flag=g_log:3:c-format --flag=g_print:1:c-format --flag=g_printerr:1:c-format --flag=g_printf:1:c-format --flag=g_fprintf:2:c-format --flag=g_sprintf:2:c-format --flag=g_snprintf:3:c-format  \
      --files-from=/home/anastasiya/Projects/test_app/po/POTFILES.in \
      --copyright-holder='Translation copyright holder' \
      --package-name="${package_prefix}test_app" \
      --package-version='0.1.0' \
      --msgid-bugs-address="$msgid_bugs_address" \
    ;; \
esac
test ! -f .po || { \
  if test -f /home/anastasiya/Projects/test_app/po/.pot-header; then \
    sed -e '1,/^#$/d' < .po > .1po && \
    cat /home/anastasiya/Projects/test_app/po/.pot-header .1po > .po; \
    rm -f .1po; \
  fi; \
  if test -f /home/anastasiya/Projects/test_app/po/.pot; then \
    sed -f remove-potcdate.sed < /home/anastasiya/Projects/test_app/po/.pot > .1po && \
    sed -f remove-potcdate.sed < .po > .2po && \
    if cmp .1po .2po >/dev/null 2>&1; then \
      rm -f .1po .2po .po; \
    else \
      rm -f .1po .2po /home/anastasiya/Projects/test_app/po/.pot && \
      mv .po /home/anastasiya/Projects/test_app/po/.pot; \
    fi; \
  else \
    mv .po /home/anastasiya/Projects/test_app/po/.pot; \
  fi; \
}
make[3]: Leaving directory '/home/anastasiya/.cache/gnome-builder/builds/test_app/local/x86_64-linux-gnu/po'
test ! -f /home/anastasiya/Projects/test_app/po/.pot || \
  test -z "" || make
make[2]: Leaving directory '/home/anastasiya/.cache/gnome-builder/builds/test_app/local/x86_64-linux-gnu/po'
make[2]: Entering directory '/home/anastasiya/.cache/gnome-builder/builds/test_app/local/x86_64-linux-gnu'
make[2]: Leaving directory '/home/anastasiya/.cache/gnome-builder/builds/test_app/local/x86_64-linux-gnu'
make[1]: Leaving directory '/home/anastasiya/.cache/gnome-builder/builds/test_app/local/x86_64-linux-gnu'



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]