Richard Dale
4/5/2005 9:54:00 AM
Kujawa, Greg wrote:
> I really want to experiment with Qt some, since I have used the GTK and Tk
> Ruby bindings and want to compare them all before choosing one for most of
> my GUI work. I guess I can hop over to my FreeBSD or Red Hat boxes to try
> things over there, but my client workstations are mostly Win32 and they
> would be the end users :-(
Yes, that sounds the best plan. The nice thing about Qt is that you can
develop on Linux, and deploy on Win32 - with ruby you wouldn't even need to
recompile.
If you have a look at the instructions for building QtRuby on Mac OS X,
using qmake and extconf.rb instead of automake/autoconf it should be very
similar. The Smoke library generation is driven by a list of headers in
smoke/qt/header_list, which are fed into a perl tool called 'kalyptus'. The
code to do that works fine on Mac OS X, but I don't think it would on
Windows.
So one way to get a port working, would be to generate the Smoke sources on
FreeBSD or Red Hat, and build them on Windows using qmake. If you have
errors from a specific header in the 'header_list' file, then either fix
the compile error by hand, or remove the header and retry. I would expect
that using extconf.rb on Windows to work ok, and build a .DLL instead of a
shared lib or Mac OS X bundle.
-- Richard