# Qtruby and ms windows

**URL:** <https://rubytalk.org/t/qtruby-and-ms-windows/12567>\
**Category:** ruby-talk\
**Created:** [14 July 2004 11:30 UTC](https://rubytalk.org/t/qtruby-and-ms-windows/12567 "2004-07-14T11:30:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jochen\_Immendorfer](https://avatars.discourse-cdn.com/v4/letter/j/bb73d2/32.png) [@Jochen\_Immendorfer](https://rubytalk.org/u/Jochen_Immendorfer)\
**Post date:** [14 July 2004 11:30 UTC](https://rubytalk.org/t/qtruby-and-ms-windows/12567/1 "2004-07-14T11:30:47Z")

</div>

Could it be, that qtruby requires qt-3.3.x?  
Just because it works on my linux boxes with qt-3.3.2 installed.  
OTOH [http://developer.kde.org/language-bindings/ruby/index.html](http://developer.kde.org/language-bindings/ruby/index.html) says qt-3.2.

Jochen

ok, this time I pointed directly to the qt-libs/includes but still the same error message.

./configure --with-qt-includes=/opt/qt/3.2/include --with-qt-libraries=/opt/qt/3.2/lib --with-qt-dir=/opt/qt/3.2

$ grep -R QIconDragEvent /opt/qt/3.2/include/\*

doesn't find the undeclared identifier -- seems like there's something wrong with this qt-

Jochen.

where are your libs/includes?  
these \*are\* error messages 🙂  
maybe they should be made more obvious 😛  
Alex

> **···**
>
> ruby-talk@ruby-lang.org schrieb am 14.07.04 13:12:40:  
> ruby-talk@ruby-lang.org schrieb am 14.07.04 12:56:34:
> 
> On Wed, Jul 14, 2004 at 07:49:43PM +0900, =?iso-8859-1?Q? Jochen=20Immend=F6rfer ?= wrote:
> 
> > I'm not sure about the ./configure output. Looks almost good:
> > 
> > checking for Qt... libraries /opt/qt3/lib, headers /opt/qt3/include using -mt  
> > ..  
> > config.status: creating smoke/qt/qtguess.pl  
> > Invalid Qt directory.  
> > config.status: creating smoke/qt/generate.pl  
> > Couldn't find /opt/qt3/include at generate.pl line 101.  
> > Found 'qtdefines'. Reading preprocessor symbols from there...  
> > ..  
> > Good - your configure finished. Start make now
> > 
> > Doesn't look like a real error message for me...
> > 
> > Jochen
> > 
> > ruby-talk@ruby-lang.org schrieb am 14.07.04 12:26:24:
> > 
> > completely untested.  
> > no idea why it wouldn't work though.  
> > sure sounds like its using the wrong qt  
> > or doesn't have the correct include directory.  
> > maybe check out the output of ./configure to  
> > see what it automatically finds?
> > 
> > Alex
> > 
> > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > WEB.DE Video-Mail - Sagen Sie mehr mit bewegten Bildern  
> > Informationen unter: [E-Mail-Adresse erstellen kostenlos | FreeMail](http://freemail.web.de/?mc=021199)
> 
> mvg,  
> Alex
> 
> --  
> When women love us, they forgive us everything, even our crimes; when they do  
> not love us, they give us credit for nothing, not even our virtues.  
> &nbsp;&nbsp;&nbsp;&nbsp;-- Honor'e de Balzac
> 
> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> WEB.DE Video-Mail - Sagen Sie mehr mit bewegten Bildern  
> Informationen unter: [E-Mail-Adresse erstellen kostenlos | FreeMail](http://freemail.web.de/?mc=021199)
> 
> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> Aufnehmen, abschicken, nah sein - So einfach ist  
> WEB.DE Video-Mail: [E-Mail-Adresse erstellen kostenlos | FreeMail](http://freemail.web.de/?mc=021200)

---

<div class="post-metadata">

**Author:** ![Alexander\_Kellett2](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@Alexander\_Kellett2](https://rubytalk.org/u/Alexander_Kellett2)\
**Post date:** [14 July 2004 11:35 UTC](https://rubytalk.org/t/qtruby-and-ms-windows/12567/2 "2004-07-14T11:35:51Z")

</div>

no its just a messed up detection of compiled in stuff.  
richard can probably help out with this 🙂  
richard you around? 🙂

Alex

> **···**
>
> On Wed, Jul 14, 2004 at 08:30:47PM +0900, =?iso-8859-1?Q? Jochen=20Immend=F6rfer ?= wrote:
> 
> > Could it be, that qtruby requires qt-3.3.x?  
> > Just because it works on my linux boxes with qt-3.3.2 installed.  
> > OTOH [http://developer.kde.org/language-bindings/ruby/index.html](http://developer.kde.org/language-bindings/ruby/index.html) says qt-3.2.
> > 
> > Jochen
> > 
> > ruby-talk@ruby-lang.org schrieb am 14.07.04 13:12:40:
> > 
> > ok, this time I pointed directly to the qt-libs/includes but still the same error message.
> > 
> > ./configure --with-qt-includes=/opt/qt/3.2/include --with-qt-libraries=/opt/qt/3.2/lib --with-qt-dir=/opt/qt/3.2
> > 
> > $ grep -R QIconDragEvent /opt/qt/3.2/include/\*
> > 
> > doesn't find the undeclared identifier -- seems like there's something wrong with this qt-
> > 
> > Jochen.
> > 
> > ruby-talk@ruby-lang.org schrieb am 14.07.04 12:56:34:
> > 
> > where are your libs/includes?  
> > these \*are\* error messages 🙂  
> > maybe they should be made more obvious 😛  
> > Alex
> > 
> > On Wed, Jul 14, 2004 at 07:49:43PM +0900, =?iso-8859-1?Q? Jochen=20Immend=F6rfer ?= wrote:  
> > \> I'm not sure about the ./configure output. Looks almost good:  
> > \>
> > 
> > \> checking for Qt... libraries /opt/qt3/lib, headers /opt/qt3/include using -mt  
> > \> ..  
> > \> config.status: creating smoke/qt/qtguess.pl  
> > \> Invalid Qt directory.  
> > \> config.status: creating smoke/qt/generate.pl  
> > \> Couldn't find /opt/qt3/include at generate.pl line 101.  
> > \> Found 'qtdefines'. Reading preprocessor symbols from there...  
> > \> ..  
> > \> Good - your configure finished. Start make now  
> > \>  
> > \> Doesn't look like a real error message for me...  
> > \>  
> > \>  
> > \> Jochen  
> > \>  
> > \>  
> > \>  
> > \> ruby-talk@ruby-lang.org schrieb am 14.07.04 12:26:24:  
> > \>  
> > \> completely untested.  
> > \> no idea why it wouldn't work though.  
> > \> sure sounds like its using the wrong qt  
> > \> or doesn't have the correct include directory.  
> > \> maybe check out the output of ./configure to  
> > \> see what it automatically finds?  
> > \>  
> > \> Alex  
> > \>  
> > \>  
> > \> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > \> WEB.DE Video-Mail - Sagen Sie mehr mit bewegten Bildern  
> > \> Informationen unter: [E-Mail-Adresse erstellen kostenlos | FreeMail](http://freemail.web.de/?mc=021199)  
> > \>  
> > \>
> > 
> > mvg,  
> > Alex
> > 
> > --  
> > When women love us, they forgive us everything, even our crimes; when they do  
> > not love us, they give us credit for nothing, not even our virtues.  
> > &nbsp;&nbsp;&nbsp;&nbsp;-- Honor'e de Balzac
> > 
> > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > WEB.DE Video-Mail - Sagen Sie mehr mit bewegten Bildern  
> > Informationen unter: [E-Mail-Adresse erstellen kostenlos | FreeMail](http://freemail.web.de/?mc=021199)
> > 
> > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > Aufnehmen, abschicken, nah sein - So einfach ist  
> > WEB.DE Video-Mail: [E-Mail-Adresse erstellen kostenlos | FreeMail](http://freemail.web.de/?mc=021200)
> 
> mvg,  
> Alex
> 
> --  
> When women love us, they forgive us everything, even our crimes; when they do  
> not love us, they give us credit for nothing, not even our virtues.  
> &nbsp;&nbsp;&nbsp;&nbsp;-- Honor'e de Balzac

---

<div class="post-metadata">

**Author:** ![Richard\_Dale](https://avatars.discourse-cdn.com/v4/letter/r/6de8d8/32.png) [@Richard\_Dale](https://rubytalk.org/u/Richard_Dale)\
**Post date:** [14 July 2004 12:37 UTC](https://rubytalk.org/t/qtruby-and-ms-windows/12567/3 "2004-07-14T12:37:27Z")

</div>

Alexander Kellett wrote:

> no its just a messed up detection of compiled in stuff.  
> richard can probably help out with this 🙂  
> richard you around? 🙂

Yes - hi Alex - maybe we can carry on discussing this on the  
kde-bindings@kde.org mailing list..

-- Richard

---

<div class="post-metadata">

**Author:** ![Hans\_Fugal6](https://avatars.discourse-cdn.com/v4/letter/h/3be4f8/32.png) [@Hans\_Fugal6](https://rubytalk.org/u/Hans_Fugal6)\
**Post date:** [14 July 2004 15:37 UTC](https://rubytalk.org/t/qtruby-and-ms-windows/12567/4 "2004-07-14T15:37:19Z")

</div>

Richard Dale wrote:

> Alexander Kellett wrote:
> 
> > no its just a messed up detection of compiled in stuff.  
> > richard can probably help out with this 🙂  
> > richard you around? 🙂
> 
> Yes - hi Alex - maybe we can carry on discussing this on the  
> kde-bindings@kde.org mailing list..
> 
> -- Richard

Would y'all please report back if someone gets qtruby working in windows?

---

<div class="post-metadata">

**Author:** ![Richard\_Dale](https://avatars.discourse-cdn.com/v4/letter/r/6de8d8/32.png) [@Richard\_Dale](https://rubytalk.org/u/Richard_Dale)\
**Post date:** [14 July 2004 16:02 UTC](https://rubytalk.org/t/qtruby-and-ms-windows/12567/5 "2004-07-14T16:02:20Z")

</div>

Hans Fugal wrote:

> Richard Dale wrote:
> 
> > Alexander Kellett wrote:
> > 
> > > no its just a messed up detection of compiled in stuff.  
> > > richard can probably help out with this 🙂  
> > > richard you around? 🙂
> > 
> > Yes - hi Alex - maybe we can carry on discussing this on the  
> > kde-bindings@kde.org mailing list..
> > 
> > -- Richard
> 
> Would y'all please report back if someone gets qtruby working in windows?

Yes ok - it's definately possible because some PerlQt guys recently got the  
Smoke library working on Windows. I seem to remember them saying something  
about 'removing certain headers'. Hmm. But maybe ruby-talk might want to be  
spared from a 'blow by blow' account of how exactly to get there..

I just need to have a look at the recent kde-perl@kde.org posts to see what  
they said and did. The ruby QtRuby extension part should be easy enough to  
compile I would have thought. It builds on Mac OS X so there can't be any  
X11 dependencies in there.

-- Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Dale](https://avatars.discourse-cdn.com/v4/letter/r/6de8d8/32.png) [@Richard\_Dale](https://rubytalk.org/u/Richard_Dale)\
**Post date:** [15 July 2004 09:57 UTC](https://rubytalk.org/t/qtruby-and-ms-windows/12567/6 "2004-07-15T09:57:19Z")

</div>

Hans Fugal wrote:

> Would y'all please report back if someone gets qtruby working in windows?

Richard Dale wrote:

> Yes ok - it's definately possible because some PerlQt guys recently got  
> the Smoke library working on Windows. I seem to remember them saying  
> something about 'removing certain headers'. Hmm. But maybe ruby-talk might  
> want to be spared from a 'blow by blow' account of how exactly to get  
> there..
> 
> I just need to have a look at the recent kde-perl@kde.org posts to see  
> what they said and did. The ruby QtRuby extension part should be easy  
> enough to compile I would have thought. It builds on Mac OS X so there  
> can't be any X11 dependencies in there.

Here's the post from the kde-perl mailing list about building the Smoke  
library on Windows. Other people tried the instructions and confirmed it  
worked ok. I'm not sure if this works with cygwin though:

"Although there are bindings for using PerlQt on windows with cygwin-x11 and  
qt-x11, I didn't want my target computer to have those installed. So I  
coerced PerlQt into compiling and linking under MSVC6"

> **···**
>
> On Tuesday 22 June 2004 14:50, ryan@vbijl.net wrote:
> 
> > Hello,
> > 
> > Thought you all might be interested. I managed to coerce  
> > MSVC++ 6 into compiling PerlQt. Then I managed to convince  
> > it to link. And, amazingly, it worked[1]!
> > 
> > I used ActiveState 5.8.4, Qt/Windows 3.2.0, MSVC++6, and PerlQt 3.008.
> > 
> > I've put together a document describing how I got it to work:  
> > &nbsp;&nbsp;&nbsp;[http://www.vbijl.net/~ryan/software/perlqt/](http://www.vbijl.net/~ryan/software/perlqt/)
> > 
> > [1] There are a few issues. For example, timers seem to be broken.  
> > Also a few headers that didn't want to be used.
> > 
> > Anyways. I was hoping someone on this list might be able to  
> > try this out before I post to the qt-interest list.
> > 
> > Ryan
> 
> -- Richard
