Ruby System Environment - Installing the Qt Library

Dear developers!

I have been trying to use the qt4 library with ruby but I am having
problems to install it. It seems that there are many tools for
controlling the ruby system. The ones I used are rvm, gem, and bundler.
Am I doing something wrong, or is there some secret how to best deal
with ruby dependencies?

When I try to run this basic example about qt with ruby:

require ‘Qt’

app = Qt::Application.new (ARGV)

hello = Qt::PushButton.new (‘Hello World!’)

hello.resize (100,30)

hello.show()

app.exec()

I get:

/home/mike/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in
require': cannot load such file -- Qt (LoadError) from /home/mike/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:inrequire’
from Main.rb:1:in `’

gem search qt

finds the package qtruby4

but

gem install qtruby4

gives:

ERROR: Could not find a valid gem ‘qtruby4’ (>= 0) in any repository

Please help!

rdale used to be in charge of the qt bindings

I don’t know if he still is

You can find one or two projects on github that maintain bindings.

https://github.com/ryanmelt/qtbindings/

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs