QtRuby install


#1

I’d like to evaluate using Qt with Ruby. I’ve downloaded and installed
Qt from http://www.trolltech.com. It’s a monster … 174MB to install.
I’ve also downloaded qt4-qtruby-1.4.2.tar.gz from
http://rubyforge.org/projects/korundum/. However, I can’t seem to find
any documentation that says how I’m supposed to install that. Any
hints or links to a web page that explains it would be much
appreciated!


#2

This is what I have met on My Mac(Tiger 10.4.5).
I compiled Qt successfull, but when I try to install qt4-qtruby,
‘./configure’ failed, It said that ‘Can not find Qt >= 4.1 installed,
make sure compile Qt with -debug’. And I recompile Qt with ‘./configure
-debug’, qt4-qtruby still can’t insatlled:(


#3

The following discussion
http://rubyforge.org/forum/forum.php?thread_id=5197&forum_id=723

QTRuby Forum
http://rubyforge.org/forum/?group_id=181

Ryutaro Amano
removed_email_address@domain.invalid


#4

When configuring qtruby 4, make sure you specify where qt is located
and that you’re using a mac.

./configure --enable-mac --with-qt-libraries=/usr/local/Trolltech/
Qt-4.1.1/lib

you may also want to use --with-qt-includes and --with-qt-dir

The configuration options should be very similiar to using QtRuby for
Qt3 which is in the book as well as via some links from my blog. See
the PragProg site for the QtRuby book for links.


#5

On 2/26/06, Caleb T. removed_email_address@domain.invalid wrote:

the PragProg site for the QtRuby book for links.
How about instructions for installing QtRuby and either Qt 3 or 4
under windows? Do you have a URL that describes that?


#6

I would be interested in trying it out on windows :slight_smile:


#7

How about instructions for installing QtRuby and either Qt 3 or 4
under windows? Do you have a URL that describes that?

QtRuby for Qt3 won’t work on Windows out of the box. There’s no GPL
version of Qt3 available for windows anyway, though.

For Qt4, some work has been done to make it run on Windows. I’ve
never tried it though. Maybe I’ll play with it a little later this
afternoon.

Caleb


#8

So would I. On my Win32 platform I was looking to implement a Ruby
application using Qt. I had to resort to using Ruby 1.6.8 with a
binary
distribution of Qt built for Win32. Of course it was the old Qt 2.3 NC
since (as folks have pointed out) Qt didn’t have a NC Win32 release
for
Qt 3.

I plan to play with it a bit this week, but it’s unfamiliar territory
for me as all of my development during my professional career has
been on Linux/Unix and the Mac. The links earlier in the thread
point to some progress that has been made on the Win32 side, and from
my understanding QtRuby works great with Qt4 on Windows with a little
massaging. I’m just not sure if that has been incorporated into the
QtRuby code yet or not.

If anyone beats me to it and has patches or some walkthroughs on
making it work, I’d be grateful if you’d share

Caleb


#9

Nola S. wrote:

I would be interested in trying it out on windows :slight_smile:

So would I. On my Win32 platform I was looking to implement a Ruby
application using Qt. I had to resort to using Ruby 1.6.8 with a binary
distribution of Qt built for Win32. Of course it was the old Qt 2.3 NC
since (as folks have pointed out) Qt didn’t have a NC Win32 release for
Qt 3.


#10

Please do so. I’m tring to install qtruby on windows for 3 weeks now and
i don’t know what to do. I’d like to program a profesional looking
application and it seems that qt is the only option that includes GUI
code designer (with signals etc). I did try wxruby but couldn’t find a
helper application that would allow this. (the closes came ‘Farpy’ but
it is very poor).
Please help me someone or if anyone knows something like Trolltech’s
Designer for some other profy-looking Ruby GUI library…

Thanks a lot!
Hoornet

I plan to play with it a bit this week, but it’s unfamiliar territory
for me as all of my development during my professional career has
been on Linux/Unix and the Mac. The links earlier in the thread
point to some progress that has been made on the Win32 side, and from
my understanding QtRuby works great with Qt4 on Windows with a little
massaging. I’m just not sure if that has been incorporated into the
QtRuby code yet or not.

If anyone beats me to it and has patches or some walkthroughs on
making it work, I’d be grateful if you’d share

Caleb


#11

On Fri, 2007-02-23 at 01:22 +0900, Hoor Net wrote:

Please do so. I’m tring to install qtruby on windows for 3 weeks now and
i don’t know what to do. I’d like to program a profesional looking
application and it seems that qt is the only option that includes GUI
code designer (with signals etc). I did try wxruby but couldn’t find a
helper application that would allow this. (the closes came ‘Farpy’ but
it is very poor).
Please help me someone or if anyone knows something like Trolltech’s
Designer for some other profy-looking Ruby GUI library…

This has been discussed over and over again, i believe, but I would
repeat anyways, i think you should evaluate gtk bindings for Ruby. It
has got a tool called glade2 for designing UIs interactively(connecting
callbacks and stuff). Installing gtk-ruby on Windows is much simpler.


#12

it seems that qt is the only option that includes GUI
code designer (with signals etc). I did try wxruby but couldn’t find a
helper application that would allow this.

Just for the record, you can use any of the numerous free and commercial
RAD designers for wxwidgets with wxRuby:

http://en.wikipedia.org/wiki/WxWidgets#IDE_and_RAD_tools

Save the GUI design as an XRC (xml) file, and then you can load it into
ruby - see the xrc sample in samples distributed with wxruby.

alex