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)

Bundyo 2008-08-27 18:38

Re: Vala for Maemo development
 
Vala needs C compiler, you won't get away with that :) Also it will be probably too slow on the tablet (it is slowish in the emulator too). Monodevelop is easier to get running on openSUSE for sure, probably best for you is to try harder with Valable and compile in scratchbox.

BoxOfSnoo 2008-08-27 19:00

Re: Vala for Maemo development
 
Try harder... Let me clarify. I have no idea where to GET it.

Launchpad is like Sourceforge without the files. There's just a bunch of announcements, developer's names and so on.

Where should I look?

Bundyo 2008-08-27 19:17

Re: Vala for Maemo development
 
I think Andrew should be answering this one :)

lcuk 2008-08-27 19:33

Re: Vala for Maemo development
 
Bundyo,
Compilation time on the tablet for even the barest hello world (in performance mode) was over 30 seconds.

I did not go further.

for reference, each module in liqbase takes about 3-5 seconds for raw c.

c++ modules of similar length take about 20 seconds

Bundyo 2008-08-27 19:39

Re: Vala for Maemo development
 
I was suspecting numbers like these :(

BoxOfSnoo 2008-08-27 19:41

Re: Vala for Maemo development
 
Well my desktop compilation time has been so far 2 full days for 0 lines of code. I think the tablet wins! :D

Jaffa 2008-08-28 15:44

Re: Vala for Maemo development
 
Right, to get Valable:
  1. Install Vala
  2. Install ctags
  3. Get Valable: bzr branch lp:valable - this should give you a 'valable' directory.
  4. Open Eclipse
  5. Select File > Import... > General > Existing Projects into Workspace
  6. Set root directory to the 'valable' directory from step 2.
  7. Project should compile :-)
  8. Right click on the project and select Run as > Eclipse application - a new Eclipse should open
  9. Select File > New > Project... > Vala > Vala Project, enter some details, and create a new Vala file in it.

I've not yet looked at exporting the plugin for installation into Eclipse - it's a while off that yet. Let me know if this doesn't work.

BoxOfSnoo 2008-08-28 16:01

Re: Vala for Maemo development
 
Quote:

Originally Posted by Jaffa (Post 218548)
Right, to get Valable:

bzr branch lp:valable - this should give you a 'valable' directory.

Note for others :) : this is a command you have to type: you may need bzr installed also, it's a program similar to cvs or svn.

...sorry, it may be blindingly obvious but took me a while to realize this.

Quote:

Originally Posted by Jaffa (Post 218548)
Project should compile :-)

Right now I have 22 errors and 2 warnings. Obviously I am missing some libraries (Where is Scanner located?).

Great help so far! Getting the code was the first real roadblock.

EDIT: I needed to do a couple of things: 1) make sure I had Sun's Java installed, not just OpenJDK 2) Make sure the Workspace properties are set to compiler compliance level of 6.0.

And so far, it works! Now I have to get cracking I suppose.

Jaffa 2008-08-28 16:35

Re: Vala for Maemo development
 
Quote:

Originally Posted by BoxOfSnoo (Post 218553)
Note for others :) : this is a command you have to type: you may need bzr installed also, it's a program similar to cvs or svn.

Yup.

Quote:

Right now I have 22 errors and 2 warnings. Obviously I am missing some libraries (Where is Scanner located?).
As you found, Java 6 :-)

Quote:

EDIT: I needed to do a couple of things: 1) make sure I had Sun's Java installed, not just OpenJDK 2) Make sure the Workspace properties are set to compiler compliance level of 6.0.

And so far, it works! Now I have to get cracking I suppose.
Excellent!

Benson 2008-09-03 23:22

Re: Vala for Maemo development
 
Quote:

Originally Posted by Bundyo (Post 207632)
I don't do lots :) I have two small apps, veeery small :). I'm foreign to GTK too and i keep meeting with the need of a X VAPI. However, this can't be done without a simple additional parser to at least specify which function is in which header (since vapigen doesn't bother to specify it). So I'm just beginning :) Maybe I'll have something to talk about in September, but i can't tell for sure now. :(

EDIT: Forgot to tell i'm all for a Vala talk and how it can help the tablet development evolve (not by me though :)).

Hmmm... Any progress on the X VAPI? The hostwin source you sent me seems to depend on it, so presumably you've got something. Might it be tar-worthy?

(And I'm all for a Vala talk, too. I won't be there, though, so I hope it gets videoed, or at least slides posted and maybe audio recordings.)


All times are GMT. The time now is 17:57.

vBulletin® Version 3.8.8