Vala and Genie programming
Thanks Mark.
Unfortunately I have a full HD install. Ok , with a little patience and luck I try to compile packages.
Let me know one thing. When I launch ./configure the gtk+-2.16.1 i got this warning :
Requested 'glib-2.0 >= 2.19.7 but version of Glib is 2.14.2
Requested 'Pango >= 1.20 but version of 'Pango is 1.18.3
Requested 'cairo >= 1.6 but version of Glib is 1.5.12
I checked in my /usr/lib for libglib version and I found 2 version :
1. libglib-2.0.so.0.1400.2 2009/05/11 16.10.51
2. libglib-2.0.so.0.2000.1 2009/05/11 17.57.40
I remembered I have already installed a new version of glib and I thought the system replaced the newer over the older.
How can set things right so that the system see only the x.2000.1 lib
before to proceed ?
Unfortunately I have a full HD install. Ok , with a little patience and luck I try to compile packages.
Let me know one thing. When I launch ./configure the gtk+-2.16.1 i got this warning :
Requested 'glib-2.0 >= 2.19.7 but version of Glib is 2.14.2
Requested 'Pango >= 1.20 but version of 'Pango is 1.18.3
Requested 'cairo >= 1.6 but version of Glib is 1.5.12
I checked in my /usr/lib for libglib version and I found 2 version :
1. libglib-2.0.so.0.1400.2 2009/05/11 16.10.51
2. libglib-2.0.so.0.2000.1 2009/05/11 17.57.40
I remembered I have already installed a new version of glib and I thought the system replaced the newer over the older.
How can set things right so that the system see only the x.2000.1 lib
before to proceed ?
I think you installed a PET.
I think, it might just include the "runtime" (shared object) files, like /usr/lib/*.so.
But to compile, you also need the *.la or *.a files, and an entry for pkgconfig in /usr/lib/pkgconfig/. And the headers in /usr/include/.
This means, you also must install the DEV.pet of that Glib if available, or compile it yourself, to get those files.
Mark
I think, it might just include the "runtime" (shared object) files, like /usr/lib/*.so.
But to compile, you also need the *.la or *.a files, and an entry for pkgconfig in /usr/lib/pkgconfig/. And the headers in /usr/include/.
This means, you also must install the DEV.pet of that Glib if available, or compile it yourself, to get those files.
Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]
- gposil
- Posts: 1300
- Joined: Mon 06 Apr 2009, 10:00
- Location: Stanthorpe (The Granite Belt), QLD, Australia
- Contact:
Thought i'd see what all the fuss was about with vala/genie so installed all Mark's files and this is what I get when I try to compile HelloWorld.gs
Any cluesIn file included from /usr/include/gtk-2.0/gdk/gdkcairo.h:23, from /usr/include/gtk-2.0/gdk/gdk.h:30, from /usr/include/gtk-2.0/gtk/gtk.h:31, from /root/Test/main.vala.c:4: /usr/include/gtk-2.0/gdk/gdkcolor.h:30:19: error: cairo.h: No such file or directory In file included from /usr/include/gtk-2.0/gdk/gdkcolor.h:31, from /usr/include/gtk-2.0/gdk/gdkcairo.h:23, from /usr/include/gtk-2.0/gdk/gdk.h:30, from /usr/include/gtk-2.0/gtk/gtk.h:31, from /root/Test/main.vala.c:4: /usr/include/gtk-2.0/gdk/gdktypes.h:51:23: error: gdkconfig.h: No such file or directory In file included from /usr/include/gtk-2.0/gdk/gdkcairo.h:25, from /usr/include/gtk-2.0/gdk/gdk.h:30, from /usr/include/gtk-2.0/gtk/gtk.h:31, from /root/Test/main.vala.c:4: /usr/include/pango-1.0/pango/pangocairo.h:60: error: expected ')' before '*' token /usr/include/pango-1.0/pango/pangocairo.h:71: error: expected ')' before 'fonttype' /usr/include/pango-1.0/pango/pangocairo.h:73: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'pango_cairo_font_map_get_font_type' /usr/include/pango-1.0/pango/pangocairo.h:85: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token /usr/include/pango-1.0/pango/pangocairo.h:89: error: expected ')' before '*' token /usr/include/pango-1.0/pango/pangocairo.h:93: error: expected ';', ',' or ')' before '*' token /usr/include/pango-1.0/pango/pangocairo.h:94: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token /usr/include/pango-1.0/pango/pangocairo.h:101: error: expected declaration specifiers or '...' before 'PangoCairoShapeRendererFunc' /usr/include/pango-1.0/pango/pangocairo.h:104: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'pango_cairo_context_get_shape_renderer' /usr/include/pango-1.0/pango/pangocairo.h:109: error: expected ')' before '*' token /usr/include/pango-1.0/pango/pangocairo.h:110: error: expected ')' before '*' token /usr/include/pango-1.0/pango/pangocairo.h:116: error: expected ')' before '*' token /usr/include/pango-1.0/pango/pangocairo.h:119: error: expected ')' before '*' token /usr/include/pango-1.0/pango/pangocairo.h:121: error: expected ')' before '*' token /usr/include/pango-1.0/pango/pangocairo.h:124: error: expected ')' before '*' token /usr/include/pango-1.0/pango/pangocairo.h:133: error: expected ')' before '*' token /usr/include/pango-1.0/pango/pangocairo.h:136: error: expected ')' before '*' token /usr/include/pango-1.0/pango/pangocairo.h:138: error: expected ')' before '*' token /usr/include/pango-1.0/pango/pangocairo.h:141: error: expected ')' before '*' token In file included from /usr/include/gtk-2.0/gdk/gdk.h:30, from /usr/include/gtk-2.0/gtk/gtk.h:31, from /root/Test/main.vala.c:4: /usr/include/gtk-2.0/gdk/gdkcairo.h:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token /usr/include/gtk-2.0/gdk/gdkcairo.h:31: error: expected ')' before '*' token /usr/include/gtk-2.0/gdk/gdkcairo.h:33: error: expected ')' before '*' token /usr/include/gtk-2.0/gdk/gdkcairo.h:37: error: expected ')' before '*' token /usr/include/gtk-2.0/gdk/gdkcairo.h:42: error: expected ')' before '*' token /usr/include/gtk-2.0/gdk/gdkcairo.h:44: error: expected ')' before '*' token In file included from /usr/include/gtk-2.0/gdk/gdk.h:35, from /usr/include/gtk-2.0/gtk/gtk.h:31, from /root/Test/main.vala.c:4: /usr/include/gtk-2.0/gdk/gdkdrawable.h:196: error: expected specifier-qualifier-list before 'cairo_surface_t' In file included from /usr/include/gtk-2.0/gdk/gdk.h:50, from /usr/include/gtk-2.0/gtk/gtk.h:31, from /root/Test/main.vala.c:4: /usr/include/gtk-2.0/gdk/gdkscreen.h:51: error: expected specifier-qualifier-list before 'cairo_font_options_t' /usr/include/gtk-2.0/gdk/gdkscreen.h:107: error: expected ';', ',' or ')' before '*' token /usr/include/gtk-2.0/gdk/gdkscreen.h:108: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token In file included from /usr/include/gtk-2.0/gtk/gtkprintoperation.h:31, from /usr/include/gtk-2.0/gtk/gtk.h:137, from /root/Test/main.vala.c:4: /usr/include/gtk-2.0/gtk/gtkprintcontext.h:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token /usr/include/gtk-2.0/gtk/gtkprintcontext.h:56: error: expected declaration specifiers or '...' before 'cairo_t' error: cc exited with status 256 Process return 256 execution time: 3.28318 s
[img]http://gposil.netne.net/images/tlp80.gif[/img] [url=http://www.dpup.org][b]Dpup Home[/b][/url]
Hi MU,
I thought about the situation.
let's go back one step. I am very motivated to work with puppy as a developer. ( that is my job).
I don't think I would like to learn script language. I must be as productive as possible and so this brings me to a couple of languages ( c# or vala/genie).
Probably I am early with the new releases of puppy in order to a new developer environment rightly set up.
So Now. I have 2 choises:
1. Stop and wait the next release of puppy where I should find the new developer environment.
2. Ask Your help ( I mean the puppy team ) to align the current dev-env to the required evn to work with c# or vala/genie
In the second case I have to consider for update/upgrade procedure. I mean what would be the procedure to update/upgrade from current release to the next, considering that I have a full HD install.
If is there a procedure that automatically update all the system from the current to the next release, all is Ok.
If Puppy consider the new release a stand alone release and I have to move by myself all my work and tweekings, than I have to wait.
Any suggestion is welcome.
I thought about the situation.
let's go back one step. I am very motivated to work with puppy as a developer. ( that is my job).
I don't think I would like to learn script language. I must be as productive as possible and so this brings me to a couple of languages ( c# or vala/genie).
Probably I am early with the new releases of puppy in order to a new developer environment rightly set up.
So Now. I have 2 choises:
1. Stop and wait the next release of puppy where I should find the new developer environment.
2. Ask Your help ( I mean the puppy team ) to align the current dev-env to the required evn to work with c# or vala/genie
In the second case I have to consider for update/upgrade procedure. I mean what would be the procedure to update/upgrade from current release to the next, considering that I have a full HD install.
If is there a procedure that automatically update all the system from the current to the next release, all is Ok.
If Puppy consider the new release a stand alone release and I have to move by myself all my work and tweekings, than I have to wait.
Any suggestion is welcome.
- Lobster
- Official Crustacean
- Posts: 15522
- Joined: Wed 04 May 2005, 06:06
- Location: Paradox Realm
- Contact:
make sure you compile like soAny clues
Code: Select all
#valac --pkg=gtk+-2.0 hw.gs
Puppy 4.2.1 seems to have this
Which Puppy are you using?
make sure you have devx and use boot manager to load when you boot
hope that helps
Hi Guys,
Just checking in. I've been following this thread and been experimenting with the Glade interface in puppy.
I also loaded Glade 2 and compiled a small app, at this point very pleased with myself. (Trying to learn C++)
I then downloaded the valide vala etc and had a very flaky system thereafter. This on Puppy421. Lots of apps just shutdown when scroll bars clicked on etc.
I've uninstalled everything but there must have been an interaction somewhere. I've lost the right click, open with Geany. the links and program are there it's just that Rox will not open it.
Geanie looks very interesting but as you say there is scant documentation.
It would probably suit me better as i programmed in Visual Basic when it first came out. That was when it used 'basic' basic syntax.
I'll keep watching, keep up the good work.
Just checking in. I've been following this thread and been experimenting with the Glade interface in puppy.
I also loaded Glade 2 and compiled a small app, at this point very pleased with myself. (Trying to learn C++)
I then downloaded the valide vala etc and had a very flaky system thereafter. This on Puppy421. Lots of apps just shutdown when scroll bars clicked on etc.
I've uninstalled everything but there must have been an interaction somewhere. I've lost the right click, open with Geany. the links and program are there it's just that Rox will not open it.
Geanie looks very interesting but as you say there is scant documentation.
It would probably suit me better as i programmed in Visual Basic when it first came out. That was when it used 'basic' basic syntax.
I'll keep watching, keep up the good work.
Rob
-
The moment after you press "Post" is the moment you actually see the typso 8)
-
The moment after you press "Post" is the moment you actually see the typso 8)
- BarryK
- Puppy Master
- Posts: 9392
- Joined: Mon 09 May 2005, 09:23
- Location: Perth, Western Australia
- Contact:
Well, you could just run the latest Woof-build, alpha8 or the next alpha9 off the live-CD. The 'devx' is available and it has everything for Vala/Genie ready to go.gpnet wrote:Hi MU,
I thought about the situation.
let's go back one step. I am very motivated to work with puppy as a developer. ( that is my job).
I don't think I would like to learn script language. I must be as productive as possible and so this brings me to a couple of languages ( c# or vala/genie).
Probably I am early with the new releases of puppy in order to a new developer environment rightly set up.
So Now. I have 2 choises:
1. Stop and wait the next release of puppy where I should find the new developer environment.
2. Ask Your help ( I mean the puppy team ) to align the current dev-env to the required evn to work with c# or vala/genie
In the second case I have to consider for update/upgrade procedure. I mean what would be the procedure to update/upgrade from current release to the next, considering that I have a full HD install.
If is there a procedure that automatically update all the system from the current to the next release, all is Ok.
If Puppy consider the new release a stand alone release and I have to move by myself all my work and tweekings, than I have to wait.
Any suggestion is welcome.
Later on you could install to hd, updating the current installation -- probably when I get it to a late beta or final would be best.
[url]https://bkhome.org/news/[/url]
- gposil
- Posts: 1300
- Joined: Mon 06 Apr 2009, 10:00
- Location: Stanthorpe (The Granite Belt), QLD, Australia
- Contact:
Lobster
Running full hdd install 4.1.2 with every conceivable compiler known to man and dog...checked further vala will not run with same versions of cairo and pango as my other dev software...Qt4, Lazarus/FPC and Mono so i'll give it a miss until I get around to isolating vala libraries from system.
Running full hdd install 4.1.2 with every conceivable compiler known to man and dog...checked further vala will not run with same versions of cairo and pango as my other dev software...Qt4, Lazarus/FPC and Mono so i'll give it a miss until I get around to isolating vala libraries from system.
[img]http://gposil.netne.net/images/tlp80.gif[/img] [url=http://www.dpup.org][b]Dpup Home[/b][/url]
- Lobster
- Official Crustacean
- Posts: 15522
- Joined: Wed 04 May 2005, 06:06
- Location: Paradox Realm
- Contact:
That is a lot of work . . .every conceivable compiler known to man and dog
My clues are not the best. This is in cutting edge for a reason. Maybe if MU has some time he will offer better clues . . .
Not being able to get a basic program working from the command line IS frustrating - it happened to me and it turned out there was a bug in Genie which got fed back to the Developers by Barry.
Barry has made a great choice with Vala support and MU is already providing usable Genie examples with his treeview, browser and pic viewer etc.
Thanks for having a look and better luck next time
Hello gposil,
I 'd look at Barry's suggestion to "gpnet". It makes sense and running live is always faster provided you have half decent hardware. Its only about 180M download including dev_x .
Just my 2c
Cheers.
I 'd look at Barry's suggestion to "gpnet". It makes sense and running live is always faster provided you have half decent hardware. Its only about 180M download including dev_x .
Just my 2c
Cheers.
Puppy Linux Blog - contact me for access
Hey folks,
Well I've been searching and searching for some Genie info around the web and it seems all the info is either here, on puppylinux.com or gnome.org. That's it.
One thing, my compiler is fine! That's a start...
I only know a little bash and gtkdialog, (enough to get me by ) and really want to know the best thing to do to give me a leg up (helping hand ) to learn Genie. Maybe take a long look at python?
I really want to learn this stuff. It is exciting!
I may reiterate this post on the LinuxQuestions.org forum in the programming section. It may attract some positive attention, and may even spread the word, and not only about Genie, Puppy too.
I have a small project in mind and have started on it, but, it may take me some time.
Thanks and Cheers.
Well I've been searching and searching for some Genie info around the web and it seems all the info is either here, on puppylinux.com or gnome.org. That's it.
One thing, my compiler is fine! That's a start...
I only know a little bash and gtkdialog, (enough to get me by ) and really want to know the best thing to do to give me a leg up (helping hand ) to learn Genie. Maybe take a long look at python?
I really want to learn this stuff. It is exciting!
I may reiterate this post on the LinuxQuestions.org forum in the programming section. It may attract some positive attention, and may even spread the word, and not only about Genie, Puppy too.
I have a small project in mind and have started on it, but, it may take me some time.
Thanks and Cheers.
Puppy Linux Blog - contact me for access
I posted on LinuxQuestions.org...
http://www.linuxquestions.org/questions ... ..-727795/
Hopefully it will attract some interest!
http://www.linuxquestions.org/questions ... ..-727795/
Hopefully it will attract some interest!
Puppy Linux Blog - contact me for access
- BarryK
- Puppy Master
- Posts: 9392
- Joined: Mon 09 May 2005, 09:23
- Location: Perth, Western Australia
- Contact:
Yeah, I have to get back into writing some docs. Well, it's a matter of learning it then documenting as I go.01micko wrote:Well I've been searching and searching for some Genie info around the web and it seems all the info is either here, on puppylinux.com or gnome.org. That's it.
I subscribe to the Vala mail list, and those guys do some brilliant stuff. The thing is though, they are experts, and what we need is ABC beginner's explanation and lots and lots of documentation and examples.
So, there is my http://puppylinux.com/genie, but also Jamie McCracken has a Genie intro page http://live.gnome.org/Genie. The author of ValaIDE is starting writing some Genie examples, and there is MU's excellent examples.
[url]https://bkhome.org/news/[/url]
You and me both.BarryK wrote: I subscribe to the Vala mail list, and those guys do some brilliant stuff. The thing is though, they are experts, and what we need is ABC beginner's explanation and lots and lots of documentation and examples.
Genie sounds like a very exciting prospect to a Python lover. But at the moment I don't really have much time to reverse engineer everything - and I'm not GObject savvy at all coming from a Windows background.
I hope to find some time at some stage to get a handle on it as I'd like to develop my own Puppy utilities etc..
Regards
Caleb