Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: P K
RE: Packaging a QtRuby app with OCRA? [ reply ]  
2012-01-19 18:07
Whoops, didn't see the link in Lar's previous post

By: P K
RE: Packaging a QtRuby app with OCRA? [ reply ]  
2012-01-19 18:05
Build your QtRuby application with:

ocra --no-autoload script.rb

Refer to this discussion:

https://groups.google.com/group/ruby-ocra/browse_thread/thread/ab6b46550602814f

By: Thomas Dalla
RE: Packaging a QtRuby app with OCRA? [ reply ]  
2011-04-01 23:45
Hi Lars,

Thanks for your prompt response!
I moved to the google group: https://groups.google.com/forum/?fromgroups#!topic/ruby-ocra/q2tGVQYCgU8

Best,

Thomas

By: Lars Christensen
RE: Packaging a QtRuby app with OCRA? [ reply ]  
2011-04-01 16:14
Hi Thomas,

I was not able to reproduce here with one of the demo programs from qtbindings. Could you post a minimal script that demonstrates the error?

I used ocra-1.3.0-rc1. If you haven't tried it, could you please? (gem install ocra --pre).

Please also visit us over at http://groups.google.com/group/ruby-ocra. I'll be closing this ruby-forge forum at some point.

By: Thomas Dalla
Packaging a QtRuby app with OCRA? [ reply ]  
2011-04-01 03:33
Dear all,

I fail packaging a qtruby application with OCRA...

The error is:
C:\Documents and Settings\Thomas\appz\>ruby ocrasa.rb --windows myApp.rb
=== Loading script to check dependencies
Everything run smoothly, I close the GUI and then...
C:/Ruby192/lib/ruby/gems/1.9.1/gems/qtbindings-4.6.3.2-x86-mingw32/lib/Qt/qtruby4.rb:3189:in `find_pclassid': can't convert nil into String (TypeError)
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/qtbindings-4.6.3.2-x86-mingw32/lib/Qt/qtruby4.rb:3189:in `block in qt_methods'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/qtbindings-4.6.3.2-x86-mingw32/lib/Qt/qtruby4.rb:3188:in `loop'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/qtbindings-4.6.3.2-x86-mingw32/lib/Qt/qtruby4.rb:3188:in `qt_methods'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/qtbindings-4.6.3.2-x86-mingw32/lib/Qt/qtruby4.rb:3165:in `constants'
from ocrasa.rb:366:in `block (2 levels) in attempt_load_autoload'
from ocrasa.rb:364:in `each'
from ocrasa.rb:364:in `block in attempt_load_autoload'
from ocrasa.rb:358:in `loop'
from ocrasa.rb:358:in `attempt_load_autoload'
from ocrasa.rb:513:in `build_exe'
from ocrasa.rb:902:in `block in <main>'

I tried the stand-alone and the gem, both raise the same error.
I am using Ruby 1.9.2-p180 installed with the RubyInstaller

Any idea how to solve the problem?