Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Packaging a QtRuby app with OCRA?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Thomas Dall'Agnese  
View profile  
 More options Apr 1 2011, 7:45 pm
From: Thomas Dall'Agnese <thomas.dallagn...@gmail.com>
Date: Fri, 1 Apr 2011 16:45:24 -0700 (PDT)
Local: Fri, Apr 1 2011 7:45 pm
Subject: Packaging a QtRuby app with OCRA?

Dear all,

I continue a post on the old Rubyforge forum here:
http://rubyforge.org/forum/message.php?msg_id=96272

Indeed, a basic Hello World script worked with OCRA.
And by the way, it's loading ALL the Qt dlls like QtOpenGL4.dll, QtSql4.dll,
... that are not needed :s I guess and hope there is a way to remove them
from the dependencies because a 10 lines Hello World is already 36MB!

Anyway, I tried to find what was messing up everything in my script... and
quickly found!
It seems to be one of the required dependencies.

I simply added all the "require" calls of my script to that Hello World, and
the error occurred.
With just *require 'zip/zipfilesystem'*, the error occurs... and I need the
zip
Here is a minimal script raising the error:

require 'Qt4'
require 'zip/zipfilesystem'
#require 'mime/types'
#require 'rexml/document'
#require 'digest/md5'
#require 'json'

app = Qt::Application.new(ARGV)

hello = Qt::PushButton.new('Hello World!')
hello.resize(100, 30)
hello.show

app.exec

The problem is that I really require that dependencies in my script (all the
ones I commented in this script), so how can I load them?

Best regards,

Thomas


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lars Christensen  
View profile  
 More options Apr 17 2011, 5:54 am
From: Lars Christensen <larschbelunktu...@gmail.com>
Date: Sun, 17 Apr 2011 02:54:59 -0700 (PDT)
Local: Sun, Apr 17 2011 5:54 am
Subject: Re: Packaging a QtRuby app with OCRA?

Hi Thomas,

Ocra tries to load all modules that are registered using Kernel#autoload,
since they are potential dependencies. For some reason, this fails with Qt.
You can disable this using --no-autoload, for example:

  ocra --no-autoload script.rb

That seems to work around your problem.

With regard to the size of the executable; Ocra includes all DLL's that are
loaded in the Ruby process when the program is tested while creating the
executable, so for some reason they are actually loaded by the qtbindings. I
don't know if they are actually optional. You can use --no-autodll to
prevent this behaviour, but you will need to specify the required DLL's
explicitly using --dll. I recommend taking a look at the InnoSetup generator
(--innosetup) which installs instead of unpacking.

BR,
Lars


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Thomas Dall'Agnese  
View profile  
 More options Apr 17 2011, 8:59 am
From: "Thomas Dall'Agnese" <thomas.dallagn...@gmail.com>
Date: Sun, 17 Apr 2011 21:59:48 +0900
Local: Sun, Apr 17 2011 8:59 am
Subject: Re: Packaging a QtRuby app with OCRA?

Hi Lars,

Indeed, it's working as a charm!
And there is also support for Inno, great.
That's too bad I already moved to
Python<http://www.dallagnese.fr/en/computers-it/python-vs-ruby-through-a-con...>...
:(
I'll use it for my next program, thanks!

Best Regards,
Thomas

On Sun, Apr 17, 2011 at 6:54 PM, Lars Christensen <


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »