Anyone know if FXRuby apps can be packed up to a single exe with
exerb.rb so that they can execute stand-alone (ie without the need for
cygwin.dll etc)?
Anyone done this and made it work? Any special steps necessary?
Anyone know if FXRuby apps can be packed up to a single exe with
exerb.rb so that they can execute stand-alone (ie without the need for
cygwin.dll etc)?
Anyone done this and made it work? Any special steps necessary?
–
Dossy Shiobara mail: dossy@panoptic.com
Panoptic Computer Network web: http://www.panoptic.com/
“He realized the fastest way to change is to laugh at your own
folly – then you can let go and quickly move on.” (p. 70)
Anyone know if FXRuby apps can be packed up to a single exe with
exerb.rb so that they can execute stand-alone (ie without the need for
cygwin.dll etc)?
Anyone done this and made it work? Any special steps necessary?
I don’t think it’s going to work as-is with the current version of
FXRuby because during the FXRuby module initialization I call the C
function rb_f_require() directly in a few places. Part of the magic of
“exerb” is that he overrides the built-in “require” method to look
elsewhere (in the executable), but since I call rb_f_require() directly
it doesn’t take advantage of this hook.
What I will try for the next FXRuby release is to replace my direct
calls to rb_f_require() with something that mimics a “require” from the
Ruby interpreter (e.g. using eval or something). This should work. If it
does, I’ll also provide a HOWTO and a list of all the files one might
want to list in their RBC file.
Hope this helps,
Lyle
P.S. Yes, you will get a huge executable when you roll FXRuby into it
At Wed, 18 Sep 2002 01:27:53 +0900, Lyle Johnson wrote:
Anyone know if FXRuby apps can be packed up to a single exe with
exerb.rb so that they can execute stand-alone (ie without the need for
cygwin.dll etc)?
Anyone done this and made it work? Any special steps necessary?
I don’t think it’s going to work as-is with the current version of
FXRuby because during the FXRuby module initialization I call the C
function rb_f_require() directly in a few places. Part of the magic of
“exerb” is that he overrides the built-in “require” method to look
elsewhere (in the executable), but since I call rb_f_require()
directly it doesn’t take advantage of this hook.
Recent exerb has a trick for rb_require(), but none for
rb_f_require(). I guess it would be possible.
I’ve been told that the CVS version of exerb fixes this with some
magic playing with overriding the rb_f_require symbol. Even with that
however, I’m having problems with trying to get FXruby working with
exerb. However, I haven’t looked at it for several weeks, there may be
more CVS progress.
alan
···
On Wed, Sep 18, 2002 at 01:27:53AM +0900, Lyle Johnson wrote:
coma_killen@fastmail.fm wrote:
Anyone know if FXRuby apps can be packed up to a single exe with
exerb.rb so that they can execute stand-alone (ie without the need for
cygwin.dll etc)?
Anyone done this and made it work? Any special steps necessary?
I don’t think it’s going to work as-is with the current version of
FXRuby because during the FXRuby module initialization I call the C
function rb_f_require() directly in a few places. Part of the magic of
“exerb” is that he overrides the built-in “require” method to look
elsewhere (in the executable), but since I call rb_f_require() directly
it doesn’t take advantage of this hook.
What I will try for the next FXRuby release is to replace my direct
calls to rb_f_require() with something that mimics a “require” from the
Ruby interpreter (e.g. using eval or something). This should work. If it
does, I’ll also provide a HOWTO and a list of all the files one might
want to list in their RBC file.
Hope this helps,
Lyle
P.S. Yes, you will get a huge executable when you roll FXRuby into it
Actually, I was mistaken: My code was calling rb_require() and not
rb_f_require(). But I was also testing with the latest official release
of exerb (exerb-2.0.0) and not the CVS version, so I’ll be sure to try
with the CVS version instead.