The time now is Thu 23 May 2013, 06:26
All times are UTC - 4 |
|
Page 6 of 35 [514 Posts] |
Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8, ..., 33, 34, 35 Next |
| Author |
Message |
BarryK
Puppy Master

Joined: 09 May 2005 Posts: 6860 Location: Perth, Western Australia
|
Posted: Wed 25 Mar 2009, 09:09 Post subject:
|
|
Lobster,
for the hello-gtk.gs, do you have a carriage-return on the last line?
I just tested, running Intrepid Puppy alpha3, devx loaded, I copied the example hello-gtk from my web page, pasted it into a file, compiled it with valac, it works.
Hmm, I took the carriage-return off the last line, it still compiles.
I have copied the code you posted to this thread, that compiles too.
I'm using Vala 0.5.7.
_________________ http://bkhome.org/blog2/
|
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15109 Location: Paradox Realm
|
Posted: Wed 25 Mar 2009, 09:18 Post subject:
|
|
Many thanks Barry,
I am awaiting a page on GTK on your Genie pages
I have cautiously added Valide
and got a working hello world
There are good example GTK for Vala but not Genie on the Vala pages
Mark is already using Glade but I am still working up to crawl status
| Quote: | Lobster,
for the hello-gtk.gs, do you have a carriage-return on the last line? |
Yes tried all that but it just must be that!
thanks will try again . . .
edit:
no luck and leafpad is not saving - valide strikes again . . .
gonna try another computer . .
_________________ Puppy WIKI
|
|
Back to top
|
|
 |
DMcCunney
Joined: 02 Feb 2009 Posts: 894
|
Posted: Wed 25 Mar 2009, 10:28 Post subject:
|
|
| Lobster wrote: | I instead installed medit
that seems OK and supports Vala - I have written to the developer about Genie support |
AFAIK, Geany supports Vala.
File type support is defined in a file called filetypes.<name>, where <name> is the language name.
There is a filetypes.vala file in /usr/share/geany
______
Dennis
|
|
Back to top
|
|
 |
aragon
Joined: 15 Oct 2007 Posts: 1690 Location: Germany
|
Posted: Wed 25 Mar 2009, 11:10 Post subject:
|
|
@ lobster
attached is the genie.lang from here:
http://bugzilla.gnome.org/show_bug.cgi?id=576141
if you're using my medit-package, extract it to
| Code: | | /usr/share/moo/language-specs |
and there you are.
aragon
| Description |
|

Download |
| Filename |
genie.lang_medit.tar.gz |
| Filesize |
2.09 KB |
| Downloaded |
340 Time(s) |
_________________ PUPPY SEARCH: http://wellminded.com/puppy/pupsearch.html
|
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15109 Location: Paradox Realm
|
Posted: Wed 25 Mar 2009, 13:15 Post subject:
|
|
Thanks guys
Thanks aragon
how about a free movie . . . violence and stuff . . . Blank
http://www.webtvwire.com/blank-movie-director-foregoes-hollywood-for-p2p-movie-legally-available-on-bittorrent/
_________________ Puppy WIKI
|
|
Back to top
|
|
 |
seeker
Joined: 26 Nov 2008 Posts: 89 Location: Indiana, USA
|
Posted: Thu 26 Mar 2009, 16:14 Post subject:
|
|
Lobster,
I just tried to compile hello-gtk.gs with Genie and got the same error you had. I noticed the line 'add (button)' was indented with two tab characters so I replaced the tabs with 8 spaces. It didn't compile so I added a blank line , without any indentation, at the end of the code and then it compiled. Using Vala 0.5.7 and Puppy 4.1.2 frugal.
Seeker
|
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15109 Location: Paradox Realm
|
Posted: Fri 27 Mar 2009, 05:25 Post subject:
|
|
Thanks seeker
that is good advice
(didn't seem to help)
The Valide editor seems to be the source of serious problems for me
- or maybe it is the required libraries for gtk compiling . . .
- it effects other editors and even Seamonkey, so that invoking save as crashes the program you are activating save as and sometimes even save from
this effects things too drastically to use it
and I must for now stick with Geany editor or Medit editor
I have noticed this on three pristine installs of Puppy
for now I will be using
Puppy 4.12
and the devxx
vala-05.7.pet
libgee-20081125-i486.pet
medit-0.9.4.pet
genie.lang_medit.tar.gz
Valide is however potentially an excellent IDE for Vala/Genie
so if anyone can replicate this behaviour and find out what and why
that would be great
_________________ Puppy WIKI
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Fri 27 Mar 2009, 11:36 Post subject:
|
|
| Quote: | - it effects other editors and even Seamonkey, so that invoking save as crashes the program you are activating save as and sometimes even save from
this effects things too drastically to use it |
Maybe I know the reason.
When you used the IDE, delete the file:
/root/.recently-used.xbel
It seems that Puppys programs use an older syntax in it, while new programs like Valide use a new syntax. It is a XML file, that you can look at in an editor.
It stores the "recently used" entries in the Gtk filedialog, so there is no problem to delete it.
Puppys libraries slowly start to get outdated, such issues might happen more often in future, using new programs.
Mark
_________________ my recommended links
|
|
Back to top
|
|
 |
Mr. Maxwell

Joined: 30 Aug 2008 Posts: 215 Location: Nebraska, USA
|
Posted: Fri 27 Mar 2009, 23:00 Post subject:
|
|
I have medit and the genie launguage specs package installed but how do I turn on the genie syntax highlighting?
EDIT:
Never mind, a couple reboots later it works.
_________________ Super amazing game!
|
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15109 Location: Paradox Realm
|
Posted: Fri 27 Mar 2009, 23:53 Post subject:
|
|
Great tip MU - makes sense - it has been difficult
but hey this is cutting edge . . .
| Quote: | | Never mind, a couple reboots later it works. |
. . . we await your first programming examples
_________________ Puppy WIKI
|
|
Back to top
|
|
 |
Mr. Maxwell

Joined: 30 Aug 2008 Posts: 215 Location: Nebraska, USA
|
Posted: Sat 28 Mar 2009, 09:49 Post subject:
|
|
This should be an easy question, how do I use a window I made with Glade in Genie?
What about square roots and exponents?
_________________ Super amazing game!
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Sat 28 Mar 2009, 10:09 Post subject:
|
|
full example: glade window in Genie:
http://www.murga-linux.com/puppy/viewtopic.php?p=286241#286241
A simpler example I attached here:
http://www.murga-linux.com/puppy/viewtopic.php?t=39560&start=30
Mark
_________________ my recommended links
|
|
Back to top
|
|
 |
Mr. Maxwell

Joined: 30 Aug 2008 Posts: 215 Location: Nebraska, USA
|
Posted: Sat 28 Mar 2009, 10:16 Post subject:
|
|
Thanks I'll take a look at it.
But now when I try to compile my program I get this error message:
| Code: | test.gs:5.22-5.36: error: The name `Gee' does not exist in the context of `main'
var my_list = new list of int |
My guess says that is caused by an error with Genie and Geelib. Any ideas on how to fix this?
_________________ Super amazing game!
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Sat 28 Mar 2009, 10:42 Post subject:
|
|
install:
http://distro.ibiblio.org/pub/linux/distributions/puppylinux/pet_packages-woof/libgee-0.1.5.pet
http://distro.ibiblio.org/pub/linux/distributions/puppylinux/pet_packages-woof/libgee_DEV-0.1.5.pet
Then in the Valaide, go to the options, and add as library there:
gee-1.0
On my system, the ide crashes again, if I go to the options
That worked right after I had installed it.
So I added with an editor:
to the file:
/root/valide/gee1/gee1.vide
If your project has a different name and location, use the .vide file of your project.
If someone compiles by hand, use such a command:
valac --pkg=gee-1.0 hello.gs
Barry explains it here:
http://puppylinux.com/genie/datatypes.htm
Mark
_________________ my recommended links
|
|
Back to top
|
|
 |
Mr. Maxwell

Joined: 30 Aug 2008 Posts: 215 Location: Nebraska, USA
|
Posted: Sat 28 Mar 2009, 11:03 Post subject:
|
|
Thanks! The "valac --pkg=gee-1.0 hello.gs" is what I needed. The IDE broke my puppy so I can't use it.
_________________ Super amazing game!
|
|
Back to top
|
|
 |
|
|
Page 6 of 35 [514 Posts] |
Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8, ..., 33, 34, 35 Next |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|