maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Vala for Maemo development (https://talk.maemo.org/showthread.php?t=18968)

ukki 2009-06-13 20:15

Re: Vala for Maemo development
 
Thanks Jaffa for the Vala 0.7.3, had lots of issues with bad c code with the older versions, but latest fixed them. Anyways, few questions:

What the heck can I use for IO? Only FileUtils seems to work for basic file reading, but I need better than that. Diablo GLib seems to be too old for gio/gio-unix that I need. I installed libgio-dev, but it fails to compile with:

Code:

/usr/lib/libgio-2.0.so: undefined reference to `IA__g_app_info_get_default_for_type'
Why is that in repos if it doesn't work or am I missing a lib it needs? Error seems to point to a newer GLib.

What about UDP? I need multicast udp and can't find a lib for that either. I had to do it C so I can add it to c code, but I'd rather use Vala for that too.

Also libsoup-2.2 seems to be buggy, I get all kinds of weird stuff in body like extra chars and even headers etc, so I had to add ugly separators to rule them out.

Vala ain't that bad once you get the hang of it and I do love the speed, but these issues are really making it unsuitable for my needs. Any advice especially for my io-problem?

Bundyo 2009-06-13 20:43

Re: Vala for Maemo development
 
You will also have those issues with C you know :) The problem is the old libraries on the NIT and Vala can't change that. At least in Frematle they updated at last.

What are you trying to do with files that requres GIO?

ukki 2009-06-13 21:04

Re: Vala for Maemo development
 
Quote:

Originally Posted by Bundyo (Post 296395)
What are you trying to do with files that requres GIO?

Actually I need it for this:

http://valadoc.org/?pkg=glib-2.0&ele...ync_with_pipes

Bundyo 2009-06-14 06:53

Re: Vala for Maemo development
 
I don't see anything related to GIO in Process.spawn_async_with_pipes?

ukki 2009-06-14 07:21

Re: Vala for Maemo development
 
Quote:

Originally Posted by Bundyo (Post 296532)
I don't see anything related to GIO in Process.spawn_async_with_pipes?

It returns a file descriptor for the input and I need a way to write to that.

Bundyo 2009-06-14 07:59

Re: Vala for Maemo development
 
http://library.gnome.org/devel/glib/...annel-unix-new

ukki 2009-06-14 11:51

Re: Vala for Maemo development
 
Thank you!!1

Bundyo 2009-06-21 21:53

Re: Vala for Maemo development
 
Okay Jaffa, I managed to get Tear compiling on 0.7.3 without any additional changes, I'm using WAF for building (and deb building), so how can I get mud builder to use WAF? :)

Jaffa 2009-06-22 13:17

Re: Vala for Maemo development
 
Quote:

Originally Posted by Bundyo (Post 298489)
Okay Jaffa, I managed to get Tear compiling on 0.7.3 without any additional changes, I'm using WAF for building (and deb building), so how can I get mud builder to use WAF? :)

You might not need to use mud-builder to use WAF. As long as you've got a debian/rules file in your tarball which has a number of simple targets (the vala-sample example is pretty minimal ;-)) you should be able to upload the tarball straight to the auto-builder.

Bundyo 2009-06-22 19:53

Re: Vala for Maemo development
 
That overall means that I shouldn't use WAF at all, eh? :) Because if I should have a Makefile and a rules file then I should do all the build config again, only this time through make/dpkg-buildpackage and a lot harder and confusing... :(


All times are GMT. The time now is 09:32.

vBulletin® Version 3.8.8