[Vala] Cross compiling vala gtk to win32
Hello, I'm a GNU beginner learning Vala since a couple of months and after playing and enjoying a lot in my Ubuntu desktop installation, now I want to build some small apps to be used by MS Windows users. I came into MingW32, and with some efforts finally was able to build a console-based 'HelloWorld' targeting i586-mingw32msvc But it's getting really difficult to build a gtk-based 'HelloWorld', btw I'm using autotools stack. Someone could help me, maybe with a minimal gtk vala sample application targeting w32 ? I looked at valaide source but it uses waf and I'm not really used to it. Thanks in advance, Greetings, Martín ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] Remove line numbers from logging
On Fri, 29 Apr 2011 16:39:58 +0100, Ricardo Gladwell wrote: Hi Guys I'm writing some code that uses the GLib log, debug, message etc. static methods. Is there anyway to disable/remove the pre-pending of file name and line number to these outputs so that instead of: [vain] DefaultVainExecution.vala:18: Scanning for projects... I just print: [vain] Scanning for projects... TIA... Set a custom logger handler. http://developer.gnome.org/glib/unstable/glib-Message-Logging.html http://valadoc.org/references/glib-2.0/0.11.5/GLib.Log.html -- Jonathan Ryan ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] Cross compiling vala gtk to win32
On Fri, Apr 29, 2011 at 12:34:31PM -0300, Martin Leibner wrote: Hello, I'm a GNU beginner learning Vala since a couple of months and after playing and enjoying a lot in my Ubuntu desktop installation, now I want to build some small apps to be used by MS Windows users. I came into MingW32, and with some efforts finally was able to build a console-based 'HelloWorld' targeting i586-mingw32msvc But it's getting really difficult to build a gtk-based 'HelloWorld', btw I'm using autotools stack. Someone could help me, maybe with a minimal gtk vala sample application targeting w32 ? I found myself in the same situation not long ago because of an application I had to write. I collected some notes along the way, with the idea of writing a more comprehensive guide in the near future; then along came GTK+ 3, which is AFAIK not really ready for use on Windows yet, and then the maintainer of the current GTK+ 2 binary release for Windows decided to stop working on that, so I never took the time to improve my notes, seeing it as work on soon–to–be–obsolete technology. I would be glad to share what I have, though, if you are interested. You can take a look at the sources for the application I was referring to[1], which, despite not being exactly a minimal example (you can avoid some of the things I did if you don’t need Cairo and libxml2), could give you some hints about how to cross–compile a win32 application. [1] http://git.roundhousecode.com/cgi-bin/browse.cgi?p=beebop.git;a=summary -- Andrea Bolognani e...@kiyuko.org Resistance is futile, you will be garbage collected. signature.asc Description: Digital signature ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
[Vala] [PATCH]: Vte vapi: Vte.Terminal.fork_command_full some arguments can be nullable
Hello everybody, Vte in version = 0.26 had the function Vte.Terminal.fork_command_full. But in the vte vapi file, this function had some arguments non-nullable and some other arguments nullable. That should be the opposite. (see: http://developer.gnome.org/vte/0.26/VteTerminal.html#vte-terminal-fork-command-full) In the api documentation we can see that argv argument can't be nullable, child_setup can be nullable and child_pid too. For the child_pid case, the argument is not a variable but a pointer nullable.|//|/||/ From 5297d64c0481303ed6ac3512adc829867ed91648 Mon Sep 17 00:00:00 2001 From: Jacques-Pascal Deplaix jp.depl...@gmail.com Date: Fri, 29 Apr 2011 21:56:19 +0200 Subject: [PATCH] Vte vapi: Vte.Terminal.fork_command_full some arguments can be nullable --- vapi/vte.vapi |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/vapi/vte.vapi b/vapi/vte.vapi index 92e437b..2bdc87d 100644 --- a/vapi/vte.vapi +++ b/vapi/vte.vapi @@ -60,7 +60,7 @@ namespace Vte { public void feed_child (string text, long length); public void feed_child_binary (string data, long length); public int fork_command (string? command, [CCode (array_length = false)] string[]? argv, [CCode (array_length = false)] string[]? envv, string? working_directory, bool lastlog, bool utmp, bool wtmp); - public bool fork_command_full (Vte.PtyFlags pty_flags, string? working_directory, [CCode (array_length = false)] string[]? argv, [CCode (array_length = false)] string[]? envv, GLib.SpawnFlags spawn_flags, GLib.SpawnChildSetupFunc child_setup, GLib.Pid child_pid) throws GLib.Error; + public bool fork_command_full (Vte.PtyFlags pty_flags, string? working_directory, [CCode (array_length = false)] string[] argv, [CCode (array_length = false)] string[]? envv, GLib.SpawnFlags spawn_flags, GLib.SpawnChildSetupFunc? child_setup, GLib.Pid *child_pid) throws GLib.Error; public int forkpty (string[] envv, string working_directory, bool lastlog, bool utmp, bool wtmp); public unowned Gtk.Adjustment get_adjustment (); public bool get_allow_bold (); -- 1.7.5 ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] Remove line numbers from logging
On Fri, 2011-04-29 at 12:57 -0400, Jonathan Ryan wrote: On Fri, 29 Apr 2011 16:39:58 +0100, Ricardo Gladwell wrote: Hi Guys I'm writing some code that uses the GLib log, debug, message etc. static methods. Is there anyway to disable/remove the pre-pending of file name and line number to these outputs so that instead of: [vain] DefaultVainExecution.vala:18: Scanning for projects... I just print: [vain] Scanning for projects... TIA... Set a custom logger handler. http://developer.gnome.org/glib/unstable/glib-Message-Logging.html http://valadoc.org/references/glib-2.0/0.11.5/GLib.Log.html Hi Jonathan,thanks for the feedback. I am setting a custom log handler: Log.set_default_handler(vain_log_function); But it looks as though valac is compiling the file name and line number right into the C code: #line 17 DefaultVainExecution.vala g_log (Vain, G_LOG_LEVEL_INFO, DefaultVainExecution.vala:17: Scanning for projects...); TIA... -- Ricardo Gladwell ricardo.gladw...@gmail.com http://www.google.com/profiles/ricardo.gladwell Twitter: @rgladwell - MSN: axo...@gmail.com ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] [PATCH]: Vte vapi: Vte.Terminal.fork_command_full some arguments can be nullable
On Fri, Apr 29, 2011 at 10:35:33PM +0200, Jacques-Pascal Deplaix wrote: Hello everybody, Vte in version = 0.26 had the function Vte.Terminal.fork_command_full. But in the vte vapi file, this function had some arguments non-nullable and some other arguments nullable. That should be the opposite. (see: http://developer.gnome.org/vte/0.26/VteTerminal.html#vte-terminal-fork-command-full) In the api documentation we can see that argv argument can't be nullable, child_setup can be nullable and child_pid too. For the child_pid case, the argument is not a variable but a pointer nullable.|//|/||/ Thanks for your patch, please consider filing a bug report to bugzilla.gnome.org to make sure patches don't get forgotten. -- http://www.debian.org - The Universal Operating System signature.asc Description: Digital signature ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] Cross compiling vala gtk to win32
I have crosscompiled big vala+gtk (gtkaml) apps with mingw from linux to windows. The setup is simple, but requires some tricks. I used to install the last gtk blobs for windows and then by setting pkgconfig, cflags and ldflags yo point to the directory containing the liba and include files the projects compiles just fine. I have a zip somewhere with all this environment prepared (w32 blobs and a test program in valagtl that crosscompiles with 'make') .. I will have to find it because im replying thia from my phone. But if someone finds it interesting i can provide instructions and the zip for this. I have also recently packaged a vala+gtkon app for osx with gtk and quartz (no x11). And stored in a standalone .app in a .dmg image.. If someone finds this interesting i can write some instructions to do it. I still have to play with the themes (to be emedded in the .app) and i would love to switch to gtk3. If someone have any experience with it let me know :) --pancake On 29/04/2011, at 17:34, Martin Leibner mleib...@tincorad.com wrote: Hello, I'm a GNU beginner learning Vala since a couple of months and after playing and enjoying a lot in my Ubuntu desktop installation, now I want to build some small apps to be used by MS Windows users. I came into MingW32, and with some efforts finally was able to build a console-based 'HelloWorld' targeting i586-mingw32msvc But it's getting really difficult to build a gtk-based 'HelloWorld', btw I'm using autotools stack. Someone could help me, maybe with a minimal gtk vala sample application targeting w32 ? I looked at valaide source but it uses waf and I'm not really used to it. Thanks in advance, Greetings, Martín ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] Cross compiling vala gtk to win32
I would be very interested in both the mingw cross compile instructions and the OSx dmg creation instructions. (Would be great to work out the GTK3 kinks too.) best -august. I have crosscompiled big vala+gtk (gtkaml) apps with mingw from linux to windows. The setup is simple, but requires some tricks. I used to install the last gtk blobs for windows and then by setting pkgconfig, cflags and ldflags yo point to the directory containing the liba and include files the projects compiles just fine. I have a zip somewhere with all this environment prepared (w32 blobs and a test program in valagtl that crosscompiles with 'make') .. I will have to find it because im replying thia from my phone. But if someone finds it interesting i can provide instructions and the zip for this. I have also recently packaged a vala+gtkon app for osx with gtk and quartz (no x11). And stored in a standalone .app in a .dmg image.. If someone finds this interesting i can write some instructions to do it. I still have to play with the themes (to be emedded in the .app) and i would love to switch to gtk3. If someone have any experience with it let me know :) --pancake On 29/04/2011, at 17:34, Martin Leibner mleib...@tincorad.com wrote: Hello, I'm a GNU beginner learning Vala since a couple of months and after playing and enjoying a lot in my Ubuntu desktop installation, now I want to build some small apps to be used by MS Windows users. I came into MingW32, and with some efforts finally was able to build a console-based 'HelloWorld' targeting i586-mingw32msvc But it's getting really difficult to build a gtk-based 'HelloWorld', btw I'm using autotools stack. Someone could help me, maybe with a minimal gtk vala sample application targeting w32 ? I looked at valaide source but it uses waf and I'm not really used to it. Thanks in advance, Greetings, Martín ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] Cross compiling vala gtk to win32
Thank you very much! I will be studying Beebop this weekend ;-) Best regards, Martin 2011/4/29 Andrea Bolognani e...@kiyuko.org On Fri, Apr 29, 2011 at 12:34:31PM -0300, Martin Leibner wrote: Hello, I'm a GNU beginner learning Vala since a couple of months and after playing and enjoying a lot in my Ubuntu desktop installation, now I want to build some small apps to be used by MS Windows users. I came into MingW32, and with some efforts finally was able to build a console-based 'HelloWorld' targeting i586-mingw32msvc But it's getting really difficult to build a gtk-based 'HelloWorld', btw I'm using autotools stack. Someone could help me, maybe with a minimal gtk vala sample application targeting w32 ? I found myself in the same situation not long ago because of an application I had to write. I collected some notes along the way, with the idea of writing a more comprehensive guide in the near future; then along came GTK+ 3, which is AFAIK not really ready for use on Windows yet, and then the maintainer of the current GTK+ 2 binary release for Windows decided to stop working on that, so I never took the time to improve my notes, seeing it as work on soon–to–be–obsolete technology. I would be glad to share what I have, though, if you are interested. You can take a look at the sources for the application I was referring to[1], which, despite not being exactly a minimal example (you can avoid some of the things I did if you don’t need Cairo and libxml2), could give you some hints about how to cross–compile a win32 application. [1] http://git.roundhousecode.com/cgi-bin/browse.cgi?p=beebop.git;a=summary -- Andrea Bolognani e...@kiyuko.org Resistance is futile, you will be garbage collected. ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list