![]() |
Re: Vala for Maemo development
Quote:
As far as vala on the tablet, it works. You have to set up the SDK repo (which contains some packages that require removal of large chunks of your system to install, and thus is hazardous; you've been warned), and then apt-get install gcc, libgtk2.0-dev, and probably some other *-dev packages. But that's not as easy as it sounds, if you've been keeping up with SSU, because the *-dev packages in the SDK repo are not updated to new versions, and depend on the * packages of the same version; several of these wound up a revision or patch level behind the installed version. No sweat; just aBottom line: If you're scared, don't do any of this! If you're not scared, clone to an SD if you haven't yet (you'll probably need the extra room anyway), and back up your entire ext2/3 partition before you add the SDK repo. (Oh, and if you're not scared, you're crazy. Just so you know. :cool:) The GTK hello-world example in waf works fine, so I know Vala is working; as seen in my post above, I don't quite have it building what I want to build, but I think my trouble is platform-irrelevant. |
Re: Vala for Maemo development
I just tried out something much simpler: installing in deblet. It's chrooted already, so I could keep the systems separate.
I just finished testing this basic sample: http://live.gnome.org/Vala/BasicSample and it compiled in 12.260s on my tablet, to a final binary. To generate the C and header file it took 10.364s So, yes, C is considerably faster, but I'd call 12 seconds acceptable! I'm going to have to try out some projects that are more complex and see how it scales... More info: I tried building the Hildon sample on the same page; it wouldn't build, it doesn't seem to like either Gtk or Hildon packages. I have to surf around in the VAPI files and see if they're there or not. |
Re: Vala for Maemo development
Quote:
EDIT: Removing mentions of X in src/wscript should be enough. Updated the source - removed X. At the old place: http://www.internettablettalk.com/fo...&postcount=122 |
Re: Vala for Maemo development
I tried something like that, but it seemed to break worse. Like I said, I think I did something wrong. Maybe time for another go at it, though, now I know I was at least apparently on the right track...
|
Re: Vala for Maemo development
You just need to run
./waf configure ./waf build (or just ./waf) in the root dir of the project :) |
Re: Vala for Maemo development
Vala 0.4.0 was released some days ago. Has the following new things/changes:
Some things i discovered: They apparently rushed Vala 0.4 without updating all VAPIs with their new syntax additions (which seem to be required) (or maybe they didn't intend to update them all :)). So if you happen across an error message in the C compile stage that says something about not declared something_construct, be sure to add [CCode (has_construct_function = false)] right above the class constructor in the vapi file. I don't know which ones don't have constructor, so better fix them on sight :) For instance Hildon.Window was without one, so it should be fixed like this in the vapi: Code:
[CCode (cheader_filename = "hildon/hildon.h")]Also be wary of their fix for the UIManager's new_merge_id - doesn't seem to work as intended (or at all :) Patches upstream are probably encouraged. |
Re: Vala for Maemo development
Quote:
Now for the bad part - the plug-in installs, but is currently broken for me. :( |
Re: Vala for Maemo development
BTW, since you opened this thread - MonoDevelop 2.0 is in beta now. Vala completion doesn't work reliably yet, but the editor is quite stable.
|
Re: Vala for Maemo development
|
Re: Vala for Maemo development
Monodevelop 2.0 beta 2. Has packages for Debian/Unstable now.
http://monodevelop.com/Download/Rele...lop_2.0_Beta_2 http://monodevelop.com/Download |
| All times are GMT. The time now is 17:57. |
vBulletin® Version 3.8.8