This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Ruby, qtbindings, korundum and Qt Designer under Debian

Tags: None
(comma "," separated)
k-
Registered Member
Posts
2
Karma
0
Hi there.
(I hope I'm posting this in the right section of the forum. :) )

So, the thing is, I can't get uis generated by rbuic4 working.
Code: Select all
ruby searcher_ui.rb
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- korundum4 (LoadError)
   from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
   from searcher_ui.rb:11:in `<main>'

There is no such thing as 'korundum', neither.

I have ruby1.9.3 installed:
Code: Select all
ruby       ruby1.8    ruby1.9.1  ruby1.9.3

Code: Select all
ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]

I've installed qtbindings using gem. I have korundum installed, too:
Code: Select all
dpkg -l | grep korundum
ii  korundum                                    4:4.8.4-1                          all          Ruby bindings for the KDE Development Platform
ii  korundum4                                   4:4.8.4-1                          all          transitional package for korundum

I have ruby-qt4:
Code: Select all
drc@drc:~/devel/qts/qutub-player/ui$ dpkg -l | grep ruby-qt
ii  ruby-qt4                                    4:4.8.4-1                          amd64        Qt 4 bindings for the Ruby language
ii  ruby-qt4-webkit                             4:4.8.4-1                          amd64        QtWebKit bindings for the Ruby language

Still, I can't require 'korundum' and thus I can't use forms generated by qt-designer.

I tried searching, but there isn't much to read about that and the solutions that worked for others don't work for me, unfortunately (a whole other problem?).

I'm not sure if I should be posting it here, or on the Debian mailing list/forums. Still, I figured here's the better place.

Cheers,
k

EDIT
Ehh... it sucks to write a long post, research something for quite a while just to find out that you were utterly wrong (that I was utterly wrong).
Did a bit more digging, removed the "-x" switch from my rbuic4 command, wrote the execution code myself and I can run the app with no problems (without using KDE bindings). Yes, you can hit me with a large steel pole or a wooden stick for not reading the documentation carefully enough. It was very unthoughtful of me and I should be punished.

Although the problem persists, it doesn't have anything to do with KDE, right? I mean, I still can't require 'korundum' and I do believe it might come in handy at some point (don't know why, still bet it will), but I guess I should ask this question somewhere else (I guess Debian board would be the right place for it).
Sorry for taking your time.

Cheers,
k
User avatar
jovin
Registered Member
Posts
33
Karma
0
OS
As you figured out, rbuic4 just generates a .rb file based on the content of the .ui file passed. Korundum provides the KDE API.

Can you check where Korundum is installed? To me it seems that it's using the wrong path (you have Ruby 1.8 as well...).
k-
Registered Member
Posts
2
Karma
0
Well, it's embarassing, as the Fox says after a crash -- you're absolutely right:
Code: Select all
sudo find / -name *korundum*
/usr/lib/ruby/1.8/KDE/korundum4.rb
/usr/lib/ruby/1.8/x86_64-linux/korundum4.so

I'm not sure how to install it for ruby 1.9.3, though. Think I'll have to figure it out in the morrow. :)

Cheers
k


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]