Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #6916

ruby + Qt + Windows + 64 bit

Newsgroups comp.lang.ruby
Date 2014-01-24 07:18 -0800
Message-ID <c32e7611-dd1a-4a06-892f-d129dc02abe4@googlegroups.com> (permalink)
Subject ruby + Qt + Windows + 64 bit
From Donn M <donn.mielcarek@gmail.com>

Show all headers | View raw


To me, the ideal programming environment is ruby + Qt.  On Windows, the qt-bindings gem only works with the 32 bit version of ruby, and I really need a 64 bit version (to talk to a 64 bit device driver).

The qt-bindings folks don't seem to be putting much effort into this, so I thought I'd try it myself.  I tried using mingw-64 to compile everything, but I couldn't get that to work at all - so I tried using Visual C++ 2012. Here's what I did:

1. compiled ruby with VC 2012.  This went smoothly.

2. compiling Qt is a headache, so I downloaded a binary version also compiled with VC 2012.

3. compiled qt-bindings.  This required a lot of hacking both to the source code and the cmake files, but I was actually able to get it to compile and install in my ruby directory.

Now the problem - I can't load Qt.  If I say "require 'Qt'", I get "can't load such file -- Qt."  Now Qt.rb only loads Qt4.rb, so if I try to "require 'Qt4', I get "can't load such file -- 2.0/qtruby4."  So I tried "require 'qtruby4'" and I get "can't load such file -- Qt/qtruby4.rb."  It's never ending.

Well it looks like a path problem, but if I print the PATH, it looks like all the directories containing these files are included.

Anyone have any ideas?  I'm so close.

Back to comp.lang.ruby | Previous | NextNext in thread | Find similar


Thread

ruby + Qt + Windows + 64 bit Donn M <donn.mielcarek@gmail.com> - 2014-01-24 07:18 -0800
  Re: ruby + Qt + Windows + 64 bit Donn M <donn.mielcarek@gmail.com> - 2015-01-29 19:07 -0800
    Re: ruby + Qt + Windows + 64 bit petergold453381@gmail.com - 2015-02-19 14:23 -0800

csiph-web