# Ruby-1.9, sqlite3 and qt4 on windows

**URL:** <https://www.ruby-forum.com/t/ruby-1-9-sqlite3-and-qt4-on-windows/177715>\
**Category:** Ruby\
**Created:** [October 22, 2009, 3:55pm UTC](https://www.ruby-forum.com/t/ruby-1-9-sqlite3-and-qt4-on-windows/177715 "2009-10-22T15:55:21Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Martin\_DeMello](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f17d59/32.png) [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Post date:** [October 22, 2009, 3:55pm UTC](https://www.ruby-forum.com/t/ruby-1-9-sqlite3-and-qt4-on-windows/177715/1 "2009-10-22T15:55:21Z")

</div>

I’m thinking of developing an app with ruby 1.9, sqlite3 and qt4 which  
I’d like to distribute on windows, ideally as a packaged executable,  
though if it works against the one-click installer that’d be fine too.  
Anyone with experience to share? Sqlite3 is the only hard requirement,  
but I’m very reluctant to go back to ruby 1.8, and Qt would be a plus  
because this is intended to be a companion to an existing Qt app.

martin

---

<div class="post-metadata">

**Author:** ![Martin\_DeMello](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f17d59/32.png) [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Post date:** [October 23, 2009, 2:40am UTC](https://www.ruby-forum.com/t/ruby-1-9-sqlite3-and-qt4-on-windows/177715/2 "2009-10-23T02:40:33Z")

</div>

Martin DeMello wrote:

> I’m thinking of developing an app with ruby 1.9, sqlite3 and qt4 which  
> I’d like to distribute on windows, ideally as a packaged executable,  
> though if it works against the one-click installer that’d be fine too.  
> Anyone with experience to share? Sqlite3 is the only hard requirement,  
> but I’m very reluctant to go back to ruby 1.8, and Qt would be a plus  
> because this is intended to be a companion to an existing Qt app.

You might want to check out ruby2exe, I haven’t used this but it looks  
like a  
good possibility for what you’re trying to do.

[http://www.erikveen.dds.nl/rubyscript2exe/index.html](http://www.erikveen.dds.nl/rubyscript2exe/index.html)

If you’re going to add database support you might want to think about  
using  
ActiveRecord, this will make it easier for you to switch to another  
database  
later. There is also RubyDBI you might want to look at. Unless there is  
a need  
to use specific feature of sqlite3, you might want to use a more  
flexible  
database interface than sqlite3-ruby.

GUI wise, there is wxWidgets which takes a lot of ideas from MFC Windows  
programming, you could check that project out, for Ruby you would then  
be  
working with WxRuby

[http://www.wxwidgets.org/](http://www.wxwidgets.org/)  
[http://wxruby.rubyforge.org/wiki/wiki.pl](http://wxruby.rubyforge.org/wiki/wiki.pl)

I have not used either of there, but you can compare it with QT4

> martin

–  
Kind Regards,  
Rajinder Y.

[http://DevMentor.org](http://DevMentor.org)  
Do Good ~ Share Freely

---

<div class="post-metadata">

**Author:** ![Martin\_DeMello](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f17d59/32.png) [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Post date:** [October 23, 2009, 11:02am UTC](https://www.ruby-forum.com/t/ruby-1-9-sqlite3-and-qt4-on-windows/177715/3 "2009-10-23T11:02:11Z")

</div>

Yes, i’m definitely using an orm 🙂 Debating the relative merits of  
sequel and datamapper at the moment, just because i’d like to see what  
other than activerecord is out there. But the sqlite3 backend needs to  
work and googling gave me mixed results for how seamless that was on  
windows. Also i’ve used rubyscript2exe before, but the homepage says  
nothing about ruby 1.9.

I’m interested in qt because i want look-and-feel compatibility with  
an existing C++/Qt app, but if that’s a no-go on windows my fallback  
options are either Wx or JRuby+Glimmer. Also, there’s Rawr  
[[http://rawr.rubyforge.org/](http://rawr.rubyforge.org/)], which is a great incentive to explore  
JRuby.

martin

---

<div class="post-metadata">

**Author:** ![Martin\_DeMello](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f17d59/32.png) [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Post date:** [October 23, 2009, 6:34pm UTC](https://www.ruby-forum.com/t/ruby-1-9-sqlite3-and-qt4-on-windows/177715/4 "2009-10-23T18:34:43Z")

</div>

On Fri, Oct 23, 2009 at 12:32 PM, Rajinder Y. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Martin, if you discover something about squel or datamapper when  
> comparing to datamapper, I would like to know just because I am  
> interested or curious. Maybe you can post your find on this thread,  
> thanks.

That should read when comparing it to ActiveRecord.

–  
Kind Regards,  
Rajinder Y.

[http://devmentor.org](http://devmentor.org)  
Do Good! ~ Share Freely

---

<div class="post-metadata">

**Author:** ![Martin\_DeMello](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f17d59/32.png) [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Post date:** [October 23, 2009, 6:33pm UTC](https://www.ruby-forum.com/t/ruby-1-9-sqlite3-and-qt4-on-windows/177715/5 "2009-10-23T18:33:33Z")

</div>

On Fri, Oct 23, 2009 at 4:22 AM, Martin DeMello  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Yes, i’m definitely using an orm 🙂 Debating the relative merits of  
> sequel and datamapper at the moment, just because i’d like to see what  
> other than activerecord is out there.

Martin, if you discover something about squel or datamapper when  
comparing to datamapper, I would like to know just because I am  
interested or curious. Maybe you can post your find on this thread,  
thanks.

But the sqlite3 backend needs to

> martin
> 
> > > 
> > 
> > flexible database interface than sqlite3-ruby.
> > 
> > > martin

–  
Kind Regards,  
Rajinder Y.

[http://devmentor.org](http://devmentor.org)  
Do Good! ~ Share Freely

---

<div class="post-metadata">

**Author:** ![Martin\_DeMello](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f17d59/32.png) [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Post date:** [October 23, 2009, 11:02pm UTC](https://www.ruby-forum.com/t/ruby-1-9-sqlite3-and-qt4-on-windows/177715/6 "2009-10-23T23:02:29Z")

</div>

Martin DeMello wrote:

> I’m thinking of developing an app with ruby 1.9, sqlite3 and qt4 which  
> I’d like to distribute on windows, ideally as a packaged executable,  
> though if it works against the one-click installer that’d be fine too.  
> Anyone with experience to share?

One click executables are discussed here:  
[http://wiki.github.com/rdp/ruby\_talk\_faq](http://wiki.github.com/rdp/ruby_talk_faq)  
Cheers!  
-r

---

<div class="post-metadata">

**Author:** ![Martin\_DeMello](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f17d59/32.png) [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Post date:** [October 25, 2009, 2:53pm UTC](https://www.ruby-forum.com/t/ruby-1-9-sqlite3-and-qt4-on-windows/177715/7 "2009-10-25T14:53:32Z")

</div>

STOP SENDIN ME THESE FCUK ALL FORWARDS\>\>\>

---

<div class="post-metadata">

**Author:** ![Martin\_DeMello](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f17d59/32.png) [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Post date:** [October 24, 2009, 12:17am UTC](https://www.ruby-forum.com/t/ruby-1-9-sqlite3-and-qt4-on-windows/177715/8 "2009-10-24T00:17:12Z")

</div>

On Sat, Oct 24, 2009 at 2:32 AM, Roger P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Martin DeMello wrote:
> 
> > I’m thinking of developing an app with ruby 1.9, sqlite3 and qt4 which  
> > I’d like to distribute on windows, ideally as a packaged executable,  
> > though if it works against the one-click installer that’d be fine too.  
> > Anyone with experience to share?
> 
> One click executables are discussed here:  
> [http://wiki.github.com/rdp/ruby\_talk\_faq](http://wiki.github.com/rdp/ruby_talk_faq)

Thanks Roger, but I was asking if anyone had successfully deployed a  
Qt app using Ocra or Rubyscript2Exe

martin

---

<div class="post-metadata">

**Author:** ![Martin\_DeMello](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f17d59/32.png) [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Post date:** [October 26, 2009, 7:01am UTC](https://www.ruby-forum.com/t/ruby-1-9-sqlite3-and-qt4-on-windows/177715/9 "2009-10-26T07:01:01Z")

</div>

vishal jethani wrote:

> STOP SENDIN ME THESE FCUK ALL FORWARDS\>\>\>

Dear Vishal,

did you accidentally register to the ruby-lang mailing list and now are  
getting  
a flood of email you don’t want in your inbox?

If so you can always unsubscribe here:

[http://www.ruby-lang.org/en/community/mailing-lists/](http://www.ruby-lang.org/en/community/mailing-lists/)

–  
Kind Regards,  
Rajinder Y.

[http://DevMentor.org](http://DevMentor.org)

Do Good! - Share Freely, Enrich and Empower people to Transform their  
lives.
