maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Cant find Ruby GTK anywhere? (https://talk.maemo.org/showthread.php?t=39797)

knewter 2010-01-12 21:19

Re: Cant find Ruby GTK anywhere?
 
Awesome news. I'm looking forward to it like you wouldn't believe. I'm actually on vacation this week and was hoping to get some ruby-gtk hacking going on the phone, so I'm curious how long you think it might be :) Thanks!

ironoxid 2010-01-12 23:10

Re: Cant find Ruby GTK anywhere?
 
I am absolutely interested :)

kaspernj 2010-01-13 10:02

Re: Cant find Ruby GTK anywhere?
 
Hi all.

I just finished setting up the repository for my Ruby-packages (I will try to upload them to the testing-devel repositories at a later time, when the packages are tested a bit more).

Create a new catalog on your phone and type in the following:
Name: kaspernj.org
Webaddress: http://maemorepo.kaspernj.org
Distribution: fremantle
Components: main

SSH to your phone, do a "apt-get update" and then "apt-cache search ruby".

To install Ruby with GTK and SQLite3:
apt-get install ruby ruby-gnome2-all ruby-sqlite3

Everything should now work as usual, when you are working with Ruby on your normal computer.

I would really appreciate, if you could give me some feedback. Bugs, extensions you want or whatever.

Happy hacking!

ironoxid 2010-01-13 23:53

Re: Cant find Ruby GTK anywhere?
 
Ty!!!
I'll try it on weekend! Yesterday I compiled ruby-gnome2-all and it works well. But, what about ruby-hildon? It exists?
Has anyone tried this before?
http://site.realitybites.eu/download/ruby-hildon-src

wmarone 2010-01-14 00:17

Re: Cant find Ruby GTK anywhere?
 
Quote:

Originally Posted by kaspernj (Post 461702)
Okay. I think I will compiled the whole thing myself and publish it. As I can see, not much of the current Ruby-packages are "optified".

They aren't, and desperately need to be.

Quote:

Why the hell didnt they make the root partiton bigger anyway? This optifi thing is ********...
Physical limitation. The fast NAND chip the OS is stored on is only 256MB in size, and bigger ones didn't appear until well after they started designing the N900.

Kaspernj how did you get ruby-hildon to build (also, where did you source it from?) And if you could, include ruby-glade as it makes designing at least a plain GTK gui very, very easy.

ironoxid 2010-01-14 00:29

Re: Cant find Ruby GTK anywhere?
 
Quote:

Originally Posted by wmarone (Post 469450)
Physical limitation. The fast NAND chip

Is this chip so fast (yes I've read /opt_problem)? But there's a real difference about common non-intensive applications?
I've ruby on rails installed so I moved and symlinked /usr/lib/ruby to /home/opt/ruby and it works well, not as server of course :D

About ruby-hildon there is a link (not tested by me) in my previous post.

knewter 2010-01-14 00:57

Re: Cant find Ruby GTK anywhere?
 
I'm installing these packages as we speak! And yeah, i'll probably try to make ruby-hildon behave, if it's functional. Thanks much. I'd put my vote in for ruby-glade as well, but I'm thrilled to have this for free. You rule.

wmarone 2010-01-14 01:15

Re: Cant find Ruby GTK anywhere?
 
Quote:

Originally Posted by ironoxid (Post 469463)
Is this chip so fast (yes I've read /opt_problem)? But there's a real difference about common non-intensive applications?
I've ruby on rails installed so I moved and symlinked /usr/lib/ruby to /home/opt/ruby and it works well, not as server of course :D

The chip is quite fast, as it is attached directly on top of the CPU and has a much faster interconnect. Applications that are part of the core OS and data stored on the root partition will be read significantly faster. The caveat to this is the chip is very low capacity.

By contrast, the 32GB eMMC gets about 14MB/s and my microSD card gets about 6MB/s. High capacity, but comparatively low speed.

Knewter: best of luck getting ruby-hildon to behave, I couldn't work out what the Makefile was trying to do. It looked like it belonged in some other suite or something.

kaspernj 2010-01-14 10:12

Re: Cant find Ruby GTK anywhere?
 
wmarone, why not use GtkBuilder to design GUI? Isnt Glade deprecated? I dont think it is being developed any more anymore... I actually thought that Glade was already in my packages, but I will look into it after lunch today.

GtkBuilder works very well. I will post an example after lunch as well, so you can see how to get started.

I have NOT been able to compile ruby-hildon... Sadly. But I will also give that another try, when I get the time. I havent been able to compile Revolution either, which we need to get access to the contacts, the calendar and so on. It looks like the evolution-libs used by Maemo are just too old for Revolution.


Right now I am also working on packaging PHP and PHP-GTK for all the PHP-devs who would like to write some code for the phone. I have been able to compile PHP with all the libs except ODBC and IMAP until now.

kaspernj 2010-01-14 13:08

Re: Cant find Ruby GTK anywhere?
 
Here is a GtkBuilder-example, which works with my build (GtkBuilder is almost like Glade).

class MyWindow
def initialize
@gui = Gtk::Builder.new
@gui.add_from_file("gui/win_main.ui")
@gui.connect_signals(){|handler|method(handler)}

@window = @gui.get_object("window")
@window.show
end

def on_window_destroy
Gtk::main_quit
end
end


All times are GMT. The time now is 13:29.

vBulletin® Version 3.8.8