# About qt4-ruby

**URL:** <https://www.ruby-forum.com/t/about-qt4-ruby/155827>\
**Category:** Ruby\
**Created:** [December 17, 2008, 9:56am UTC](https://www.ruby-forum.com/t/about-qt4-ruby/155827 "2008-12-17T09:56:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Magicloud](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f17d59/32.png) [@Magicloud](https://www.ruby-forum.com/u/Magicloud)\
**Post date:** [December 17, 2008, 9:56am UTC](https://www.ruby-forum.com/t/about-qt4-ruby/155827/1 "2008-12-17T09:56:05Z")

</div>

Hi,  
Today I compiled qt4-ruby in my rhel5 box. And have a little test.  
Well, when the .rb runs, it says something wrong from qtruby4.so,  
libsmokeqt.so.2 does not have symbol of \_ZN8QWebView11qt\_metacastEPKc.  
I recompiled qt4 with -webkit option, and qt4-ruby. Not helping.

---

<div class="post-metadata">

**Author:** ![Magicloud](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f17d59/32.png) [@Magicloud](https://www.ruby-forum.com/u/Magicloud)\
**Post date:** [December 17, 2008, 1:23pm UTC](https://www.ruby-forum.com/t/about-qt4-ruby/155827/2 "2008-12-17T13:23:24Z")

</div>

Alle Wednesday 17 December 2008, Magicloud ha scritto:

> Hi,  
> Today I compiled qt4-ruby in my rhel5 box. And have a little test.  
> Well, when the .rb runs, it says something wrong from qtruby4.so,  
> libsmokeqt.so.2 does not have symbol of \_ZN8QWebView11qt\_metacastEPKc.  
> I recompiled qt4 with -webkit option, and qt4-ruby. Not helping.

It’s smoke which doesn’t have the symbol, not qt itself, so you’ll need  
to  
recompile smoke, and maybe also qtruby itself too.

Stefano

---

<div class="post-metadata">

**Author:** ![Magicloud](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f17d59/32.png) [@Magicloud](https://www.ruby-forum.com/u/Magicloud)\
**Post date:** [December 18, 2008, 2:56am UTC](https://www.ruby-forum.com/t/about-qt4-ruby/155827/3 "2008-12-18T02:56:33Z")

</div>

Stefano C. wrote:

> recompile smoke, and maybe also qtruby itself too.
> 
> Stefano

So may I know how to compile smoke? I read smoke/README, and ran the  
four commands in it, which gave me a new libsmokeqt.so, which still does  
not work.

---

<div class="post-metadata">

**Author:** ![Magicloud](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f17d59/32.png) [@Magicloud](https://www.ruby-forum.com/u/Magicloud)\
**Post date:** [December 18, 2008, 9:23am UTC](https://www.ruby-forum.com/t/about-qt4-ruby/155827/4 "2008-12-18T09:23:58Z")

</div>

Alle Thursday 18 December 2008, Magicloud ha scritto:

> > Stefano
> 
> So may I know how to compile smoke? I read smoke/README, and ran the  
> four commands in it, which gave me a new libsmokeqt.so, which still does  
> not work.

If you mean the commands:

cd qt  
./qtguess.pl  
./generate.pl  
make

they’re not enough. As the README states, they’re only to generate the  
.cpp  
files. What you need is the following:

- go in the top level directory of qtruby
- mkdir build
- cd build
- cmake …
- make
- sudo make install

This will install qtruby4 in /usr/local (excluding the ruby bindings  
themselves, which will be installed in /usr/lib/ruby/site\_ruby/1.8 (or  
something like this, depending on whether ruby itself is installed). If  
you  
want to install it somewhere else, replace the cmake … command with

cmake -DCMAKE\_INSTALL\_PREFIX=/path/to/install/dir …

I think this should solve your problem. If you have other questions  
about  
qtruby, you can post them in the qtruby forum, which you can find at  
[http://rubyforge.org/projects/korundum](http://rubyforge.org/projects/korundum), where you’ll be more likely to  
get an  
answer (and a better one, too, since there questions are answered by the  
developers themselves).

I hope this helps

Stefano

---

<div class="post-metadata">

**Author:** ![Magicloud](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f17d59/32.png) [@Magicloud](https://www.ruby-forum.com/u/Magicloud)\
**Post date:** [December 19, 2008, 5:06am UTC](https://www.ruby-forum.com/t/about-qt4-ruby/155827/5 "2008-12-19T05:06:33Z")

</div>

Stefano C. wrote:

> > > > ```
> > > > I recompiled qt4 with -webkit option, and qt4-ruby. Not helping.
> > > > 
> > > > ```
> 
> - mkdir build  
> cmake -DCMAKE\_INSTALL\_PREFIX=/path/to/install/dir …

I used kdebindings instead of qt4-ruby, everything is fine now.  
Thanks.
