Revision [52]
This is an old revision of GenieProgramming made by CrustyLobster on 2009-07-21 05:29:48.
Ok, here it goes again (seamonkey crashed :@. Now writing from the safety of my Geany). On the past few days i have been incursionating into the world of vala. I am absolutely and completely a noob, so all I will do is tell you how to install it and give you a few links that aren't so easy to find (randomness is on my side).
Installing Vala/Genie Compiler + Val(a)ide on puppy linux.
Step one: Installing Devx.
First of all, according to MU, you need to install devx_xxx.sfs (where xxx is your version number). For example, say i were using Puppy 4.2.1, the devx module i'd have to install would be devx_421.sfs . You can find them all altoghether here:
ftp://ftp.ibiblio.org/pub/linux/distributions/puppylinux/sfs_modules-4/
Installing a sfs is easy, don't worry. All you have to do is download it, check it's checksum with the md5sum command to avoid headaches, and after (or before, please yourself) you have compared it with the checksum the ftp gives, you have to place it in /mnt/home/.
Once that step is completed, you must go to Menu > System > Bootmanager > Load SFS, and ask it to load it at boot. When you reboot, you can open a console and type "make". If it says: "make: * No targets specified and no makefile found. Stop." you have successfully completed step one.
Step 2 :Install vala.
All you have to do is to install these three pet files:
http://dotpups.de/puppy4/dotpups/Programming/Vala/vala-0.7.0-i486.pet
http://dotpups.de/puppy4/dotpups/Programming/Vala/gtksourceview-2.4.2.pe...
http://dotpups.de/puppy4/dotpups/Programming/Vala/valide-0.4-1-i686-svn-...
After that is done, you are all ready to work with vala. You can edit your files in a text editor, and save them with .gs extension for genie, and .vala extension for vala. Once the file has been saved, you can compile it with "valac file.gs" or "valac file.vala"
That will create an executable file in the current working directory.
Extra juice:
Vala tutorial with source examples: (A must check.)
http://live.gnome.org/Vala#head-9c728d151a2a0483d4f3b5837e5b545df9d8499d
Horribly complex tutorial: (sorry)
http://live.gnome.org/Vala/Tutorial
Valadoc:
http://live.gnome.org/Valadoc
C reference: (somewhat similar to vala, i think).
http://sistemas.itlp.edu.mx/tutoriales/tutorc/index.htm