Qt4-QtRuby installer for Microsoft Windows

(Difference between revisions)
Jump to: navigation, search
m
m
Line 10: Line 10:
 
others) is a very useful extension allowing you to use [http://trolltech.com/products/qt/ Qt] from within the
 
others) is a very useful extension allowing you to use [http://trolltech.com/products/qt/ Qt] from within the
 
[http://www.ruby-lang.org/ Ruby] programming language.
 
[http://www.ruby-lang.org/ Ruby] programming language.
 +
Note there is a Microsoft Windows32 Gem for installing Qt4-QtRuby on the [http://rubyforge.org/projects/korundum/ Korundum]
 +
project page. You don't need this installer if the Gem works for you.
 +
 
The installer requires [http://ftp.ntua.gr/pub/X11/Qt/qt/source/qt-win-opensource-4.3.0-mingw.exe Qt-4.3.0 Open Source Edition]
 
The installer requires [http://ftp.ntua.gr/pub/X11/Qt/qt/source/qt-win-opensource-4.3.0-mingw.exe Qt-4.3.0 Open Source Edition]
 
and [http://rubyforge.org/frs/download.php/18566/ruby186-25.exe Ruby 1.8.6-25] for Microsoft Windows to be installed first.
 
and [http://rubyforge.org/frs/download.php/18566/ruby186-25.exe Ruby 1.8.6-25] for Microsoft Windows to be installed first.
Line 18: Line 21:
 
installer was developed using [http://nsis.sourceforge.net/ NSIS] and [http://rubyforge.org/projects/rubygems/ RubyGems].
 
installer was developed using [http://nsis.sourceforge.net/ NSIS] and [http://rubyforge.org/projects/rubygems/ RubyGems].
 
Please [[User:Engjw|contact me]] if you encounter problems using the installer.
 
Please [[User:Engjw|contact me]] if you encounter problems using the installer.
 +
 +
Note that as an alternative there also is a Microsoft Windows32 Gem for installing Qt4-QtRuby on the [http://rubyforge.org/projects/korundum/ Korundum]
 +
project page.
  
 
=Installation=
 
=Installation=

Revision as of 22:07, 25 September 2008

Qt logo.png
Ruby.png

This is an installer for installing Qt4-QtRuby (including Ruby user interface compiler and resource compiler) under Microsoft Windows. Qt4-QtRuby (developed by Richard Dale and others) is a very useful extension allowing you to use Qt from within the Ruby programming language. Note there is a Microsoft Windows32 Gem for installing Qt4-QtRuby on the Korundum project page. You don't need this installer if the Gem works for you.

The installer requires Qt-4.3.0 Open Source Edition and Ruby 1.8.6-25 for Microsoft Windows to be installed first. Make sure you are using exactly this versions of Ruby and Qt, because otherwise the Qt4-QtRuby binaries will be incompatible.

The source code of the installer is currently included in the HornetsEye package. The installer was developed using NSIS and RubyGems. Please contact me if you encounter problems using the installer.

Note that as an alternative there also is a Microsoft Windows32 Gem for installing Qt4-QtRuby on the Korundum project page.

Contents

Installation

Download

You can download the Qt4-QtRuby installer for Microsoft Windows here: qtruby4installer.exe

Testing

Launch irb (interactive ruby bash) on the command line and type in the following commands. By the time you have entered app.exec you should see a small window with a button opening. Clicking the button should close the window.

require 'Qt4'
# true
app = Qt::Application.new( ARGV )
# #<Qt::Application:0xb7ad3394 objectName="irb">
button = Qt::PushButton.new( "&Close Me" )
# #<Qt::PushButton:0xb7acf668 objectName="", x=0, y=0, width=640, height=480>
Qt::Object.connect( button, SIGNAL('clicked()'), button, SLOT( 'close()' ) )
# true
button.show
# nil
app.exec
# true
quit

Troubleshooting

Unfortunately the Qt4-QtRuby installer currently cannot detect failure of installing the qtruby4-gem. To check whether the gem installed properly, open a command-line and enter the following command

gem list qtruby4

If qtruby4 is not listed, the gem failed to install. You can find the gem in the temporary directory after running the installer. The gem can be installed manually using the command line.

C:
cd %TEMP%
gem install qtruby4-*.gem

If this fails, the error message may give you an additional clue on what is wrong.

See Also

External Links

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox