| Summary: | Ruby: uninitialized constant Qt::TQt in qtruby.rb | ||
|---|---|---|---|
| Product: | TDE | Reporter: | Chucky <michel.nolard> |
| Component: | other (any) | Assignee: | Timothy Pearson <kb9vqf> |
| Status: | RESOLVED FIXED | ||
| Severity: | major | CC: | bugwatch, michel.nolard, slavek.banko |
| Priority: | P5 | ||
| Version: | R14.0.0 [Trinity] | ||
| Hardware: | amd64 | ||
| OS: | Kubuntu Precise | ||
| Compiler Version: | TDE Version String: | ||
| Application Version: | Application Name: | ||
| Bug Depends on: | |||
| Bug Blocks: | 2540 | ||
| Attachments: | fix proposal formatted as a unified diff | ||
Status updated as a patch proposal is attached to this report. Pushed to GIT in hash f46bd0ca (master) and 1b41f605 (r14.0.x). Thank you for your contribution! |
Created attachment 2505 [details] fix proposal formatted as a unified diff == PATCH PROPOSAL ATTACHED == Context - I've installed TDE bindings for Ruby - I've adapted my env var RUBYLIB (as I've a 1.8.7): $ export RUBYLIB=/opt/trinity/lib/ruby/1.9.1:/opt/trinity/lib/ruby/1.9.1/Qt:/opt/trinity/lib/ruby/1.9.1/x86_64-linux == Symptoms When running $ rbqtapi -h I get the following error: -----------8<--------------------------8<-------------------- /opt/trinity/lib/ruby/1.9.1/Qt/qtruby.rb:182: uninitialized constant Qt::TQt (NameError) from /opt/trinity/lib/ruby/1.9.1/Qt.rb:1:in `require' from /opt/trinity/lib/ruby/1.9.1/Qt.rb:1 from /opt/trinity/bin/rbqtapi:11:in `require' from /opt/trinity/bin/rbqtapi:11 -----------8<--------------------------8<-------------------- == Solution I've patched qtruby.rb and it works very well. Please find the fix as an attachment. As you can see by reading this VERY SMALL PATCH, the bug has nothing to do with my Ruby version (which is what I thought at first). == Notes I am using Ruby 1.8.7 under Kubuntu Precise x86_64 I cannot truly understand why such a bug is not more visible to other people, even if they're using Ruby 1.9.1.