Help on installing ruby-qt on windowsXP

Hi,
I have done the fiolowing.

  1. Installed latest version of Ruby, c:\ruby
  2. UnTared ruby-qt2-devel-0.16.tar.gz in the c:\ruby folder.
  3. Installed QtWin230-NonCommercial.exe from trolltech.com in c:\qt
  4. When I try to install qt-ruby from the command line
    ruby install.rb config
    ruby install.rb setup
    ruby install.rb install

I get an error saying that it
"cannot find the qapplication.h file."
“you do not seem to have the qt library”

This file is present in the “c:\qt\inlcude” directory.

Can any one help me?
Regards
ajay

ajksharma wrote:

Hi,
I have done the fiolowing.

  1. Installed latest version of Ruby, c:\ruby
  2. UnTared ruby-qt2-devel-0.16.tar.gz in the c:\ruby folder.
  3. Installed QtWin230-NonCommercial.exe from trolltech.com in c:\qt
  4. When I try to install qt-ruby from the command line
    ruby install.rb config
    ruby install.rb setup
    ruby install.rb install

I get an error saying that it
“cannot find the qapplication.h file.”
“you do not seem to have the qt library”

This file is present in the “c:\qt\inlcude” directory.

Can any one help me?
Regards
ajay

I had similar problems on linux. The README file said:

“Use setup.rb to install Ruby/Qt. For detail, see setup.doc.en
included in the package. The extconf.rb in each source directory
assumes Qt header files and Qt library files in ($QTDIR)/include
and ($QTDIR)/lib, respectedly. If you have them in the different
place, rewrite extconf.rb or make Makefile manually in each
directory as folows:
(in each directory)
ruby extconf.rb --with-qt2-lib=… --with-qt2-include=…”

Best Regards, Christian

Hello,

The source directory of Ruby is described in rbconfig.rb file in
…/Ruby/lib/ruby/1.6/i586-mswin32.
The setup.rb and extconf.rb (you should use ‘setup.rb config’ etc. instead
of ‘install.rb config.rb’…) uses this information for searching header
files.
In some distributions for Windows system, this file not contains correct
information. Please look in this file, and adjust it for your system.

···

On 2002 9e$B7ne(B 17 e$B2PMKF|e(B 04:32, you wrote:

Hi,
I have done the fiolowing.

  1. Installed latest version of Ruby, c:\ruby
  2. UnTared ruby-qt2-devel-0.16.tar.gz in the c:\ruby folder.
  3. Installed QtWin230-NonCommercial.exe from trolltech.com in c:\qt
  4. When I try to install qt-ruby from the command line
    ruby install.rb config
    ruby install.rb setup
    ruby install.rb install

I get an error saying that it
“cannot find the qapplication.h file.”
“you do not seem to have the qt library”

This file is present in the “c:\qt\inlcude” directory.

(…)


Nobuyuki Horie, Ph.D.
Lab. Genetic Engineering/Univ. of Shizuoka
mail: horie@smail.u-shizuoka-ken.ac.jp
home page: http://www.u-shizuoka-ken.ac.jp

The Windows README file is a bit different:

You just simply have to change the QTDIR environment variable to
the directory containing QT:

“4. How to make Ruby/Qt
After define QTDIR to the directory where Qt-lib(ver 2.xx) is
installed, in the directory where you extract ruby-qt2 package,
execute following commands:
ruby setup.rb config
ruby setup.rb setup
(Change to root if necessary)
ruby setup.rb install
To compile each module, in the directory containing extconf.rb,
execute…
make -f Makefile.ruby_qt2 swigall
and
make
makes module file such as qt2.so.”