Monday, April 6, 2009

Another usage of UI File from QtRuby #2

(continued from phosphorescence: Another usage of UI File from QtRuby #1)

Previous messages indicate missing ruby module 'qtuitools'. Let's make sure of load path.
>/opt/ruby-1.9.1/bin/ruby -e 'puts $:'
/opt/ruby-1.9.1/lib/ruby/site_ruby/1.9.1
/opt/ruby-1.9.1/lib/ruby/site_ruby/1.9.1/x86_64-linux
/opt/ruby-1.9.1/lib/ruby/site_ruby
/opt/ruby-1.9.1/lib/ruby/vendor_ruby/1.9.1
/opt/ruby-1.9.1/lib/ruby/vendor_ruby/1.9.1/x86_64-linux
/opt/ruby-1.9.1/lib/ruby/vendor_ruby
/opt/ruby-1.9.1/lib/ruby/1.9.1
/opt/ruby-1.9.1/lib/ruby/1.9.1/x86_64-linux
.

In these directories, ruby module 'qtuitools' is not found. How should I do? Seek back in the post phosphorescence: qt4-qtruby 2.0.3 is released, two cmake options are found:
>... \
> -DENABLE_QTUITOOLS_SMOKE=off \
> ... \
> -DENABLE_QTUITOOLS_RUBY=off \
> ...

So these options switch turned on.
>... \
> -DENABLE_QTUITOOLS_SMOKE=on \
> ... \
> -DENABLE_QTUITOOLS_RUBY=on \
> ...

After CMMI instructions, retry "ui_loader_example.rb":
>/opt/ruby-1.9.1/bin/ruby ui_loader_example.rb

Then succeed this time and same GUI is shown.

No comments:

Post a Comment